2005/5/9

     
 

class MetaObject

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::dmi::MetaObject Class Reference

#include <MetaObject.h>

Inheritance diagram for acdk::lang::dmi::MetaObject:

acdk::lang::Class acdk::lang::dmi::MetaObjectImpl acdk::lang::reflect::Constructor acdk::lang::reflect::Enumeration acdk::lang::reflect::Field acdk::lang::reflect::Method acdk::lang::reflect::Parameter acdk::lang::reflect::Unit List of all members.

Detailed Description

A MetaObject is a class with meta information about a language construct.

Author:
Roger Rene Kommer (kommer@artefaktur.com)


Public Member Functions

virtual RMetaAttributeArray getMetaAttributes ()
 return all meta information connected with this MetaObject

virtual RMetaAttributeArray getInstanceMetaAttributes (IN(RObject) obj)
 return all meta information connected with this MetaObject and this Object.

virtual RMetaAttribute getMetaAttribute (IN(RString) keyname)
 return meta atribute named by keyname

RObject getObjectMetaAttribute (IN(RString) keyname)
virtual ScriptVar getScriptVarMetaAttribute (IN(RString) keyname)
virtual RMetaAttribute getInstanceMetaAttribute (IN(RObject) obj, IN(RString) keyname)
 return meta atribute named by keyname and obj instance

virtual ScriptVar getScriptVarInstanceMetaAttribute (IN(RObject) obj, IN(RString) keyname)
 return meta atribute named by keyname and obj instance as ScriptVar

virtual bool hasMetaAttribute (IN(RString) keyname)
 return true if a meta attribute is available under keyname

virtual bool hasInstanceMetaAttribute (IN(RObject) obj, IN(RString) keyname)
 return true if a meta attribute is available under obj instance and keyname

virtual void setMetaAttribute (IN(RString) keyname, IN(RObject) obj)
 set a new a meta attribute under keyname

virtual void setMetaAttribute (IN(RString) keyname, const ScriptVar &attr)
 set ScriptVar as MetaAttribute

virtual void setInstanceMetaAttribute (IN(RObject) obj, IN(RString) keyname, IN(RObject) attr)
 set a new attribute attr for this obj instance under keyname

virtual void setInstanceMetaAttribute (IN(RObject) obj, IN(RString) keyname, const ScriptVar &attr)
 set a new attribute attr for this obj instance under keyname as ScriptVar

virtual void deleteMetaAttribute (IN(RString) keyname)
 delete a a meta attribute under keyname

virtual void deleteInstanceMetaAttribute (IN(RObject) obj, IN(RString) keyname)
 delete a a meta attribute for obj instance under keyname

virtual MetaInfogetMetaInfo ()
 internal should be implemented by Class, Method, Member, and so on

virtual RString toTypeString (int format=TpFtFormatStandard)=0
 print the information


Static Public Member Functions

void registerListener (IN(RMetaObjectListener) listner)
void unRegisterListener (IN(RMetaObjectListener) listner)


Member Function Documentation

virtual void acdk::lang::dmi::MetaObject::deleteInstanceMetaAttribute IN(RObject obj,
IN(RString keyname
[virtual]
 

delete a a meta attribute for obj instance under keyname

virtual void acdk::lang::dmi::MetaObject::deleteMetaAttribute IN(RString keyname  )  [virtual]
 

delete a a meta attribute under keyname

virtual RMetaAttribute acdk::lang::dmi::MetaObject::getInstanceMetaAttribute IN(RObject obj,
IN(RString keyname
[virtual]
 

return meta atribute named by keyname and obj instance

virtual RMetaAttributeArray acdk::lang::dmi::MetaObject::getInstanceMetaAttributes IN(RObject obj  )  [virtual]
 

return all meta information connected with this MetaObject and this Object.

virtual RMetaAttribute acdk::lang::dmi::MetaObject::getMetaAttribute IN(RString keyname  )  [virtual]
 

return meta atribute named by keyname

virtual RMetaAttributeArray acdk::lang::dmi::MetaObject::getMetaAttributes  )  [virtual]
 

return all meta information connected with this MetaObject

virtual MetaInfo* acdk::lang::dmi::MetaObject::getMetaInfo  )  [inline, virtual]
 

internal should be implemented by Class, Method, Member, and so on

Reimplemented in acdk::lang::Class, acdk::lang::dmi::MetaObjectImpl, acdk::lang::reflect::Constructor, acdk::lang::reflect::Enumeration, acdk::lang::reflect::Field, acdk::lang::reflect::Method, acdk::lang::reflect::Parameter, and acdk::lang::reflect::Unit.

RObject acdk::lang::dmi::MetaObject::getObjectMetaAttribute IN(RString keyname  ) 
 

virtual ScriptVar acdk::lang::dmi::MetaObject::getScriptVarInstanceMetaAttribute IN(RObject obj,
IN(RString keyname
[virtual]
 

return meta atribute named by keyname and obj instance as ScriptVar

virtual ScriptVar acdk::lang::dmi::MetaObject::getScriptVarMetaAttribute IN(RString keyname  )  [virtual]
 

virtual bool acdk::lang::dmi::MetaObject::hasInstanceMetaAttribute IN(RObject obj,
IN(RString keyname
[virtual]
 

return true if a meta attribute is available under obj instance and keyname

virtual bool acdk::lang::dmi::MetaObject::hasMetaAttribute IN(RString keyname  )  [virtual]
 

return true if a meta attribute is available under keyname

void acdk::lang::dmi::MetaObject::registerListener IN(RMetaObjectListener listner  )  [static]
 

virtual void acdk::lang::dmi::MetaObject::setInstanceMetaAttribute IN(RObject obj,
IN(RString keyname,
const ScriptVar attr
[virtual]
 

set a new attribute attr for this obj instance under keyname as ScriptVar

virtual void acdk::lang::dmi::MetaObject::setInstanceMetaAttribute IN(RObject obj,
IN(RString keyname,
IN(RObject attr
[virtual]
 

set a new attribute attr for this obj instance under keyname

virtual void acdk::lang::dmi::MetaObject::setMetaAttribute IN(RString keyname,
const ScriptVar attr
[virtual]
 

set ScriptVar as MetaAttribute

virtual void acdk::lang::dmi::MetaObject::setMetaAttribute IN(RString keyname,
IN(RObject obj
[virtual]
 

set a new a meta attribute under keyname

virtual RString acdk::lang::dmi::MetaObject::toTypeString int  format = TpFtFormatStandard  )  [pure virtual]
 

print the information

Parameters:
format combination of acdk::lang::dmi::TypeNameFormat

Implemented in acdk::lang::Class, acdk::lang::dmi::MetaObjectImpl, acdk::lang::reflect::Constructor, acdk::lang::reflect::Enumeration, acdk::lang::reflect::Field, acdk::lang::reflect::Method, acdk::lang::reflect::Parameter, and acdk::lang::reflect::Unit.

void acdk::lang::dmi::MetaObject::unRegisterListener IN(RMetaObjectListener listner  )  [static]