MRPT
2.0.1
|
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>
Public Member Functions | |
CSchemeArchive () | |
Ctor that creates an own SCHEME_CAPABLE object. More... | |
CSchemeArchive (SCHEME_CAPABLE &val) | |
Ctor that uses user-providen SCHEME_CAPABLE object. More... | |
mrpt::serialization::CSchemeArchiveBase & | operator= (const int32_t val) override |
mrpt::serialization::CSchemeArchiveBase & | operator= (const uint32_t val) override |
mrpt::serialization::CSchemeArchiveBase & | operator= (const int64_t val) override |
mrpt::serialization::CSchemeArchiveBase & | operator= (const uint64_t val) override |
mrpt::serialization::CSchemeArchiveBase & | operator= (const float val) override |
mrpt::serialization::CSchemeArchiveBase & | operator= (const double val) override |
mrpt::serialization::CSchemeArchiveBase & | operator= (const std::nullptr_t val) override |
mrpt::serialization::CSchemeArchiveBase & | operator= (const std::string val) override |
mrpt::serialization::CSchemeArchiveBase & | operator= (const bool val) override |
operator int32_t () const override | |
operator uint32_t () const override | |
operator int64_t () const override | |
operator uint64_t () const override | |
operator float () const override | |
operator double () const override | |
operator bool () const override | |
operator std::string () const override | |
mrpt::serialization::CSchemeArchiveBase & | operator= (const mrpt::serialization::CSerializable &obj) override |
Writes object to archive, with synxtax out["name"] = obj; More... | |
void | readTo (mrpt::serialization::CSerializable &obj) override |
Reads object from the archive. More... | |
mrpt::serialization::CSchemeArchiveBase | operator[] (size_t idx) override |
mrpt::serialization::CSchemeArchiveBase | operator[] (std::string str) override |
std::ostream & | writeToStream (std::ostream &out) const override |
Writes the scheme to a plain-text output. More... | |
std::istream & | readFromStream (std::istream &in) override |
Reads the scheme from a plain-text input. More... | |
void | setParent (CSchemeArchiveBase *parent) |
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 out, and 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, and out.
|
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 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |