Orocos Real-Time Toolkit
2.9.0
|
This archive is capable of loading objects of serialization level 1 and 2 from a binary, non-portable format. More...
#include <rtt/transports/mqueue/binary_data_archive.hpp>
Classes | |
struct | use_array_optimization |
We provide an optimized load for all fundamental types typedef serialization::is_bitwise_serializable<mpl::_1> use_array_optimization;. More... | |
Public Types | |
typedef char | Elem |
typedef binary_data_iarchive | Archive |
typedef boost::mpl::bool_< true > | is_loading |
Loading Archive Concept::is_loading. More... | |
typedef boost::mpl::bool_< false > | is_saving |
Loading Archive Concept::is_saving. More... | |
Public Member Functions | |
binary_data_iarchive (std::streambuf &bsb) | |
Constructor from a standard output stream. More... | |
binary_data_iarchive (std::istream &is) | |
Constructor from a standard stream buffer. More... | |
unsigned int | get_library_version () |
Loading Archive Concept::get_library_version() More... | |
void | reset_object_address (const void *new_address, const void *old_address) |
Loading Archive Concept::reset_object_address(v,u) More... | |
void | delete_created_pointers () |
Loading Archive Concept::delete_created_pointers() More... | |
template<class T > | |
const boost::archive::detail::basic_pointer_iserializer * | register_type (T *=NULL) |
Loading Archive Concept::register_type<T>() and ::register_type(u) More... | |
void | load_object (void *t, const boost::archive::detail::basic_iserializer &bis) |
Note: not in LoadArchive concept but required when we use archive::load ! This function is only used when we call archive::load( *this, t);. More... | |
template<class T > | |
void | load_override (T &t, BOOST_PFTO int) |
The standard type loading function. More... | |
template<class T > | |
void | load_override (const boost::serialization::nvp< T > &t, int) |
These load_override functions are required to handle the nvt<T> cases in the serialization code. More... | |
template<class T > | |
void | load_override (const boost::serialization::array< T > &t, int) |
Specialisation that covers a boost serialization array created with make_array() More... | |
template<class T > | |
binary_data_iarchive & | operator>> (T &t) |
Loading Archive Concept::operator>> More... | |
template<class T > | |
binary_data_iarchive & | operator& (T &t) |
Loading Archive Concept::operator&. More... | |
void | load_binary (void *address, std::size_t count) |
Loading Archive Concept::load_binary(u, count) More... | |
template<class T > | |
binary_data_iarchive & | load_a_type (T &t, boost::mpl::true_) |
Specialisation for writing out primitive types. More... | |
template<class T > | |
binary_data_iarchive & | load_a_type (T &t, boost::mpl::false_) |
Specialisation for writing out composite types (objects). More... | |
template<class ValueType > | |
void | load_array (boost::serialization::array< ValueType > &a, unsigned int) |
The optimized save_array dispatches to save_binary. More... | |
int | getArchiveSize () |
Helper method to say how much we read. More... | |
This archive is capable of loading objects of serialization level 1 and 2 from a binary, non-portable format.
Definition at line 106 of file binary_data_archive.hpp.
Definition at line 112 of file binary_data_archive.hpp.
typedef char RTT::mqueue::binary_data_iarchive::Elem |
Definition at line 111 of file binary_data_archive.hpp.
typedef boost::mpl::bool_<true> RTT::mqueue::binary_data_iarchive::is_loading |
Loading Archive Concept::is_loading.
Definition at line 117 of file binary_data_archive.hpp.
typedef boost::mpl::bool_<false> RTT::mqueue::binary_data_iarchive::is_saving |
Loading Archive Concept::is_saving.
Definition at line 121 of file binary_data_archive.hpp.
|
inline |
Constructor from a standard output stream.
os | The stream to serialize from. |
Definition at line 127 of file binary_data_archive.hpp.
|
inline |
Constructor from a standard stream buffer.
os | The buffer to serialize from. |
Definition at line 136 of file binary_data_archive.hpp.
|
inline |
Loading Archive Concept::delete_created_pointers()
Definition at line 157 of file binary_data_archive.hpp.
|
inline |
Loading Archive Concept::get_library_version()
Definition at line 145 of file binary_data_archive.hpp.
|
inline |
Helper method to say how much we read.
Definition at line 354 of file binary_data_archive.hpp.
|
inline |
Specialisation for writing out primitive types.
t | primitive data (bool, int,...) |
Definition at line 301 of file binary_data_archive.hpp.
References load_binary().
Referenced by load_override().
|
inline |
Specialisation for writing out composite types (objects).
t | a serializable class or struct. |
Definition at line 312 of file binary_data_archive.hpp.
|
inline |
The optimized save_array dispatches to save_binary.
Definition at line 343 of file binary_data_archive.hpp.
References load_binary().
|
inline |
Loading Archive Concept::load_binary(u, count)
address | The place in memory where data must be written. |
count | The number of bytes to load. |
Definition at line 253 of file binary_data_archive.hpp.
Referenced by load_a_type(), and load_array().
|
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);.
x | |
bos |
Definition at line 174 of file binary_data_archive.hpp.
|
inline |
The standard type loading function.
It forwards any type T to the correct internal load_a_type function.
Definition at line 186 of file binary_data_archive.hpp.
References load_a_type().
Referenced by load_override(), and operator>>().
|
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 204 of file binary_data_archive.hpp.
References load_override().
|
inline |
Specialisation that covers a boost serialization array created with make_array()
t |
Definition at line 220 of file binary_data_archive.hpp.
|
inline |
Loading Archive Concept::operator&.
t | The type to load. |
Definition at line 244 of file binary_data_archive.hpp.
References operator>>().
|
inline |
Loading Archive Concept::operator>>
t | The type to load. |
Definition at line 233 of file binary_data_archive.hpp.
References load_override().
Referenced by operator&().
|
inline |
Loading Archive Concept::register_type<T>() and ::register_type(u)
The | data type to register in this archive. |
Definition at line 166 of file binary_data_archive.hpp.
|
inline |
Loading Archive Concept::reset_object_address(v,u)
new_address | |
old_address |
Definition at line 152 of file binary_data_archive.hpp.