Main MRPT website > C++ reference for MRPT 1.9.9
Namespaces | Macros | Functions | Variables
CArchive.cpp File Reference
#include "serialization-precomp.h"
#include <mrpt/core/exceptions.h>
#include <mrpt/core/byte_manip.h>
#include <mrpt/serialization/aligned_serialization.h>
#include <mrpt/serialization/CSerializable.h>
#include <mrpt/serialization/CArchive.h>
#include <mrpt/serialization/CMessage.h>
#include <cstring>
Include dependency graph for CArchive.cpp:

Go to the source code of this file.

Namespaces

 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 mrpt::serialization
 
 mrpt::serialization::detail
 

Macros

#define IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(T)
 
#define CARCHIVE_VERBOSE   0
 

Functions

 IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE (bool) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(uint8_t) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(int8_t) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(uint16_t) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(int16_t) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(uint32_t) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(int32_t) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(uint64_t) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(int64_t) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(float) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(double) IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE(long double) CArchive &mrpt
 
template<typename VEC >
CArchivemrpt::serialization::detail::writeStdVectorToStream (CArchive &s, const VEC &v)
 
template<typename VEC >
CArchivemrpt::serialization::detail::readStdVectorToStream (CArchive &s, VEC &v)
 

Variables

const uint8_t SERIALIZATION_END_FLAG = 0x88
 

Macro Definition Documentation

◆ CARCHIVE_VERBOSE

#define CARCHIVE_VERBOSE   0

Definition at line 378 of file CArchive.cpp.

◆ IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE

#define IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE (   T)
Value:
{ \
out.WriteBuffer((void*)&a, sizeof(a)); \
return out; \
} \
{ \
in.ReadBuffer((void*)&a, sizeof(a)); \
return in; \
}

Definition at line 78 of file CArchive.cpp.

Function Documentation

◆ IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE()

IMPLEMENT_CArchive_READ_WRITE_SIMPLE_TYPE ( bool  ) &

Definition at line 91 of file CArchive.cpp.

References mrpt::serialization::CArchive::WriteBuffer().

Variable Documentation

◆ SERIALIZATION_END_FLAG

const uint8_t SERIALIZATION_END_FLAG = 0x88
mrpt::serialization::CArchive::ReadBuffer
size_t ReadBuffer(void *Buffer, size_t Count)
Reads a block of bytes from the stream into Buffer.
Definition: CArchive.cpp:24
mrpt::serialization::operator>>
CArchive & operator>>(CArchive &s, mrpt::aligned_std_vector< float > &a)
Definition: CArchive.cpp:291
mrpt::serialization::CArchive
Virtual base class for "archives": classes abstracting I/O streams.
Definition: CArchive.h:48
mrpt::serialization::CArchive::WriteBuffer
void WriteBuffer(const void *Buffer, size_t Count)
Writes a block of bytes to the stream from Buffer.
Definition: CArchive.cpp:48
mrpt::serialization::operator<<
CArchive & operator<<(CArchive &s, const mrpt::aligned_std_vector< float > &a)
Definition: CArchive.cpp:240
in
GLuint in
Definition: glext.h:7274
a
GLubyte GLubyte GLubyte a
Definition: glext.h:6279



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST