OpFlex Framework  1.3.0
opflex::modb::ModelMetadata Class Reference

Model metadata encapsulated all the metadata for a given model. More...

#include <opflex/modb/ModelMetadata.h>

Public Member Functions

 ModelMetadata (const std::string &model_name, const std::vector< ClassInfo > &classes)
 Construct a model metadata object for the given class ID. More...
 
 ~ModelMetadata ()
 Destroy the class index.
 
const std::string & getName () const
 Get the name for this model. More...
 
const std::vector< ClassInfo > & getClasses () const
 Get the classes that exist in this model. More...
 

Detailed Description

Model metadata encapsulated all the metadata for a given model.

This metadata is generated by the code generation framework and is required when the framework is initialized.

Constructor & Destructor Documentation

opflex::modb::ModelMetadata::ModelMetadata ( const std::string &  model_name,
const std::vector< ClassInfo > &  classes 
)

Construct a model metadata object for the given class ID.

Parameters
model_namethe name of the model
classesa vector containing the classes to be used with the model

Member Function Documentation

const std::vector<ClassInfo>& opflex::modb::ModelMetadata::getClasses ( ) const
inline

Get the classes that exist in this model.

Returns
a vector of ClassInfo objects
const std::string& opflex::modb::ModelMetadata::getName ( ) const
inline

Get the name for this model.

Returns
the string name

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