Collection of schema definitions, typically read from a HIPO file header.
More...
#include <dictionary.h>
Collection of schema definitions, typically read from a HIPO file header.
Definition at line 248 of file dictionary.h.
◆ dictionary()
| hipo::dictionary::dictionary |
( |
| ) |
|
|
default |
◆ ~dictionary()
| virtual hipo::dictionary::~dictionary |
( |
| ) |
|
|
virtualdefault |
◆ addSchema()
| void hipo::dictionary::addSchema |
( |
schema |
sc | ) |
|
|
inline |
Add a schema to the dictionary.
- Parameters
-
| sc | Schema to add (keyed by its name). |
Definition at line 260 of file dictionary.h.
◆ getSchema()
| schema& hipo::dictionary::getSchema |
( |
const char * |
name | ) |
|
|
inline |
Retrieve a schema by name.
- Parameters
-
| name | Schema name to look up. |
- Returns
- Reference to the matching schema.
- Exceptions
-
Definition at line 271 of file dictionary.h.
◆ getSchemaList()
| std::vector< std::string > hipo::dictionary::getSchemaList |
( |
| ) |
|
Get a list of all schema names in the dictionary.
- Returns
- Vector of schema name strings.
Definition at line 121 of file dictionary.cpp.
◆ hasSchema()
| bool hipo::dictionary::hasSchema |
( |
const char * |
name | ) |
|
|
inline |
Check whether a schema with the given name exists.
- Parameters
-
| name | Schema name to look up. |
- Returns
- True if the schema exists, false otherwise.
Definition at line 264 of file dictionary.h.
◆ parse()
| bool hipo::dictionary::parse |
( |
const char * |
schemaString | ) |
|
Parse a full schema string and add it to the dictionary.
- Parameters
-
| schemaString | String containing the schema definition. |
- Returns
- True on success, false on failure.
Definition at line 130 of file dictionary.cpp.
◆ show()
| void hipo::dictionary::show |
( |
| ) |
|
Print all schemas in the dictionary to standard output.
Definition at line 143 of file dictionary.cpp.
The documentation for this class was generated from the following files: