|
using | vg::io::message_consumer_function_t = function< void(const string &)> |
| This is the type of a function that can be fed a series of messages. More...
|
|
using | vg::io::message_sender_function_t = function< void(const message_consumer_function_t &)> |
| This is the type of a function that can be given a message consumer to feed messages to. More...
|
|
using | vg::io::load_function_t = function< void *(const message_sender_function_t &)> |
| This is the type of a function that can allocate and load an object of unspecified type from a message source. More...
|
|
using | vg::io::save_function_t = function< void(const void *, const message_consumer_function_t &)> |
| This is the type of a function that can serialize an object of unspecified type to a message consumer. More...
|
|
using | vg::io::bare_load_function_t = function< void *(istream &)> |
| This is the type of a function that can load an object of unspecified type from a bare input stream. More...
|
|
using | vg::io::bare_load_function_with_filename_t = function< void *(istream &, const string &)> |
| Like above, but keep track of an optional (can be empty) filename (ie where stream comes from) More...
|
|
using | vg::io::bare_save_function_t = function< void(const void *, ostream &)> |
| This is the type of a function that can save an object of unspecified type to a bare output stream. More...
|
|
Handles bookkeeping for the various data type tags in stream files.
TO ADD A PROTOBUF TYPE:
- Add a register_protobuf<Type>("TAG") to Registry::register_everything() in registry.cpp TO ADD A NON-PROTOBUF LOADER/SAVER:
- Write your own static initialization code somewhere that will end up in your binary.
- Make it call Registry::register_loader_saver<Type[, Base[, Base[...]]]>(tag, load_function, save_function)