Main MRPT website
>
C++ reference for MRPT 1.4.0
mrpt
utils
CMemoryChunk.h
Go to the documentation of this file.
1
/* +---------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2016, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+---------------------------------------------------------------------------+ */
9
#ifndef CMemoryChunk_H
10
#define CMemoryChunk_H
11
12
#include <
mrpt/utils/CMemoryStream.h
>
13
#include <
mrpt/utils/CSerializable.h
>
14
15
/*---------------------------------------------------------------
16
Class
17
---------------------------------------------------------------*/
18
namespace
mrpt
19
{
20
namespace
utils
21
{
22
// This must be added to any CSerializable derived class:
23
DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE
( CMemoryChunk,
mrpt::utils::CSerializable
)
24
25
/** A memory buffer (implements CStream) which can be itself serialized.
26
*
27
* \sa CStream
28
* \ingroup mrpt_base_grp
29
*/
30
class
BASE_IMPEXP
CMemoryChunk
: public
CSerializable
, public
CMemoryStream
31
{
32
// This must be added to any CSerializable derived class:
33
DEFINE_SERIALIZABLE
(
CMemoryChunk
)
34
35
};
// End of class def.
36
DEFINE_SERIALIZABLE_POST_CUSTOM_BASE
(
CMemoryChunk
,
mrpt::utils::CSerializable
)
37
38
}
// End of namespace
39
}
// end of namespace
40
#endif
DEFINE_SERIALIZABLE_POST_CUSTOM_BASE
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
Definition:
CSerializable.h:182
CMemoryStream.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition:
CParticleFilter.h:16
mrpt::utils::CMemoryChunk
A memory buffer (implements CStream) which can be itself serialized.
Definition:
CMemoryChunk.h:30
mrpt::utils::CSerializable
The virtual base class which provides a unified interface for all persistent objects in MRPT.
Definition:
CSerializable.h:39
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition:
CSerializable.h:147
CSerializable.h
mrpt::utils::CMemoryStream
This CStream derived class allow using a memory buffer as a CStream.
Definition:
CMemoryStream.h:29
BASE_IMPEXP
#define BASE_IMPEXP
Definition:
base/include/mrpt/base/link_pragmas.h:90
DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
Definition:
CSerializable.h:178
Page generated by
Doxygen 1.8.16
for MRPT 1.4.0 SVN: at Mon Oct 14 23:08:25 UTC 2019