LuciadCPillar 2024.0.08
|
A data model is a collection of types that forms a logical entity. More...
#include <luciad/datamodels/DataModel.h>
Classes | |
class | Builder |
Builder that allows DataModel instances to be created. More... | |
Public Member Functions | |
std::optional< DataType > | findDataType (const std::string &name) const |
Searches for a data type by name. More... | |
const std::vector< DataType > & | getDataTypes () const |
Returns the data types of this data model. More... | |
size_t | getHash () const |
Returns the hash code. More... | |
const std::string & | getName () const |
Returns the name of this data model. More... | |
bool | operator!= (const DataModel &other) const |
bool | operator== (const DataModel &other) const |
Static Public Member Functions | |
static DataModel | getCoreDataModel () |
Returns the data model containing the core DataProperty value types. More... | |
static Builder | newBuilder () |
Creates a new builder. More... | |
A data model is a collection of types that forms a logical entity.
Conceptually this is similar to a UML package or an XML schema.
A data model is identified by its name. Two data models are considered to be equal if they have the same name and data types.
DataModel provides access to its types (see getDataTypes()).
Instances of this class are thread safe. Once an instance has been created, there is no public API to modify it.
Data models are created using a DataModel::Builder (see newBuilder()).
std::optional< DataType > luciad::DataModel::findDataType | ( | const std::string & | name | ) | const |
Searches for a data type by name.
name | the name for a data type. |
|
static |
Returns the data model containing the core DataProperty value types.
const std::vector< DataType > & luciad::DataModel::getDataTypes | ( | ) | const |
Returns the data types of this data model.
size_t luciad::DataModel::getHash | ( | ) | const |
Returns the hash code.
const std::string & luciad::DataModel::getName | ( | ) | const |
Returns the name of this data model.
|
static |
Creates a new builder.
bool luciad::DataModel::operator!= | ( | const DataModel & | other | ) | const |
bool luciad::DataModel::operator== | ( | const DataModel & | other | ) | const |