xrpld
Loading...
Searching...
No Matches
xrpl::KnownFormats< KeyType, Derived >::Item Class Reference

A known format. More...

#include <KnownFormats.h>

Collaboration diagram for xrpl::KnownFormats< KeyType, Derived >::Item:

Public Member Functions

 Item (char const *name, KeyType type, std::vector< SOElement > uniqueFields, std::vector< SOElement > commonFields)
std::string const & getName () const
 Retrieve the name of the format.
KeyType getType () const
 Retrieve the transaction type this format represents.
SOTemplate const & getSOTemplate () const

Private Attributes

SOTemplate soTemplate_
std::string const name_
KeyType const type_

Detailed Description

template<class KeyType, class Derived>
class xrpl::KnownFormats< KeyType, Derived >::Item

A known format.

Definition at line 27 of file KnownFormats.h.

Constructor & Destructor Documentation

◆ Item()

template<class KeyType, class Derived>
xrpl::KnownFormats< KeyType, Derived >::Item::Item ( char const * name,
KeyType type,
std::vector< SOElement > uniqueFields,
std::vector< SOElement > commonFields )

Definition at line 30 of file KnownFormats.h.

Member Function Documentation

◆ getName()

template<class KeyType, class Derived>
std::string const & xrpl::KnownFormats< KeyType, Derived >::Item::getName ( ) const
nodiscard

Retrieve the name of the format.

Definition at line 48 of file KnownFormats.h.

◆ getType()

template<class KeyType, class Derived>
KeyType xrpl::KnownFormats< KeyType, Derived >::Item::getType ( ) const
nodiscard

Retrieve the transaction type this format represents.

Definition at line 56 of file KnownFormats.h.

◆ getSOTemplate()

template<class KeyType, class Derived>
SOTemplate const & xrpl::KnownFormats< KeyType, Derived >::Item::getSOTemplate ( ) const
nodiscard

Definition at line 62 of file KnownFormats.h.

Member Data Documentation

◆ soTemplate_

template<class KeyType, class Derived>
SOTemplate xrpl::KnownFormats< KeyType, Derived >::Item::soTemplate_
private

Definition at line 68 of file KnownFormats.h.

◆ name_

template<class KeyType, class Derived>
std::string const xrpl::KnownFormats< KeyType, Derived >::Item::name_
private

Definition at line 69 of file KnownFormats.h.

◆ type_

template<class KeyType, class Derived>
KeyType const xrpl::KnownFormats< KeyType, Derived >::Item::type_
private

Definition at line 70 of file KnownFormats.h.