Register and manage datatypes at runtime.
More...
#include <DataTypeInator.hpp>
Register and manage datatypes at runtime.
◆ DataTypeInator() [1/2]
| DataTypeInator::DataTypeInator |
( |
| ) |
|
◆ DataTypeInator() [2/2]
◆ addToDictionary()
| void DataTypeInator::addToDictionary |
( |
std::string |
name, |
|
|
DataType * |
typeSpec |
|
) |
| |
Add a name-DataType pair to the manager.
- Parameters
-
| name | String representation of type. Should be the fully qualified canonical name |
| typeSpec | bare pointer to the (validated or unvalidated) datatype. DataTypeInator will assume ownership of it. |
◆ addTypeDef()
| void DataTypeInator::addTypeDef |
( |
std::string |
typedefedName, |
|
|
std::string |
canonicalName |
|
) |
| |
Register a typedef statement with the DataTypeInator.
- Parameters
-
| typedefedName | LHS of typedef |
| canonicalName | RHS of typedef |
◆ resolve()
| std::shared_ptr< const DataType > DataTypeInator::resolve |
( |
std::string |
name | ) |
|
Look up the DataType given a string representation of the type This is the most important function of this entire library.
- Parameters
-
| name | fully qualified type name to look up (not necessarily canonical) |
- Returns
- std::shared_ptr<const DataType>
◆ validateDictionary()
| bool DataTypeInator::validateDictionary |
( |
| ) |
|
Ensure all types in the dictionary are valid.
- Returns
- true it good
-
false it not good
The documentation for this class was generated from the following files: