#include <binary_data_archive.hpp>
This archive is capable of loading objects of serialization level 1 and 2 from a binary, non-portable format.
- See also
- binary_data_oarchive
-
Definition at line 114 of file binary_data_archive.hpp.
RTT::mqueue::binary_data_iarchive::binary_data_iarchive |
( |
std::streambuf & |
bsb | ) |
|
|
inline |
Constructor from a standard output stream.
- Parameters
-
os | The stream to serialize from. |
Definition at line 135 of file binary_data_archive.hpp.
RTT::mqueue::binary_data_iarchive::binary_data_iarchive |
( |
std::istream & |
is | ) |
|
|
inline |
Constructor from a standard stream buffer.
- Parameters
-
os | The buffer to serialize from. |
Definition at line 144 of file binary_data_archive.hpp.
void RTT::mqueue::binary_data_iarchive::delete_created_pointers |
( |
| ) |
|
|
inline |
unsigned int RTT::mqueue::binary_data_iarchive::get_library_version |
( |
| ) |
|
|
inline |
Loading Archive Concept::get_library_version()
- Returns
- This library's version.
Definition at line 153 of file binary_data_archive.hpp.
int RTT::mqueue::binary_data_iarchive::getArchiveSize |
( |
| ) |
|
|
inline |
Specialisation for writing out primitive types.
- Parameters
-
t | primitive data (bool, int,...) |
- Returns
- *this
Definition at line 309 of file binary_data_archive.hpp.
Specialisation for writing out composite types (objects).
- Parameters
-
t | a serializable class or struct. |
- Returns
- *this
Definition at line 320 of file binary_data_archive.hpp.
template<class ValueType >
void RTT::mqueue::binary_data_iarchive::load_array |
( |
boost::serialization::array< ValueType > & |
a, |
|
|
unsigned |
int |
|
) |
| |
|
inline |
void RTT::mqueue::binary_data_iarchive::load_binary |
( |
void * |
address, |
|
|
std::size_t |
count |
|
) |
| |
|
inline |
Loading Archive Concept::load_binary(u, count)
- Parameters
-
address | The place in memory where data must be written. |
count | The number of bytes to load. |
Definition at line 261 of file binary_data_archive.hpp.
void RTT::mqueue::binary_data_iarchive::load_object |
( |
void * |
t, |
|
|
const boost::archive::detail::basic_iserializer & |
bis |
|
) |
| |
|
inline |
Note: not in LoadArchive concept but required when we use archive::load ! This function is only used when we call archive::load( *this, t);
- Parameters
-
Definition at line 182 of file binary_data_archive.hpp.
template<class T >
void RTT::mqueue::binary_data_iarchive::load_override |
( |
T & |
t, |
|
|
BOOST_PFTO |
int |
|
) |
| |
|
inline |
The standard type loading function. It forwards any type T to the correct internal load_a_type function.
Definition at line 194 of file binary_data_archive.hpp.
template<class T >
void RTT::mqueue::binary_data_iarchive::load_override |
( |
const boost::serialization::nvp< T > & |
t, |
|
|
int |
|
|
) |
| |
|
inline |
These load_override functions are required to handle the nvt<T> cases in the serialization code. GCC won't compile that code without these overloads. Others may be required as well and may need to be added later on.
Definition at line 212 of file binary_data_archive.hpp.
template<class T >
void RTT::mqueue::binary_data_iarchive::load_override |
( |
const boost::serialization::array< T > & |
t, |
|
|
int |
|
|
) |
| |
|
inline |
Specialisation that covers a boost serialization array created with make_array()
- Parameters
-
- Returns
- *this
Definition at line 228 of file binary_data_archive.hpp.
template<class T >
const boost::archive::detail::basic_pointer_iserializer* RTT::mqueue::binary_data_iarchive::register_type |
( |
T * |
= NULL | ) |
|
|
inline |
Loading Archive Concept::register_type<T>() and ::register_type(u)
- Parameters
-
The | data type to register in this archive. |
- Returns
Definition at line 174 of file binary_data_archive.hpp.
void RTT::mqueue::binary_data_iarchive::reset_object_address |
( |
const void * |
new_address, |
|
|
const void * |
old_address |
|
) |
| |
|
inline |
int RTT::mqueue::binary_data_iarchive::data_read |
|
private |
std::streambuf& RTT::mqueue::binary_data_iarchive::m_sb |
|
private |
The documentation for this class was generated from the following file: