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

Model::ModelPackage Class Reference

#include <ModelPackage.hpp>

Inheritance diagram for Model::ModelPackage:

OMF::Package List of all members.

Detailed Description

The ModelPackage class is the root package of the MOF. It is responsible for providing access to the proxies and extents defined within this metamodel.


Public Member Functions

virtual ~ModelPackage ()
virtual OMF::Modelmodel ()
const std::string & name () const
const std::string & uri () const
Classproxy (const std::string &name) const
Associationassociation (const std::string &name) const

Static Public Member Functions

ModelPackageinstance ()

Protected Member Functions

 ModelPackage ()
void defProxy (Class *proxy)
void defAssoc (Association *assoc)


Constructor & Destructor Documentation

Model::ModelPackage::ModelPackage  )  [protected]
 

virtual Model::ModelPackage::~ModelPackage  )  [virtual]
 


Member Function Documentation

Association* OMF::Package::association const std::string &  name  )  const [inherited]
 

Get the association extent with the given name.

void OMF::Package::defAssoc Association assoc  )  [protected, inherited]
 

Derived package classes must use this to initialize the association extents defined within the package.

void OMF::Package::defProxy Class proxy  )  [protected, inherited]
 

Derived package classes must use this to initialize the proxies defined within the package.

ModelPackage& Model::ModelPackage::instance  )  [static]
 

Return the singleton instance of this package.

virtual OMF::Model* Model::ModelPackage::model  )  [virtual]
 

Return the model that describes this metamodel implementation. The file is read from the disk on the first read and cached locally for subsequent references.

Implements OMF::Package.

const std::string& OMF::Package::name  )  const [inherited]
 

Return the name of the package.

Class* OMF::Package::proxy const std::string &  name  )  const [inherited]
 

Get the class proxy for the metaclass with the given name.

const std::string& OMF::Package::uri  )  const [inherited]
 

Return the uri of the package.


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