mudbox::ClassDesc Class Reference

#include <node.h>

List of all members.


Detailed Description

This structure represents and describes a class.

Type enumeration functions

const ClassDesc *  Next (void) const
  Returns the next ClassDesc structure. Used when you want to enumerate all the classes (See also First()).
const ClassDesc *  First (void)
  Returns the first ClassDesc (See also Next()).

Public Member Functions

  ClassDesc (const ClassDesc *pParent0, const ClassDesc *pParent1, const char *sName, const char *sDisplayName, creator *pCreator, int iVersion=0, int iStreamVersion=0)
  Do not construct this structure directly, use the DECLARE_CLASS and #IMLEMENT_CLASS macros.
const ClassDesc *  Parent (unsigned int iIndex=0) const
  Get the class description for the parent class, or 0 if there is no parent.
const char *  Name (void) const
  Returns the name of the class.
const char *  DisplayName (void) const
  Returns the displayname of the class.
bool  IsDerivedFrom (const ClassDesc *pClass) const
  Returns true if this class is derived from pClass.
Node *  CreateInstances (int iCount=1) const
  Create instances of the class.
int  Version (void) const
  returns the version of the class.

Static Public Member Functions

const ClassDesc *  ByName (const QString &sName)
  Returns a class by its name, or 0 if the class is not found.

Public Attributes

int  m_iStreamVersion

Friends

class  Node
class  Stream

Constructor & Destructor Documentation

mudbox::ClassDesc::ClassDesc (  const ClassDesc *  pParent0,
const ClassDesc *  pParent1,
const char *  sName,
const char *  sDisplayName,
creator *  pCreator,
int  iVersion = 0,
int  iStreamVersion = 0
) 
 

Do not construct this structure directly, use the DECLARE_CLASS and #IMLEMENT_CLASS macros.


Member Function Documentation

const ClassDesc* mudbox::ClassDesc::Parent (  unsigned int  iIndex = 0  )  const
 

Get the class description for the parent class, or 0 if there is no parent.

const char* mudbox::ClassDesc::Name (  void   )  const
 

Returns the name of the class.

const char* mudbox::ClassDesc::DisplayName (  void   )  const
 

Returns the displayname of the class.

bool mudbox::ClassDesc::IsDerivedFrom (  const ClassDesc *  pClass  )  const
 

Returns true if this class is derived from pClass.

class Node* mudbox::ClassDesc::CreateInstances (  int  iCount = 1  )  const
 

Create instances of the class.

const ClassDesc* mudbox::ClassDesc::First (  void   )  [static]
 

Returns the first ClassDesc (See also Next()).

const ClassDesc* mudbox::ClassDesc::Next (  void   )  const
 

Returns the next ClassDesc structure. Used when you want to enumerate all the classes (See also First()).

const ClassDesc* mudbox::ClassDesc::ByName (  const QString &  sName  )  [static]
 

Returns a class by its name, or 0 if the class is not found.

int mudbox::ClassDesc::Version (  void   )  const
 

returns the version of the class.


Friends And Related Function Documentation

friend class Node [friend]
 
friend class Stream [friend]
 

Member Data Documentation

int mudbox::ClassDesc::m_iStreamVersion
 

mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc
mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc mudbox::ClassDesc