Handler for a ink snapshot.
More...
#include <inkcpp.h>
Handler for a ink snapshot.
Each snapshot contains a globals store and all assoziated runners/threads For convinience there exist ink::runtime::globals_interface::create_snapshot() and runner_interface::create_snapshot() . If the runner is assoziated to the globals the snapshot will be identical. If multiple runners are assoziated to the same globals all will be contained, and cann be reconsrtucted with the id parameter of ink::runtime::story::new_runner_from_snapshot()
- Todo
- Currently the id is equal to the creation order, a way to name the single runner/threads is WIP
◆ ink_snapshot_from_file()
HInkSnapshot * ink_snapshot_from_file |
( |
const char * | filename | ) |
|
deserialize snapshot from file.
- Parameters
-
- Exceptions
-
ink_exception | if it fails to open the file |
◆ ink_snapshot_num_runners()
number of runners which are stored inside this snapshot
- Parameters
-
◆ ink_snapshot_write_to_file()
void ink_snapshot_write_to_file |
( |
const HInkSnapshot * | self, |
|
|
const char * | filename ) |
serialize snapshot to file
- Parameters
-
filename | output file filename, if already exist it will be overwritten |
- Exceptions
-
ink_exception | if it failt to open the file |
- Parameters
-
The documentation for this class was generated from the following file: