|
| BINArchive () |
| constructor
|
|
| BINArchive (std::ostream &ofs) |
| Constructor. More...
|
|
virtual | ~BINArchive () |
| destructor
|
|
void | close () |
| close streaming to archive
|
|
void | flush () |
| flush the archive. Anything stored in buffers will be flushed to the actual media that has been openned. More...
|
|
bool | isOpen () |
| test if this archive is openned for manipulation. If this is false then no storage will be performed. More...
|
|
| InputArchive () |
| constructor
|
|
void | readEnterScope (const std::string &id, const std::string &idDefault="") |
| enter specific scope with id when reading. More...
|
|
void | readLeaveScope (const std::string &id, const std::string &idDefault="") |
| leave specific scope with id when reading. More...
|
|
bool | readBool (const std::string &id) |
| read boolean
|
|
int | readInt (const std::string &id) |
| read integer
|
|
unsigned int | readUInt (const std::string &id) |
| read unsigned integer
|
|
int8_t | readInt8 (const std::string &id) |
| read 8 bit integer
|
|
uint8_t | readUInt8 (const std::string &id) |
| read 8 bit unsigned integer
|
|
int64_t | readInt64 (const std::string &id) |
| read 64 bit integer
|
|
uint64_t | readUInt64 (const std::string &id) |
| read 64 bit unsigned integer
|
|
double | readDouble (const std::string &id) |
| read double floating point
|
|
std::string | readString (const std::string &id) |
| read string
|
|
template<class T > |
void | read (T &object, const std::string &id) |
| Read object with identifier id from archive. More...
|
|
template<class T > |
void | read (T &object, const std::string &id, const std::string &idDefault) |
| Read object with identifier id from archive. More...
|
|
template<class T > |
InputArchive & | operator>> (T &dst) |
| Stream operator for streaming from archive to object. More...
|
|
virtual | ~Archive () |
| destructor
|
|
void | open (const std::string &filename) |
| open file for reading and writing More...
|
|
void | open (std::iostream &stream) |
| initialize archive for reading and/or writing to a stream More...
|
|
void | open (std::ostream &ofs) |
| open an output stream for writing
|
|
void | open (std::istream &ifs) |
| open an inputstream for reading
|
|
virtual | ~OutputArchive () |
| destructor
|
|
void | writeEnterScope (const std::string &id, const std::string &idDefault="") |
| create a serialized scope in which objects can be written More...
|
|
void | writeLeaveScope (const std::string &id, const std::string &idDefault="") |
| leave the current scope More...
|
|
template<class T > |
void | write (const T &object, const std::string &id) |
| generic write method. This method will write any objects that are either derived from the rw::common::Serializable class or where overloaded read() write() methods exists. More...
|
|
template<class T > |
void | write (const T &object, const std::string &id, const std::string &id_default) |
| Same as write(object,id) however an additional parameter is given which is the default identifier to use in case id is empty. More...
|
|
template<class T > |
OutputArchive & | operator<< (T &dst) |
| Output stream operator.
|
|
|
void | doOpenArchive (const std::string &filename) |
| open file for reading and writing More...
|
|
void | doOpenArchive (std::iostream &stream) |
| initialize archive for reading and/or writing to a stream More...
|
|
void | doOpenOutput (std::ostream &ofs) |
| open an output stream for writing More...
|
|
void | doOpenInput (std::istream &ifs) |
| open an inputstream for reading More...
|
|
void | doWriteEnterScope (const std::string &id) |
| Enter a scope. More...
|
|
void | doWriteLeaveScope (const std::string &id) |
| Leave a scope. More...
|
|
void | doReadEnterScope (const std::string &id) |
| Enter a scope. More...
|
|
void | doReadLeaveScope (const std::string &id) |
| Leave a scope. More...
|
|
void | doWrite (bool val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (int8_t val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (uint8_t val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (int16_t val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (uint16_t val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (int32_t val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (uint32_t val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (int64_t val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (uint64_t val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (float val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (double val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (const std::string &val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< bool > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< int8_t > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< uint8_t > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< int16_t > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< uint16_t > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< int32_t > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< uint32_t > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< int64_t > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< uint64_t > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< float > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< double > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const std::vector< std::string > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
void | doWrite (const Eigen::MatrixXd &val, const std::string &id) |
| Write an Eigen matrix to output. More...
|
|
void | doWrite (const Eigen::VectorXd &val, const std::string &id) |
| Write an Eigen vector to output. More...
|
|
template<class T > |
void | writeValue (const std::vector< T > &val, const std::string &id) |
| Write vector val to archive with identifier id. More...
|
|
template<class T > |
void | writeValue (const T &val, const std::string &id) |
| Write value val to archive with identifier id. More...
|
|
template<class Derived > |
void | writeMatrix (const Eigen::DenseCoeffsBase< Derived, Eigen::ReadOnlyAccessors > &val, const std::string &id) |
| Write a generic Eigen matrix to output. More...
|
|
virtual void | doRead (bool &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (int8_t &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (uint8_t &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (int16_t &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (uint16_t &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (int32_t &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (uint32_t &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (int64_t &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (uint64_t &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (float &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (double &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (std::string &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< bool > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< int8_t > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< uint8_t > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< int16_t > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< uint16_t > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< int32_t > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< uint32_t > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< int64_t > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< uint64_t > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< float > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< double > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (std::vector< std::string > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
virtual void | doRead (Eigen::MatrixXd &val, const std::string &id) |
| Read an Eigen matrix from input. More...
|
|
virtual void | doRead (Eigen::VectorXd &val, const std::string &id) |
| Read an Eigen vector from input. More...
|
|
template<class T > |
void | readValue (std::vector< T > &val, const std::string &id) |
| Read vector val with identifier id from archive. More...
|
|
template<class T > |
void | readValue (T &val, const std::string &id) |
| Read value val with identifier id from archive. More...
|
|
template<class Derived > |
void | readMatrix (Eigen::PlainObjectBase< Derived > &val, const std::string &id) |
| Read a generic Eigen matrix. More...
|
|
template<class T > |
void | doRead (T &object, const std::string &id) |
| Read object with identifier id from archive. More...
|
|
template<class T > |
void | doWrite (const T &object, const std::string &id) |
| handles serialization of an object. The object must either be a primitive type, inherit from Serializable or there must exist an overloaded method rw::common::serialization::write(const T& data, class OutputArchive& oarchive, const std::string& id) More...
|
|