artefaktur
software engineer &        architecture

 
 
 
 

class ClazzEnumInfo

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

acdk::lang::dmi::ClazzEnumInfo Class Reference

#include <ClazzInfo.h>

List of all members.


Detailed Description

contains information about an enumeration

Author:
Roger Rene Kommer
Version:
Revision
1.61
Date:
Date
2005/04/18 14:22:27


Public Member Functions

bool isResolved () const
bool hasName (IN(RString) name) const
int getIntValue (IN(RString) name) const
 return -1 if name is not known by this enumeration

const ClazzEnumValueInfogetValue (IN(RString) name) const
RString toTypeString (int formatflags) const
void toTypeString (StringBuffer &sb, int formatflags) const
void registerEnumInfo () const
 intern method to register this EnumInfo

void dispose ()
 dispose this structure and owning Delete ClazzInfo if flags has MiDelete

ClazzEnumInfoclone (bool deep=true)
 Make a dynamic clone of this structor.

bool equalsName (IN(acdk::lang::RString) n) const
const NamedScopedMetaInfogetMetaInfo () const
NamedScopedMetaInfogetMetaInfo ()

Static Public Member Functions

const ClazzEnumInfofindEnum (IN(RString) enumname, IN(RString) namesp)
 find enumeration type with given name

const ClazzEnumValueInfofindEnumValue (IN(RString) enumname, IN(RString) namesp, const ClazzEnumInfo **ei=0)
 find enumeration value with given name

const ClazzEnumValueInfofindEnumValue (IN(RString) enumstring, const ClazzEnumInfo **ei=0)
ClazzEnumInfogetRoot ()
 return the root of all registered ClazzEnumInfo

void registerEnumInfo (const ClazzEnumInfo *clazz)
 intern method to register EnumInfo

void unregisterEnumInfo (const ClazzEnumInfo *clazz)
 intern method to unregister EnumInfo


Public Attributes

int flags
 see acdk::lang::dmi::MetaInfoFlags

void * attributeRes
const char * name
 the label of the field

int nameHashCode
const char * ns
const NamedScopedMetaInfo_scopeParent
 namespace where the Enumeration is defined

const NamedScopedMetaInfo_nextSibling
ClazzEnumValueInfo ** values
 0 terminated list of value definitions of this enumeration

ClazzEnumInfo_next
 next registerd ClazzEnumInfo


Member Function Documentation

ClazzEnumInfo* acdk::lang::dmi::ClazzEnumInfo::clone bool  deep = true  ) 
 

Make a dynamic clone of this structor.

Parameters:
deep if true make also a clone of child structs

void acdk::lang::dmi::ClazzEnumInfo::dispose  ) 
 

dispose this structure and owning Delete ClazzInfo if flags has MiDelete

bool acdk::lang::dmi::ClazzEnumInfo::equalsName IN(acdk::lang::RString n  )  const [inline]
 

const ClazzEnumInfo* acdk::lang::dmi::ClazzEnumInfo::findEnum IN(RString enumname,
IN(RString namesp
[static]
 

find enumeration type with given name

Parameters:
enumname name of enumeration
namesp namespace of enumeration, Nil if any namespace
Returns:
0 if enumeration cannot be found

const ClazzEnumValueInfo* acdk::lang::dmi::ClazzEnumInfo::findEnumValue IN(RString enumstring,
const ClazzEnumInfo **  ei = 0
[static]
 

const ClazzEnumValueInfo* acdk::lang::dmi::ClazzEnumInfo::findEnumValue IN(RString enumname,
IN(RString namesp,
const ClazzEnumInfo **  ei = 0
[static]
 

find enumeration value with given name

Parameters:
enumname name of enumeration value
namesp namespace of enumeration, Nil if any namespace
optional poiner to ClazzEnumInfo, which owns the enumeration ifno
Returns:
0 if enumeration cannot be found

int acdk::lang::dmi::ClazzEnumInfo::getIntValue IN(RString name  )  const
 

return -1 if name is not known by this enumeration

NamedScopedMetaInfo* acdk::lang::dmi::ClazzEnumInfo::getMetaInfo  )  [inline]
 

const NamedScopedMetaInfo* acdk::lang::dmi::ClazzEnumInfo::getMetaInfo  )  const [inline]
 

ClazzEnumInfo* acdk::lang::dmi::ClazzEnumInfo::getRoot  )  [static]
 

return the root of all registered ClazzEnumInfo

const ClazzEnumValueInfo* acdk::lang::dmi::ClazzEnumInfo::getValue IN(RString name  )  const
 

bool acdk::lang::dmi::ClazzEnumInfo::hasName IN(RString name  )  const
 

bool acdk::lang::dmi::ClazzEnumInfo::isResolved  )  const [inline]
 

void acdk::lang::dmi::ClazzEnumInfo::registerEnumInfo const ClazzEnumInfo clazz  )  [static]
 

intern method to register EnumInfo

void acdk::lang::dmi::ClazzEnumInfo::registerEnumInfo  )  const [inline]
 

intern method to register this EnumInfo

void acdk::lang::dmi::ClazzEnumInfo::toTypeString StringBuffer sb,
int  formatflags
const
 

RString acdk::lang::dmi::ClazzEnumInfo::toTypeString int  formatflags  )  const
 

void acdk::lang::dmi::ClazzEnumInfo::unregisterEnumInfo const ClazzEnumInfo clazz  )  [static]
 

intern method to unregister EnumInfo


Member Data Documentation

ClazzEnumInfo* acdk::lang::dmi::ClazzEnumInfo::_next [mutable]
 

next registerd ClazzEnumInfo

const NamedScopedMetaInfo* acdk::lang::dmi::ClazzEnumInfo::_nextSibling [mutable]
 

const NamedScopedMetaInfo* acdk::lang::dmi::ClazzEnumInfo::_scopeParent [mutable]
 

namespace where the Enumeration is defined

void* acdk::lang::dmi::ClazzEnumInfo::attributeRes
 

See also:
acdk::lang::dmi::AttributesRes

int acdk::lang::dmi::ClazzEnumInfo::flags
 

see acdk::lang::dmi::MetaInfoFlags

const char* acdk::lang::dmi::ClazzEnumInfo::name
 

the label of the field

int acdk::lang::dmi::ClazzEnumInfo::nameHashCode
 

const char* acdk::lang::dmi::ClazzEnumInfo::ns
 

ClazzEnumValueInfo** acdk::lang::dmi::ClazzEnumInfo::values
 

0 terminated list of value definitions of this enumeration

 
Last modified 2005-05-08 18:32 by SYSTEM By Artefaktur, Ing. Bureau Kommer