MRPT
1.9.9
|
Base template class for schema-capable "archives", e.g.
JSON, YAML, from which to (de)serialize objects.
See [mrpt-serialization] for examples of use.
Definition at line 28 of file CSchemeArchive.h.
#include <mrpt/serialization/CSchemeArchive.h>
Protected Member Functions | |
void | ReadObject (CSchemeArchiveBase &out, const CSerializable &obj) |
void | WriteObject (CSchemeArchiveBase &in, CSerializable &obj) |
Protected Attributes | |
CSchemeArchiveBase * | m_parent |
Private Attributes | |
std::optional< SCHEME_CAPABLE > | m_own_val |
SCHEME_CAPABLE & | m_val |
|
inline |
Ctor that creates an own SCHEME_CAPABLE object.
Definition at line 34 of file CSchemeArchive.h.
|
inline |
Ctor that uses user-providen SCHEME_CAPABLE object.
Definition at line 36 of file CSchemeArchive.h.
|
inlineexplicitoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 97 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineexplicitoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 96 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineexplicitoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 95 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineexplicitoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 91 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineexplicitoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 93 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineexplicitoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 98 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineexplicitoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 92 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineexplicitoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 94 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 38 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 44 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 50 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 56 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 62 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 67 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 73 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 79 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 85 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val, and val.
|
inlineoverridevirtual |
Writes object to archive, with synxtax out["name"] = obj;
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 99 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, and mrpt::serialization::CSchemeArchiveBase_impl::ReadObject().
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 111 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineoverridevirtual |
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 116 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
inlineoverridevirtual |
Reads the scheme from a plain-text input.
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 128 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
protectedinherited |
Definition at line 8 of file CSchemeArchiveBase.cpp.
References mrpt::serialization::CSchemeArchiveBase::ReadObject().
Referenced by mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator=().
|
inlineoverridevirtual |
Reads object from the archive.
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 105 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent, and mrpt::serialization::CSchemeArchiveBase_impl::WriteObject().
|
inlineinherited |
Definition at line 65 of file CSchemeArchiveBase.h.
References mrpt::serialization::CSchemeArchiveBase_impl::m_parent.
|
protectedinherited |
Definition at line 13 of file CSchemeArchiveBase.cpp.
References mrpt::serialization::CSchemeArchiveBase::WriteObject().
Referenced by mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::readTo().
|
inlineoverridevirtual |
Writes the scheme to a plain-text output.
Implements mrpt::serialization::CSchemeArchiveBase_impl.
Definition at line 123 of file CSchemeArchive.h.
References mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::m_val.
|
private |
Definition at line 30 of file CSchemeArchive.h.
|
protectedinherited |
Definition at line 68 of file CSchemeArchiveBase.h.
Referenced by mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator=(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::readTo(), and mrpt::serialization::CSchemeArchiveBase_impl::setParent().
|
private |
Definition at line 135 of file CSchemeArchive.h.
Referenced by mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator bool(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator double(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator float(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator int32_t(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator int64_t(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator std::string(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator uint32_t(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator uint64_t(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator=(), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::operator[](), mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::readFromStream(), and mrpt::serialization::CSchemeArchive< SCHEME_CAPABLE >::writeToStream().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |