Home You are here: Home > Support > Reference v1.0

Change language: German

XmNamespace Class Reference

Inheritance diagram for XmNamespace:

XmNamespaceInst CXmWin32Namespace List of all members.

Detailed Description

A namespace contain all ID's (XmID) used for a library or application.

The contained ID's have to be members of a class derived from XmNamespace. To use a namespace and its ID's, a single instance (singleton) have to be instantiated and registered with XmNamespaceMan::RegisterNamespace().

More information in section Namespace / IDs.


Public Member Functions

const char * GetNamespaceName () const
 Supply name of namespace.
const char * GetShortName () const
 Supply short name of namespace.
XmIDGetFirstID () const
 Supply first ID of namespace if available.
XmNamespaceGetNextNamespace () const
 Supply the next registered namespace.
int ValueOf (XMID id) const
 Return int value of id, if id is member of the namespace, otherwise -1.

Protected Member Functions

bool SetNamespaceNames (const char *name, const char *shortName)
 Set the long and the short name used for the namespace.
bool SetAtm (XmAtmID &atm, int intID, const char *nameID, const char *xmlName)
 Initialize an ID for identifiying an atom.
bool SetFcn (XmFcnID &fcn, int intID, const char *nameID, const char *xmlName)
 Initialize an ID for identifiying a function.
bool SetObj (XmObjID &obj, int intID, const char *nameID, const char *xmlName)
 Initialize an ID for identifiying an object.
bool SetAtm (XmAtmID &atm, const char *nameID, const char *xmlName)
 Initialize an ID for identifiying an atom.
bool SetFcn (XmFcnID &fcn, const char *nameID, const char *xmlName)
 Initialize an ID for identifiying a function.
bool SetObj (XmObjID &obj, const char *nameID, const char *xmlName)
 Initialize an ID for identifiying an object.

Copyright © 2006 Praetz Software Development - www.exomware.com