rippled
|
Manages the list of known transaction formats. More...
Public Member Functions | |
TxType | findTypeByName (std::string const &name) const |
Retrieve the type for a format specified by name. More... | |
Item const * | findByType (TxType type) const |
Retrieve a format based on its type. More... | |
std::forward_list< Item >::const_iterator | begin () const |
std::forward_list< Item >::const_iterator | end () const |
Static Public Member Functions | |
static TxFormats const & | getInstance () |
Protected Member Functions | |
Item const * | findByName (std::string const &name) const |
Retrieve a format based on its name. More... | |
Item const & | add (char const *name, TxType type, std::initializer_list< SOElement > uniqueFields, std::initializer_list< SOElement > commonFields={}) |
Add a new format. More... | |
Private Member Functions | |
TxFormats () | |
Create the object. More... | |
Private Attributes | |
std::string | name_ |
std::forward_list< Item > | formats_ |
boost::container::flat_map< std::string, Item const * > | names_ |
boost::container::flat_map< TxType, Item const * > | types_ |
Manages the list of known transaction formats.
Definition at line 164 of file TxFormats.h.
|
private |
Create the object.
This will load the object with all the known transaction formats.
Definition at line 25 of file TxFormats.cpp.
|
static |
Definition at line 334 of file TxFormats.cpp.
|
inherited |
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 115 of file KnownFormats.h.
|
inherited |
Retrieve a format based on its type.
Definition at line 127 of file KnownFormats.h.
|
inherited |
Definition at line 137 of file KnownFormats.h.
|
inherited |
Definition at line 143 of file KnownFormats.h.
|
protectedinherited |
Retrieve a format based on its name.
Definition at line 152 of file KnownFormats.h.
|
protectedinherited |
Add a new format.
name | The name of this format. |
type | The type of this format. |
uniqueFields | An std::initializer_list of unique fields |
commonFields | An std::initializer_list of common fields |
Definition at line 170 of file KnownFormats.h.
|
privateinherited |
Definition at line 192 of file KnownFormats.h.
|
privateinherited |
Definition at line 197 of file KnownFormats.h.
|
privateinherited |
Definition at line 199 of file KnownFormats.h.
|
privateinherited |
Definition at line 200 of file KnownFormats.h.