14 #ifndef MODB_CLASSINFO_H
15 #define MODB_CLASSINFO_H
113 const std::string& class_name,
114 const std::string& owner,
115 const std::vector<PropertyInfo>& properties,
116 const std::vector<prop_id_t>& naming_props);
127 const std::string&
getName()
const {
return class_name; }
133 const std::string&
getOwner()
const {
return owner; }
171 return properties.at(prop_names.at(name));
181 return properties.at(prop_id);
198 std::string class_name;
205 typedef boost::unordered_map<std::string, prop_id_t> prop_name_map_t;
215 prop_name_map_t prop_names;
221 std::vector<prop_id_t> naming_props;
An MO describing a policy enforcement endpoint that must be registered in the endpoint registry...
Definition: ClassInfo.h:64
A type that represents a relationship between two managed objects.
Definition: ClassInfo.h:88
A special managed object that will be created by the framework and will contain state about pending m...
Definition: ClassInfo.h:81
const std::string & getOwner() const
Get the owner for this class.
Definition: ClassInfo.h:133
An MO describing a configured policy that describes some user intent.
Definition: ClassInfo.h:51
class_type_t
The type of an MO in the Opflex protocol.
Definition: ClassInfo.h:45
const PropertyInfo & getProperty(prop_id_t &prop_id) const
Get the PropertyInfo for the given property ID.
Definition: ClassInfo.h:180
class_id_t getId() const
Get the unique class ID for this class.
Definition: ClassInfo.h:139
class_type_t getType() const
Get the type of this class.
Definition: ClassInfo.h:146
ClassInfo()
Default constructor.
Definition: ClassInfo.h:106
~ClassInfo()
Destroy the class index.
Interface definition file for PropertyInfo.
An MO describing a policy enforcement endpoint that resolved from the endpoint registry.
Definition: ClassInfo.h:58
A reverse relationship works just like a relationship except that it represents the reverse direction...
Definition: ClassInfo.h:95
An MO that exists only locally and will not be transmitted over the OpFlex protocol.
Definition: ClassInfo.h:75
boost::unordered_map< prop_id_t, PropertyInfo > property_map_t
A map from a prop_id_t to a PropertyInfo object.
Definition: ClassInfo.h:101
Class info provides metadata about managed object classes and properties.
Definition: ClassInfo.h:39
const property_map_t & getProperties() const
Get the properties that exist for this class.
Definition: ClassInfo.h:152
An MO containing information that is reported to the observer.
Definition: ClassInfo.h:70
Property info provides metadata about a particular managed object property.
Definition: PropertyInfo.h:50
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 cla...
Definition: ClassInfo.h:160
const PropertyInfo & getProperty(const std::string &name) const
Get the PropertyInfo for the given named property.
Definition: ClassInfo.h:170
const std::string & getName() const
Get the name for this class.
Definition: ClassInfo.h:127