WSF
UtPackUnion Class Referencefinal

A union is a choice of a single field from many. More...

#include <UtPackSchema.hpp>

Inheritance diagram for UtPackUnion:
Collaboration diagram for UtPackUnion:

Public Member Functions

 UtPackUnion (UtPackType &aParentType)
void Read (UtmlObject &aInput, UtPackType &aContainer)
void Resolve () override
const std::vector< UtPackField > & GetFields () 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 union is a choice of a single field from many.

Constructor & Destructor Documentation

◆ UtPackUnion()

UtPackUnion::UtPackUnion ( UtPackType & aParentType)

Member Function Documentation

◆ GetFields()

const std::vector< UtPackField > & UtPackUnion::GetFields ( ) const
inline

◆ Read()

◆ Resolve()

void UtPackUnion::Resolve ( )
overridevirtual

Reimplemented from UtPackType.

References UtPackType::GetTypePath(), and UtPackType::Resolve().


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