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

amire::property::PropertyTypeManager Class Reference

List of all members.

Public Member Functions

 PropertyTypeManager ()
virtual ~PropertyTypeManager ()
osg::ref_ptr< PropertynewProperty (const std::string &propertyTypeName) const
osg::ref_ptr< PropertynewVectorProperty (const std::string &propertyTypeName) const
osg::ref_ptr< StructPropertynewStructProperty (const std::string &structPropertyTypeName) const
osg::ref_ptr< StructVectorPropertynewStructVectorProperty (const std::string &structPropertyTypeName) const
osg::ref_ptr< const PropertyTypegetPropertyType (const std::string &propertyTypeName) const
osg::ref_ptr< const VectorPropertyTypegetVectorPropertyType (const std::string &propertyTypeName) const
osg::ref_ptr< const PropertyTypegetBasePropertyType (const std::string &basePropertyTypeName) const
osg::ref_ptr< const VectorPropertyTypegetBaseVectorPropertyType (const std::string &basePropertyTypeName) const
osg::ref_ptr< const NativePropertyTypegetNativePropertyType (const std::string &nativePropertyTypeName) const
osg::ref_ptr< const VectorPropertyTypegetNativeVectorPropertyType (const std::string &nativePropertyTypeName) const
osg::ref_ptr< const StructPropertyTypegetStructPropertyType (const std::string &structPropertyTypeName) const
osg::ref_ptr< const VectorPropertyTypegetStructVectorPropertyType (const std::string &structPropertyTypeName) const
void registerNativePropertyType (const osg::ref_ptr< NativePropertyType > &nativePropertyType)
void registerStructPropertyType (const osg::ref_ptr< StructPropertyType > &structPropertyType)
bool containsPropertyType (const std::string &propertyTypeName) const
bool containsBasePropertyType (const std::string &basePropertyTypeName) const
bool containsNativePropertyType (const std::string &nativePropertyTypeName) const
bool containsStructPropertyType (const std::string &structPropertyTypeName) const
osg::ref_ptr< const amire::common::CategorygetPropertyTypeCategories () const
osg::ref_ptr< const PropertyTypegetBaseType (bool) const
osg::ref_ptr< const PropertyTypegetBaseType (int) const
osg::ref_ptr< const PropertyTypegetBaseType (float) const
osg::ref_ptr< const PropertyTypegetBaseType (double) const
osg::ref_ptr< const PropertyTypegetBaseType (char) const
osg::ref_ptr< const PropertyTypegetBaseType (const std::string &) const
osg::ref_ptr< const PropertyTypegetBaseVectorType (bool) const
osg::ref_ptr< const PropertyTypegetBaseVectorType (int) const
osg::ref_ptr< const PropertyTypegetBaseVectorType (float) const
osg::ref_ptr< const PropertyTypegetBaseVectorType (double) const
osg::ref_ptr< const PropertyTypegetBaseVectorType (char) const
osg::ref_ptr< const PropertyTypegetBaseVectorType (const std::string &) const
void setCurrentLibrary (const std::string &libraryName)
const std::string & getCurrentLibrary ()
const std::vector< osg::ref_ptr<
const StructPropertyType > > & 
getLocalStructPropertyTypes () const

Static Public Member Functions

PropertyTypeManager * getDefaultPropertyTypeManager ()

Detailed Description

An instance of the class PropertyTypeManager manages all structured property types of an application. Two applications that exist concurrently and are running within the same framework must use two property type managers to ensure the separation of the applications. An application A for example defines the camera property by an orientation matrix and a position. Another application B could redefine the camera property by a position and a roll, pitch and yaw angle for the orientation. These two applications would have two different definitions for the camera property. This is the reason why each application needs its own property type manager. Additionally there always exists a default property type manager, which should be used, when only one application is active.


Constructor & Destructor Documentation

amire::property::PropertyTypeManager::PropertyTypeManager  ) 
 

virtual amire::property::PropertyTypeManager::~PropertyTypeManager  )  [virtual]
 


Member Function Documentation

bool amire::property::PropertyTypeManager::containsBasePropertyType const std::string &  basePropertyTypeName  )  const
 

Returns true, if the given base property type is available. Otherwise, false is returned.

bool amire::property::PropertyTypeManager::containsNativePropertyType const std::string &  nativePropertyTypeName  )  const
 

Returns true, if the given native property type is available. Otherwise, false is returned.

bool amire::property::PropertyTypeManager::containsPropertyType const std::string &  propertyTypeName  )  const
 

Returns true, if the given property type is available. Otherwise, false is returned.

bool amire::property::PropertyTypeManager::containsStructPropertyType const std::string &  structPropertyTypeName  )  const
 

Returns true, if the given structured property type is available. Otherwise, false is returned.

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBasePropertyType const std::string &  basePropertyTypeName  )  const
 

Returns the base property type for the given string representation. An exception is throw, if no base property type is available for it.

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseType const std::string &   )  const
 

Returns the string base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseType char   )  const
 

Returns the char base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseType double   )  const
 

Returns the double base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseType float   )  const
 

Returns the float base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseType int   )  const
 

