OpFlex Framework 1.7.0
opflex::modb::ClassInfo Class Reference

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, PropertyInfoproperty_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_tgetProperties () 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 PropertyInfogetProperty (const std::string &name) const
 Get the PropertyInfo for the given named property.
 
const PropertyInfogetProperty (prop_id_t &prop_id) const
 Get the PropertyInfo for the given property ID.
 

Detailed Description

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.


The documentation for this class was generated from the following file: