#include <binary_data_archive.hpp>
This archive is capable of saving objects of serialization level 1 and 2 in a binary, non-portable format.
- See also
- binary_data_iarchive
Definition at line 370 of file 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.
- Parameters
-
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 394 of file 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.
- Parameters
-
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 407 of file binary_data_archive.hpp.
unsigned int RTT::mqueue::binary_data_oarchive::get_library_version |
( |
| ) |
|
|
inline |
Saving Archive Concept::get_library_version()
- Returns
- This library's version.
Definition at line 416 of file binary_data_archive.hpp.
int RTT::mqueue::binary_data_oarchive::getArchiveSize |
( |
| ) |
|
|
inline |
template<class T >
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)
- Parameters
-
The | data type to register in this archive. |
- Returns
Definition at line 425 of file binary_data_archive.hpp.
template<class T >
binary_data_oarchive& RTT::mqueue::binary_data_oarchive::save_a_type |
( |
T const & |
t, |
|
|
boost::mpl::true_ |
|
|
) |
| |
|
inline |
Specialisation for writing out primitive types.
- Parameters
-
t | primitive data (bool, int,...) |
- Returns
- *this
Definition at line 492 of file binary_data_archive.hpp.
template<class T >
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).
- Parameters
-
t | a serializable class or struct. |
- Returns
- *this
Definition at line 514 of file binary_data_archive.hpp.
template<class ValueType >
void RTT::mqueue::binary_data_oarchive::save_array |
( |
boost::serialization::array< ValueType > const & |
a, |
|
|
unsigned |
int |
|
) |
| |
|
inline |
void RTT::mqueue::binary_data_oarchive::save_binary |
( |
const void * |
address, |
|
|
std::size_t |
count |
|
) |
| |
|
inline |
Saving Archive Concept::save_binary(u, count)
- Parameters
-
address | The place where data is located in memory. |
count | The number of bytes to save. |
Definition at line 465 of file 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 !
- Parameters
-
Definition at line 432 of file binary_data_archive.hpp.
int RTT::mqueue::binary_data_oarchive::data_written |
|
private |
std::streambuf& RTT::mqueue::binary_data_oarchive::m_sb |
|
private |
bool RTT::mqueue::binary_data_oarchive::mdo_save |
|
private |
The documentation for this class was generated from the following file: