OpFlex Framework 1.7.0
|
Class info provides metadata about managed object classes and properties. More...
#include <opflex/modb/ClassInfo.h>
Public Types | |
enum | class_type_t { POLICY , REMOTE_ENDPOINT , LOCAL_ENDPOINT , OBSERVABLE , LOCAL_ONLY , RESOLVER , RELATIONSHIP , REVERSE_RELATIONSHIP } |
The type of an MO in the Opflex protocol. More... | |
typedef OF_UNORDERED_MAP< prop_id_t, PropertyInfo > | property_map_t |
A map from a prop_id_t to a PropertyInfo object. | |
Public Member Functions | |
ClassInfo () | |
Default constructor. | |
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. | |
~ClassInfo () | |
Destroy the class index. | |
const std::string & | getName () const |
Get the name for this class. | |
const std::string & | getOwner () const |
Get the owner for this class. | |
class_id_t | getId () const |
Get the unique class ID for this class. | |
class_type_t | getType () const |
Get the type of this class. | |
const property_map_t & | getProperties () const |
Get the properties that exist for this class. | |
const std::vector< prop_id_t > & | getNamingProps () const |
Get the vector of naming properties (in order) that make up the key or naming properties for this class. | |
const PropertyInfo & | getProperty (const std::string &name) const |
Get the PropertyInfo for the given named property. | |
const PropertyInfo & | getProperty (prop_id_t &prop_id) const |
Get the PropertyInfo for the given property ID. | |
Class info provides metadata about managed object classes and properties.
This metadata is generated by the code generation framework and is required when the framework is initialized.