| 
    rippled
    
   | 
 
Holds the list of known ledger entry formats. More...
#include <LedgerFormats.h>


Public Member Functions | |
| LedgerEntryType | findTypeByName (std::string const &name) const | 
| Retrieve the type for a format specified by name.   | |
| Item const * | findByType (LedgerEntryType 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 LedgerFormats 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, LedgerEntryType type, std::initializer_list< SOElement > uniqueFields, std::initializer_list< SOElement > commonFields={}) | 
| Add a new format.   | |
Private Member Functions | |
| LedgerFormats () | |
| 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< LedgerEntryType, Item const * > | types_ | 
Holds the list of known ledger entry formats.
Definition at line 214 of file LedgerFormats.h.
      
  | 
  private | 
Create the object.
This will load the object with all the known ledger formats.
Definition at line 29 of file LedgerFormats.cpp.
      
  | 
  static | 
Definition at line 56 of file LedgerFormats.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 117 of file KnownFormats.h.
      
  | 
  inherited | 
Retrieve a format based on its type.
Definition at line 129 of file KnownFormats.h.
      
  | 
  inherited | 
Definition at line 139 of file KnownFormats.h.
      
  | 
  inherited | 
Definition at line 145 of file KnownFormats.h.
      
  | 
  protectedinherited | 
Retrieve a format based on its name.
Definition at line 154 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 172 of file KnownFormats.h.
      
  | 
  privateinherited | 
Definition at line 194 of file KnownFormats.h.
      
  | 
  privateinherited | 
Definition at line 199 of file KnownFormats.h.
      
  | 
  privateinherited | 
Definition at line 201 of file KnownFormats.h.
      
  | 
  privateinherited | 
Definition at line 202 of file KnownFormats.h.