Returns the integer base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseType bool   )  const
 

Returns the boolean base property type (for internal use).

osg::ref_ptr<const VectorPropertyType> amire::property::PropertyTypeManager::getBaseVectorPropertyType const std::string &  basePropertyTypeName  )  const
 

Returns the base vector property type for the given string representation. An exception is throw, if no base property type is available for it.

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseVectorType const std::string &   )  const
 

Returns the string vector base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseVectorType char   )  const
 

Returns the char vector base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseVectorType double   )  const
 

Returns the double vector base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseVectorType float   )  const
 

Returns the float vector base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseVectorType int   )  const
 

Returns the integer vector base property type (for internal use).

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getBaseVectorType bool   )  const
 

Returns the boolean vector base property type (for internal use).

const std::string& amire::property::PropertyTypeManager::getCurrentLibrary  ) 
 

Returns the library, which is responsible for the creation of this property type. This could be a dynamically linked library, a XML base composed component library, a composed component or any other producer of property types. An empty string identifies the application itselt as producer.

PropertyTypeManager* amire::property::PropertyTypeManager::getDefaultPropertyTypeManager  )  [static]
 

The ‘static PropertyTypeManager *getDefaultPropertyTypeManager()’ method returns the default property type manager, which should be used for standalone applications. It is static, which means it can be invoked without an object by calling the method with the class name as qualifier like PropertyTypeManager::getDefaultPropertyTypeManager() for example.

const std::vector<osg::ref_ptr<const StructPropertyType> >& amire::property::PropertyTypeManager::getLocalStructPropertyTypes  )  const
 

Returns all structured property types, that are produced by the application itself.

osg::ref_ptr<const NativePropertyType> amire::property::PropertyTypeManager::getNativePropertyType const std::string &  nativePropertyTypeName  )  const
 

Returns the native property type for the given string representation. An exception is throw, if no native property type is available for it.

osg::ref_ptr<const VectorPropertyType> amire::property::PropertyTypeManager::getNativeVectorPropertyType const std::string &  nativePropertyTypeName  )  const
 

Returns the native vector property type for the given string representation. An exception is throw, if no native property type is available for it.

osg::ref_ptr<const PropertyType> amire::property::PropertyTypeManager::getPropertyType const std::string &  propertyTypeName  )  const
 

Returns the property type for the given string representation. An exception is throw, if no property type is available for it.

osg::ref_ptr<const amire::common::Category> amire::property::PropertyTypeManager::getPropertyTypeCategories  )  const
 

Returns the root category of all available property types.

osg::ref_ptr<const StructPropertyType> amire::property::PropertyTypeManager::getStructPropertyType const std::string &  structPropertyTypeName  )  const
 

Returns the structured property type for the given string representation. An exception is throw, if no structured property type is available for it.

osg::ref_ptr<const VectorPropertyType> amire::property::PropertyTypeManager::getStructVectorPropertyType const std::string &  structPropertyTypeName  )  const
 

Returns the structured vector property type for the given string representation. An exception is throw, if no structured property type is available for it.

osg::ref_ptr<const VectorPropertyType> amire::property::PropertyTypeManager::getVectorPropertyType const std::string &  propertyTypeName  )  const
 

Returns the vector property type for the given string representation. An exception is throw, if no property type is available for it.

osg::ref_ptr<Property> amire::property::PropertyTypeManager::newProperty const std::string &  propertyTypeName  )  const
 

Returns a new property of the given type. An exception is throw, if no property type is available for the given string representation.

osg::ref_ptr<StructProperty> amire::property::PropertyTypeManager::newStructProperty const std::string &  structPropertyTypeName  )  const
 

Returns a new structured property of the given type. An exception is throw, if no structured property type is available for the given string representation.

osg::ref_ptr<StructVectorProperty> amire::property::PropertyTypeManager::newStructVectorProperty const std::string &  structPropertyTypeName  )  const
 

Returns a new structured vector property of the given type. An exception is throw, if no structured property type is available for the given string representation.

osg::ref_ptr<Property> amire::property::PropertyTypeManager::newVectorProperty const std::string &  propertyTypeName  )  const
 

Returns a new vector property of the given type. An exception is throw, if no property type is available for the given string representation.

void amire::property::PropertyTypeManager::registerNativePropertyType const osg::ref_ptr< NativePropertyType > &  nativePropertyType  ) 
 

Registers a new native property type. An exception is throw, if the type is already registered.

void amire::property::PropertyTypeManager::registerStructPropertyType const osg::ref_ptr< StructPropertyType > &  structPropertyType  ) 
 

Registers a new structured property type. An exception is throw, if the type is already registered.

void amire::property::PropertyTypeManager::setCurrentLibrary const std::string &  libraryName  ) 
 

Sets the library, which is responsible for the creation of this property type. This could be a dynamically linked library, a XML base composed component library, a composed component or any other producer of property types. An empty string identifies the application itselt as producer. This method is limited to internal use and should not be used by component or authoring tool developers.


The documentation for this class was generated from the following file:
Generated on Tue May 20 17:23:58 2003 for AMIRE-Framework by doxygen1.3