![]() |
NDEVR
API Documentation
|
Represents a US state with its abbreviation and translated display name. More...
Public Member Functions | |
| USState (const TranslatedString &name, const char(&abv)[3]) | |
| Constructs a USState with a name and abbreviation. | |
| virtual String | name () const override |
| Returns the state abbreviation as the dataset name. | |
| virtual TranslatedString | title () const override |
| Returns the full translated state name. | |
| Public Member Functions inherited from Dataset | |
| virtual | ~Dataset () |
| Destructor. | |
| virtual Bounds< 3, fltp08 > | bounds () const |
| Returns the 3D spatial bounding box of this dataset. | |
| virtual Dataset * | child (const String &) |
| Retrieves a child dataset by name. | |
| virtual uint04 | childCount () const |
| Returns the number of child datasets. | |
| virtual Buffer< Dataset * > | children () |
| Returns all child datasets contained within this dataset. | |
| virtual TranslatedString | description () const |
| Returns a translated description of this dataset. | |
| virtual String | icon () const |
| Returns the icon resource name associated with this dataset. | |
| virtual bool | setupModel (Model &) |
| Configures the given Model using data from this dataset. | |
Public Attributes | |
| const char | m_abreviation [3] |
| The two-letter state abbreviation (e.g., "CA"). | |
| TranslatedString | m_name |
| The full translated state name. | |
Represents a US state with its abbreviation and translated display name.
Definition at line 11 of file StateLookup.h.
|
inline |
Constructs a USState with a name and abbreviation.
| [in] | name | The translated state name. |
| [in] | abv | The two-letter state abbreviation. |
Definition at line 28 of file StateLookup.h.
References m_abreviation, m_name, and name().
|
inlineoverridevirtual |
Returns the state abbreviation as the dataset name.
Implements Dataset.
Definition at line 15 of file StateLookup.h.
References m_abreviation.
Referenced by USState().
|
inlineoverridevirtual |
Returns the full translated state name.
Reimplemented from Dataset.
Definition at line 21 of file StateLookup.h.
References m_name.