WSF
UtPackEnumType Class Referencefinal

A enum type defined in the schema. More...

#include <UtPackSchema.hpp>

Inheritance diagram for UtPackEnumType:
Collaboration diagram for UtPackEnumType:

Public Member Functions

 UtPackEnumType (UtPackType &aParent)
void Read (UtmlObject &aInput)
void Resolve () override
std::string GetCPP_Type () const
std::string GetUnderlyingType () const
const std::map< std::string, int > & GetEnumValues () const
const std::map< int, std::string > & GetValueToName () const
Public Member Functions inherited from UtPackType
 UtPackType (const UtPackType &)=delete
UtPackTypeoperator= (const UtPackType &)=delete
virtual ~UtPackType ()=default
const std::string & GetTypeName () const
std::string GetTypePath () const
 Returns the full path to the type, with '.' as a separator. example: "Track.TrackId".
UtPackTypeFindType (const std::string &aTypeName)
const UtPackTypeFindType (const std::string &aTypeName) const
Encoding GetEncoding () const
bool IsStruct () const
bool IsUnion () const
bool IsBasicType () const
bool IsEnum () const
bool IsList () const
const NestedTypesListGetNestedTypes () const

Additional Inherited Members

Public Types inherited from UtPackType
enum  Encoding {
  cENC_NONE , cENC_LITTLE_ENDIAN , cENC_VAR_BYTES , cENC_BIT ,
  cENC_STRUCT , cENC_LIST
}
using NestedTypesList = std::vector<std::pair<std::string, std::unique_ptr<UtPackType>>>
Protected Member Functions inherited from UtPackType
const UtPackTypeFindTypeP (const std::string &aTypeName) const
 UtPackType (UtPackType *aParentTypePtr)
const UtPackTypeGetRootType () const
UtPackTypeGetRootType ()
UtPackSchemaGetSchema () const
void Read (UtmlObject &aInput)
void ReadNestedTypes (UtmlObject &aInput)
Protected Attributes inherited from UtPackType
Encoding mEncoding
UtPackTypemParentType
std::string mTypeName
NestedTypesList mNestedTypes

Detailed Description

A enum type defined in the schema.

Constructor & Destructor Documentation

◆ UtPackEnumType()

UtPackEnumType::UtPackEnumType ( UtPackType & aParent)

Member Function Documentation

◆ GetCPP_Type()

std::string UtPackEnumType::GetCPP_Type ( ) const
inline

◆ GetEnumValues()

const std::map< std::string, int > & UtPackEnumType::GetEnumValues ( ) const
inline

◆ GetUnderlyingType()

std::string UtPackEnumType::GetUnderlyingType ( ) const
inline

◆ GetValueToName()

const std::map< int, std::string > & UtPackEnumType::GetValueToName ( ) const
inline

◆ Read()

◆ Resolve()

void UtPackEnumType::Resolve ( )
overridevirtual

Reimplemented from UtPackType.


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved