![]() |
Murl Engine API
Version 2018.3
|
A container holding individual enumeration objects by name. More...
#include <murl_enum_container.h>
A container holding individual enumeration objects by name.
Public Member Functions | |
EnumContainer (const String &nmspc) | |
Constructor taking a namespace name. More... | |
EnumContainer (const String &nmspc, EnumContainer &parent) | |
Constructor taking a namespace name and a parent container. More... | |
String | GetNamespace () const |
Get the container's namespace. More... | |
Bool | Add (const String &name, const Enum< SInt32 > *e) |
Add an enumeration object. More... | |
const Enum< SInt32 > * | Find (const String &scopedName) const |
Try to get an enumeration object by its name. More... | |
UInt32 | GetCount () const |
Get the number of enumeration objects in the container. More... | |
String | GetName (UInt32 index) const |
Get the name of an enumeration object at a given index. More... | |
const Enum< SInt32 > * | Get (UInt32 index) const |
Get the enumeration object at a given index. More... | |
Murl::EnumContainer::EnumContainer | ( | const String & | nmspc | ) |
Constructor taking a namespace name.
nmspc | The namespace the container resides in. |
Murl::EnumContainer::EnumContainer | ( | const String & | nmspc, |
EnumContainer & | parent | ||
) |
Constructor taking a namespace name and a parent container.
nmspc | The namespace the container resides in. |
parent | The parent enum container. |
String Murl::EnumContainer::GetNamespace | ( | ) | const |
Get the container's namespace.
Add an enumeration object.
name | The name of the object. |
e | The enumeration object. |
Try to get an enumeration object by its name.
scopedName | The name to query. |
UInt32 Murl::EnumContainer::GetCount | ( | ) | const |
Get the number of enumeration objects in the container.
Get the name of an enumeration object at a given index.
index | The index, from 0 to GetCount()-1. |
Get the enumeration object at a given index.
index | The index, from 0 to GetCount()-1. |