|
xrpld
|
Manages the list of known inner object formats. More...
#include <InnerObjectFormats.h>


Public Member Functions | |
| SOTemplate const * | findSOTemplateBySField (SField const &sField) const |
| int | findTypeByName (std::string const &name) const |
| Retrieve the type for a format specified by name. | |
| Item const * | findByType (int type) const |
| Retrieve a format based on its type. | |
| std::forward_list< Item >::const_iterator | begin () const |
| std::forward_list< Item >::const_iterator | end () const |
Static Public Member Functions | |
| static InnerObjectFormats const & | getInstance () |
Protected Member Functions | |
| Item const * | findByName (std::string const &name) const |
| Retrieve a format based on its name. | |
| Item const & | add (char const *name, int type, std::vector< SOElement > uniqueFields, std::vector< SOElement > commonFields={}) |
| Add a new format. | |
Private Member Functions | |
| InnerObjectFormats () | |
| Create the object. | |
Private Attributes | |
| std::string | name_ |
| std::forward_list< Item > | formats_ |
| boost::container::flat_map< std::string, Item const * > | names_ |
| boost::container::flat_map< int, Item const * > | types_ |
| friend | Derived |
Manages the list of known inner object formats.
Definition at line 9 of file InnerObjectFormats.h.
|
private |
Create the object.
This will load the object with all the known inner object formats.
Definition at line 8 of file InnerObjectFormats.cpp.
|
static |
Definition at line 166 of file InnerObjectFormats.cpp.
|
nodiscard |
Definition at line 173 of file InnerObjectFormats.cpp.
|
nodiscardinherited |
Retrieve the type for a format specified by name.
If the format name is unknown, an exception is thrown.
| name | The name of the type. |
Definition at line 100 of file KnownFormats.h.
|
nodiscardinherited |
Retrieve a format based on its type.
Definition at line 112 of file KnownFormats.h.
|
nodiscardinherited |
Definition at line 122 of file KnownFormats.h.
|
nodiscardinherited |
Definition at line 128 of file KnownFormats.h.
|
nodiscardprotectedinherited |
Retrieve a format based on its name.
Definition at line 137 of file KnownFormats.h.
|
protectedinherited |
Add a new format.
| name | The name of this format. |
| type | The type of this format. |
| uniqueFields | A std::vector of unique fields |
| commonFields | A std::vector of common fields |
Definition at line 155 of file KnownFormats.h.
|
privateinherited |
Definition at line 177 of file KnownFormats.h.
|
privateinherited |
Definition at line 182 of file KnownFormats.h.
|
privateinherited |
Definition at line 184 of file KnownFormats.h.
|
privateinherited |
Definition at line 185 of file KnownFormats.h.
|
privateinherited |
Definition at line 186 of file KnownFormats.h.