MRPT  2.0.1
List of all members | Public Types | Friends
mrpt::serialization::CSchemeArchiveBase Class Reference

Detailed Description

Virtual base class for "schematic archives" (JSON, XML,...)

Examples:
serialization_json_example/test.cpp.

Definition at line 75 of file CSchemeArchiveBase.h.

#include <mrpt/serialization/CSchemeArchiveBase.h>

Public Types

using Ptr = std::shared_ptr< CSchemeArchiveBase >
 

Friends

class CSchemeArchiveBase_impl
 

Serialization API for schema based "archives"

std::ostream & operator<< (std::ostream &out, const CSchemeArchiveBase &a)
 
std::istream & operator>> (std::istream &in, CSchemeArchiveBase &a)
 
std::unique_ptr< CSchemeArchiveBase_implpimpl
 
 CSchemeArchiveBase (std::unique_ptr< CSchemeArchiveBase_impl > ptr)
 
virtual ~CSchemeArchiveBase ()=default
 
 CSchemeArchiveBase (CSchemeArchiveBase &&o)
 
CSchemeArchiveBaseoperator= (const int32_t val)
 
CSchemeArchiveBaseoperator= (const uint32_t val)
 
CSchemeArchiveBaseoperator= (const int64_t val)
 
CSchemeArchiveBaseoperator= (const uint64_t val)
 
CSchemeArchiveBaseoperator= (const float val)
 
CSchemeArchiveBaseoperator= (const double val)
 
CSchemeArchiveBaseoperator= (const std::nullptr_t val)
 
CSchemeArchiveBaseoperator= (const std::string val)
 
CSchemeArchiveBaseoperator= (bool val)
 
 operator int32_t () const
 
 operator uint32_t () const
 
 operator int64_t () const
 
 operator uint64_t () const
 
 operator float () const
 
 operator double () const
 
 operator bool () const
 
 operator std::string () const
 
void readTo (CSerializable &obj)
 
CSchemeArchiveBaseoperator= (const mrpt::serialization::CSerializable &obj)
 
CSchemeArchiveBase operator[] (size_t val)
 
CSchemeArchiveBase operator[] (std::string val)
 
static void ReadObject (CSchemeArchiveBase &out, const CSerializable &obj)
 
static void WriteObject (CSchemeArchiveBase &in, CSerializable &obj)
 

Member Typedef Documentation

◆ Ptr

Definition at line 79 of file CSchemeArchiveBase.h.

Constructor & Destructor Documentation

◆ CSchemeArchiveBase() [1/2]

mrpt::serialization::CSchemeArchiveBase::CSchemeArchiveBase ( std::unique_ptr< CSchemeArchiveBase_impl ptr)
inline

Definition at line 83 of file CSchemeArchiveBase.h.

◆ ~CSchemeArchiveBase()

virtual mrpt::serialization::CSchemeArchiveBase::~CSchemeArchiveBase ( )
virtualdefault

◆ CSchemeArchiveBase() [2/2]

mrpt::serialization::CSchemeArchiveBase::CSchemeArchiveBase ( CSchemeArchiveBase &&  o)
inline

Definition at line 93 of file CSchemeArchiveBase.h.

Member Function Documentation

◆ operator bool()

mrpt::serialization::CSchemeArchiveBase::operator bool ( ) const
inlineexplicit

Definition at line 135 of file CSchemeArchiveBase.h.

◆ operator double()

mrpt::serialization::CSchemeArchiveBase::operator double ( ) const
inlineexplicit

Definition at line 134 of file CSchemeArchiveBase.h.

◆ operator float()

mrpt::serialization::CSchemeArchiveBase::operator float ( ) const
inlineexplicit

Definition at line 133 of file CSchemeArchiveBase.h.

◆ operator int32_t()

mrpt::serialization::CSchemeArchiveBase::operator int32_t ( ) const
inlineexplicit

Definition at line 129 of file CSchemeArchiveBase.h.

◆ operator int64_t()

mrpt::serialization::CSchemeArchiveBase::operator int64_t ( ) const
inlineexplicit

Definition at line 131 of file CSchemeArchiveBase.h.

◆ operator std::string()

mrpt::serialization::CSchemeArchiveBase::operator std::string ( ) const
inlineexplicit

Definition at line 136 of file CSchemeArchiveBase.h.

◆ operator uint32_t()

mrpt::serialization::CSchemeArchiveBase::operator uint32_t ( ) const
inlineexplicit

Definition at line 130 of file CSchemeArchiveBase.h.

◆ operator uint64_t()

mrpt::serialization::CSchemeArchiveBase::operator uint64_t ( ) const
inlineexplicit

Definition at line 132 of file CSchemeArchiveBase.h.

◆ operator=() [1/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const int32_t  val)
inline

Definition at line 95 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [2/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const uint32_t  val)
inline

Definition at line 99 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [3/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const int64_t  val)
inline

Definition at line 103 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [4/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const uint64_t  val)
inline

Definition at line 107 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [5/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const float  val)
inline

Definition at line 111 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [6/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const double  val)
inline

Definition at line 115 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [7/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const std::nullptr_t  val)
inline

Definition at line 119 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [8/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const std::string  val)
inline

Definition at line 123 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [9/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( bool  val)
inline

Definition at line 127 of file CSchemeArchiveBase.h.

References val.

◆ operator=() [10/10]

CSchemeArchiveBase& mrpt::serialization::CSchemeArchiveBase::operator= ( const mrpt::serialization::CSerializable obj)
inline

Definition at line 141 of file CSchemeArchiveBase.h.

◆ operator[]() [1/2]

CSchemeArchiveBase mrpt::serialization::CSchemeArchiveBase::operator[] ( size_t  val)
inline

Definition at line 146 of file CSchemeArchiveBase.h.

References val.

◆ operator[]() [2/2]

CSchemeArchiveBase mrpt::serialization::CSchemeArchiveBase::operator[] ( std::string  val)
inline

Definition at line 151 of file CSchemeArchiveBase.h.

References val.

◆ ReadObject()

static void mrpt::serialization::CSchemeArchiveBase::ReadObject ( CSchemeArchiveBase out,
const CSerializable obj 
)
inlinestaticprotected

Definition at line 159 of file CSchemeArchiveBase.h.

References out, and mrpt::serialization::CSerializable::serializeTo().

Referenced by mrpt::serialization::CSchemeArchiveBase_impl::ReadObject().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readTo()

void mrpt::serialization::CSchemeArchiveBase::readTo ( CSerializable obj)
inline

Definition at line 140 of file CSchemeArchiveBase.h.

◆ WriteObject()

static void mrpt::serialization::CSchemeArchiveBase::WriteObject ( CSchemeArchiveBase in,
CSerializable obj 
)
inlinestaticprotected

Definition at line 164 of file CSchemeArchiveBase.h.

References mrpt::serialization::CSerializable::serializeFrom().

Referenced by mrpt::serialization::CSchemeArchiveBase_impl::WriteObject().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ CSchemeArchiveBase_impl

friend class CSchemeArchiveBase_impl
friend

Definition at line 78 of file CSchemeArchiveBase.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const CSchemeArchiveBase a 
)
friend

Definition at line 176 of file CSchemeArchiveBase.h.

◆ operator>>

std::istream& operator>> ( std::istream &  in,
CSchemeArchiveBase a 
)
friend

Definition at line 181 of file CSchemeArchiveBase.h.

Member Data Documentation

◆ pimpl

std::unique_ptr<CSchemeArchiveBase_impl> mrpt::serialization::CSchemeArchiveBase::pimpl
private



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020