|
WSF
|
A union is a choice of a single field from many. More...
#include <UtPackSchema.hpp>


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 | |
| UtPackType & | operator= (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". | |
| UtPackType * | FindType (const std::string &aTypeName) |
| const UtPackType * | FindType (const std::string &aTypeName) const |
| Encoding | GetEncoding () const |
| bool | IsStruct () const |
| bool | IsUnion () const |
| bool | IsBasicType () const |
| bool | IsEnum () const |
| bool | IsList () const |
| const NestedTypesList & | GetNestedTypes () 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 UtPackType * | FindTypeP (const std::string &aTypeName) const |
| UtPackType (UtPackType *aParentTypePtr) | |
| const UtPackType * | GetRootType () const |
| UtPackType * | GetRootType () |
| UtPackSchema * | GetSchema () const |
| void | Read (UtmlObject &aInput) |
| void | ReadNestedTypes (UtmlObject &aInput) |
| Protected Attributes inherited from UtPackType | |
| Encoding | mEncoding |
| UtPackType * | mParentType |
| std::string | mTypeName |
| NestedTypesList | mNestedTypes |
A union is a choice of a single field from many.
| UtPackUnion::UtPackUnion | ( | UtPackType & | aParentType | ) |
References UtPackType::UtPackType().
|
inline |
| void UtPackUnion::Read | ( | UtmlObject & | aInput, |
| UtPackType & | aContainer ) |
|
overridevirtual |
Reimplemented from UtPackType.
References UtPackType::GetTypePath(), and UtPackType::Resolve().