|
| opflex::modb::ClassInfo::ClassInfo () |
| Default constructor.
|
|
| opflex::modb::ClassInfo::ClassInfo (class_id_t class_id, class_type_t class_type, const std::string &class_name, const std::string &owner, const std::vector< PropertyInfo > &properties, const std::vector< prop_id_t > &naming_props) |
| Construct a class info object for the given class ID.
|
|
| opflex::modb::ClassInfo::~ClassInfo () |
| Destroy the class index.
|
|
const std::string & | opflex::modb::ClassInfo::getName () const |
| Get the name for this class.
|
|
const std::string & | opflex::modb::ClassInfo::getOwner () const |
| Get the owner for this class.
|
|
class_id_t | opflex::modb::ClassInfo::getId () const |
| Get the unique class ID for this class.
|
|
class_type_t | opflex::modb::ClassInfo::getType () const |
| Get the type of this class.
|
|
const property_map_t & | opflex::modb::ClassInfo::getProperties () const |
| Get the properties that exist for this class.
|
|
const std::vector< prop_id_t > & | opflex::modb::ClassInfo::getNamingProps () const |
| Get the vector of naming properties (in order) that make up the key or naming properties for this class.
|
|
const PropertyInfo & | opflex::modb::ClassInfo::getProperty (const std::string &name) const |
| Get the PropertyInfo for the given named property.
|
|
const PropertyInfo & | opflex::modb::ClassInfo::getProperty (prop_id_t &prop_id) const |
| Get the PropertyInfo for the given property ID.
|
|
| opflex::modb::ConstInfo::ConstInfo (const std::string &name_, uint64_t id_) |
| Construct a const info object with the given name and ID.
|
|
| opflex::modb::ConstInfo::~ConstInfo () |
| Destructor.
|
|
const std::string & | opflex::modb::ConstInfo::getName () const |
| Get the name for this const.
|
|
const uint64_t | opflex::modb::ConstInfo::getId () const |
| Get the unique ID for this const within the enclosing enum.
|
|
| opflex::modb::EnumInfo::EnumInfo () |
| Default constructor.
|
|
| opflex::modb::EnumInfo::EnumInfo (const std::string &name_, const std::vector< ConstInfo > &consts_) |
| Construct an enum info with the given name and consts.
|
|
| opflex::modb::EnumInfo::~EnumInfo () |
| Destructor.
|
|
const std::string & | opflex::modb::EnumInfo::getName () const |
| Get the name of the enum.
|
|
const std::vector< ConstInfo > & | opflex::modb::EnumInfo::getConsts () const |
| Get the vector of possible const values for the enum.
|
|
const uint64_t | opflex::modb::EnumInfo::getIdByName (const std::string &name) const |
| Get the constant value by the enum name.
|
|
const std::string & | opflex::modb::EnumInfo::getNameById (uint64_t id) const |
| Get the enum constant name by the enum value.
|
|
| opflex::modb::ModelMetadata::ModelMetadata (const std::string &model_name, const std::vector< ClassInfo > &classes) |
| Construct a model metadata object for the given class ID.
|
|
| opflex::modb::ModelMetadata::~ModelMetadata () |
| Destroy the class index.
|
|
const std::string & | opflex::modb::ModelMetadata::getName () const |
| Get the name for this model.
|
|
const std::vector< ClassInfo > & | opflex::modb::ModelMetadata::getClasses () const |
| Get the classes that exist in this model.
|
|
| opflex::modb::PropertyInfo::PropertyInfo () |
| Default constructor.
|
|
| opflex::modb::PropertyInfo::PropertyInfo (prop_id_t prop_id, const std::string &property_name, property_type_t type, cardinality_t cardinality) |
| Construct a property info object with the provided property name and primitive property type.
|
|
| opflex::modb::PropertyInfo::PropertyInfo (prop_id_t prop_id, const std::string &property_name, property_type_t type, cardinality_t cardinality, const EnumInfo &enum_info) |
| Construct a property info object with enum info of the specified type.
|
|
| opflex::modb::PropertyInfo::PropertyInfo (prop_id_t prop_id, const std::string &property_name, property_type_t type, class_id_t class_id, cardinality_t cardinality) |
| Construct a property info object with either a composite or reference data type of the specified type.
|
|
| opflex::modb::PropertyInfo::~PropertyInfo () |
| Destroy the property info object.
|
|
prop_id_t | opflex::modb::PropertyInfo::getId () const |
| Get the id for this property.
|
|
const std::string & | opflex::modb::PropertyInfo::getName () const |
| Get the name for this property.
|
|
const property_type_t | opflex::modb::PropertyInfo::getType () const |
| Get the type of this property.
|
|
const class_id_t | opflex::modb::PropertyInfo::getClassId () const |
| Get the class ID for this property.
|
|
const cardinality_t | opflex::modb::PropertyInfo::getCardinality () const |
| Get the cardinality for this type.
|
|
const EnumInfo & | opflex::modb::PropertyInfo::getEnumInfo () const |
| Get the associated enum info for this property if it is an enum.
|
|
These types are used to define the basic parameters of the model.
An actual instance of the metadata would be defined in the generated model code.