#include <binary_data_archive.hpp>
Classes | |
struct | use_array_optimization |
Public Types | |
typedef char | Elem |
typedef char | Elem |
typedef boost::mpl::bool_< false > | is_loading |
typedef boost::mpl::bool_< false > | is_loading |
typedef boost::mpl::bool_< true > | is_saving |
typedef boost::mpl::bool_< true > | is_saving |
Public Member Functions | |
binary_data_oarchive (std::streambuf &sb, bool do_save=true) | |
binary_data_oarchive (std::ostream &os, bool do_save=true) | |
binary_data_oarchive (std::streambuf &sb, bool do_save=true) | |
binary_data_oarchive (std::ostream &os, bool do_save=true) | |
unsigned int | get_library_version () |
unsigned int | get_library_version () |
int | getArchiveSize () |
int | getArchiveSize () |
template<class T > | |
binary_data_oarchive & | operator& (T const &t) |
template<class T > | |
binary_data_oarchive & | operator& (T const &t) |
template<class T > | |
binary_data_oarchive & | operator<< (T const &t) |
template<class T > | |
binary_data_oarchive & | operator<< (T const &t) |
template<class T > | |
const boost::archive::detail::basic_pointer_iserializer * | register_type (T *=NULL) |
template<class T > | |
const boost::archive::detail::basic_pointer_iserializer * | register_type (T *=NULL) |
template<class T > | |
binary_data_oarchive & | save_a_type (T const &t, boost::mpl::false_) |
template<class T > | |
binary_data_oarchive & | save_a_type (T const &t, boost::mpl::true_) |
template<class T > | |
binary_data_oarchive & | save_a_type (T const &t, boost::mpl::false_) |
template<class T > | |
binary_data_oarchive & | save_a_type (T const &t, boost::mpl::true_) |
template<class ValueType > | |
void | save_array (boost::serialization::array< ValueType > const &a, unsigned int) |
template<class ValueType > | |
void | save_array (boost::serialization::array< ValueType > const &a, unsigned int) |
void | save_binary (const void *address, std::size_t count) |
void | save_binary (const void *address, std::size_t count) |
void | save_object (const void *x, const boost::archive::detail::basic_oserializer &bos) |
void | save_object (const void *x, const boost::archive::detail::basic_oserializer &bos) |
Private Attributes | |
int | data_written |
std::streambuf & | m_sb |
bool | mdo_save |
This archive is capable of saving objects of serialization level 1 and 2 in a binary, non-portable format.
Definition at line 341 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
typedef char RTT::mqueue::binary_data_oarchive::Elem |
Definition at line 347 of file rtt/transports/mqueue/binary_data_archive.hpp.
typedef char RTT::mqueue::binary_data_oarchive::Elem |
Definition at line 347 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
typedef boost::mpl::bool_<false> RTT::mqueue::binary_data_oarchive::is_loading |
Saving Archive Concept::is_loading
Definition at line 351 of file rtt/transports/mqueue/binary_data_archive.hpp.
typedef boost::mpl::bool_<false> RTT::mqueue::binary_data_oarchive::is_loading |
Saving Archive Concept::is_loading
Definition at line 351 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
typedef boost::mpl::bool_<true> RTT::mqueue::binary_data_oarchive::is_saving |
Saving Archive Concept::is_saving
Definition at line 355 of file rtt/transports/mqueue/binary_data_archive.hpp.
typedef boost::mpl::bool_<true> RTT::mqueue::binary_data_oarchive::is_saving |
Saving Archive Concept::is_saving
Definition at line 355 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
RTT::mqueue::binary_data_oarchive::binary_data_oarchive | ( | std::ostream & | os, | |
bool | do_save = true | |||
) | [inline] |
Constructor from a standard output stream.
os | The stream to serialize to | |
do_save | Set to false to not actually write nor use the given ostream. After a save operation, only the counter for getArchiveSize() will have increased. Use this to know in advance how much space you will need. |
Definition at line 365 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
RTT::mqueue::binary_data_oarchive::binary_data_oarchive | ( | std::streambuf & | sb, | |
bool | do_save = true | |||
) | [inline] |
Constructor from a standard stream buffer.
os | The buffer to serialize to. | |
do_save | Set to false to not actually write nor use the given ostream. After a save operation, only the counter for getArchiveSize() will have increased. Use this to know in advance how much space you will need. |
Definition at line 378 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
RTT::mqueue::binary_data_oarchive::binary_data_oarchive | ( | std::ostream & | os, | |
bool | do_save = true | |||
) | [inline] |
Constructor from a standard output stream.
os | The stream to serialize to | |
do_save | Set to false to not actually write nor use the given ostream. After a save operation, only the counter for getArchiveSize() will have increased. Use this to know in advance how much space you will need. |
Definition at line 365 of file rtt/transports/mqueue/binary_data_archive.hpp.
RTT::mqueue::binary_data_oarchive::binary_data_oarchive | ( | std::streambuf & | sb, | |
bool | do_save = true | |||
) | [inline] |
Constructor from a standard stream buffer.
os | The buffer to serialize to. | |
do_save | Set to false to not actually write nor use the given ostream. After a save operation, only the counter for getArchiveSize() will have increased. Use this to know in advance how much space you will need. |
Definition at line 378 of file rtt/transports/mqueue/binary_data_archive.hpp.
unsigned int RTT::mqueue::binary_data_oarchive::get_library_version | ( | ) | [inline] |
Saving Archive Concept::get_library_version()
Definition at line 387 of file rtt/transports/mqueue/binary_data_archive.hpp.
unsigned int RTT::mqueue::binary_data_oarchive::get_library_version | ( | ) | [inline] |
Saving Archive Concept::get_library_version()
Definition at line 387 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
int RTT::mqueue::binary_data_oarchive::getArchiveSize | ( | ) | [inline] |
Helper method to say how much we wrote.
Definition at line 512 of file rtt/transports/mqueue/binary_data_archive.hpp.
int RTT::mqueue::binary_data_oarchive::getArchiveSize | ( | ) | [inline] |
Helper method to say how much we wrote.
Definition at line 512 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::operator& | ( | T const & | t | ) | [inline] |
Saving Archive Concept::operator&
t | The type to save. |
Definition at line 427 of file rtt/transports/mqueue/binary_data_archive.hpp.
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::operator& | ( | T const & | t | ) | [inline] |
Saving Archive Concept::operator&
t | The type to save. |
Definition at line 427 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::operator<< | ( | T const & | t | ) | [inline] |
Saving Archive Concept::operator<<
t | The type to save. |
Definition at line 417 of file rtt/transports/mqueue/binary_data_archive.hpp.
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::operator<< | ( | T const & | t | ) | [inline] |
Saving Archive Concept::operator<<
t | The type to save. |
Definition at line 417 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
const boost::archive::detail::basic_pointer_iserializer* RTT::mqueue::binary_data_oarchive::register_type | ( | T * | = NULL |
) | [inline] |
Saving Archive Concept::register_type<T>() and register_type(u)
The | data type to register in this archive. |
Definition at line 396 of file rtt/transports/mqueue/binary_data_archive.hpp.
const boost::archive::detail::basic_pointer_iserializer* RTT::mqueue::binary_data_oarchive::register_type | ( | T * | = NULL |
) | [inline] |
Saving Archive Concept::register_type<T>() and register_type(u)
The | data type to register in this archive. |
Definition at line 396 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::save_a_type | ( | T const & | t, | |
boost::mpl::false_ | ||||
) | [inline] |
Specialisation for writing out composite types (objects).
t | a serializable class or struct. |
Definition at line 474 of file rtt/transports/mqueue/binary_data_archive.hpp.
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::save_a_type | ( | T const & | t, | |
boost::mpl::true_ | ||||
) | [inline] |
Specialisation for writing out primitive types.
t | primitive data (bool, int,...) |
Definition at line 463 of file rtt/transports/mqueue/binary_data_archive.hpp.
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::save_a_type | ( | T const & | t, | |
boost::mpl::false_ | ||||
) | [inline] |
Specialisation for writing out composite types (objects).
t | a serializable class or struct. |
Definition at line 474 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::save_a_type | ( | T const & | t, | |
boost::mpl::true_ | ||||
) | [inline] |
Specialisation for writing out primitive types.
t | primitive data (bool, int,...) |
Definition at line 463 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
void RTT::mqueue::binary_data_oarchive::save_array | ( | boost::serialization::array< ValueType > const & | a, | |
unsigned | int | |||
) | [inline] |
The optimized save_array dispatches to save_binary
Definition at line 502 of file rtt/transports/mqueue/binary_data_archive.hpp.
void RTT::mqueue::binary_data_oarchive::save_array | ( | boost::serialization::array< ValueType > const & | a, | |
unsigned | int | |||
) | [inline] |
The optimized save_array dispatches to save_binary
Definition at line 502 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
void RTT::mqueue::binary_data_oarchive::save_binary | ( | const void * | address, | |
std::size_t | count | |||
) | [inline] |
Saving Archive Concept::save_binary(u, count)
address | The place where data is located in memory. | |
count | The number of bytes to save. |
Definition at line 436 of file rtt/transports/mqueue/binary_data_archive.hpp.
void RTT::mqueue::binary_data_oarchive::save_binary | ( | const void * | address, | |
std::size_t | count | |||
) | [inline] |
Saving Archive Concept::save_binary(u, count)
address | The place where data is located in memory. | |
count | The number of bytes to save. |
Definition at line 436 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
void RTT::mqueue::binary_data_oarchive::save_object | ( | const void * | x, | |
const boost::archive::detail::basic_oserializer & | bos | |||
) | [inline] |
Note: not in LoadArchive concept but required when we use archive::save !
x | ||
bos |
Definition at line 403 of file rtt/transports/mqueue/binary_data_archive.hpp.
void RTT::mqueue::binary_data_oarchive::save_object | ( | const void * | x, | |
const boost::archive::detail::basic_oserializer & | bos | |||
) | [inline] |
Note: not in LoadArchive concept but required when we use archive::save !
x | ||
bos |
Definition at line 403 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
int RTT::mqueue::binary_data_oarchive::data_written [private] |
Definition at line 344 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
std::streambuf & RTT::mqueue::binary_data_oarchive::m_sb [private] |
Definition at line 343 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.
bool RTT::mqueue::binary_data_oarchive::mdo_save [private] |
Definition at line 345 of file install/include/rtt/transports/mqueue/binary_data_archive.hpp.