Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

OMF::ReflectionService Class Reference

#include <ReflectionService.hpp>

List of all members.


Detailed Description

The reflection service, despite it's cool name only really provides one function: mapping qualified names to meta objects. This is done by maintaining a singleton instance that maps names such as "Model.Class" to an instance of such objects parsed from a metamodel description file.


Public Member Functions

 ~ReflectionService ()
ModelObjectlookupMetaObject (const std::string &meta)

Static Public Member Functions

ReflectionServiceinstance ()

Protected Member Functions

 ReflectionService ()


Constructor & Destructor Documentation

OMF::ReflectionService::ReflectionService  )  [protected]
 

OMF::ReflectionService::~ReflectionService  ) 
 


Member Function Documentation

ReflectionService& OMF::ReflectionService::instance  )  [static]
 

Get the singleton instance of this object.

ModelObject* OMF::ReflectionService::lookupMetaObject const std::string &  meta  ) 
 

The lookupMetaObject() method is used to actually retrieve the meta-object for the given metaclass name. This is done by finding the correct meta-package, getting its model and searching for the right element. If the element is found, it is cached for fast lookup in subsequent calls.


The documentation for this class was generated from the following file:
Generated on Fri Sep 10 13:07:38 2004 for OpenModelingFramework by doxygen 1.3.8