SWClass Class Reference

#include <swobject.h>

Collaboration diagram for SWClass:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool isAssignableFrom (const char *className) const
 SWClass (const char **descends)

Private Attributes

const char ** descends

Detailed Description

Class used for SWDYNAMIC_CAST to save the inheritance order.

Definition at line 34 of file swobject.h.


Constructor & Destructor Documentation

SWClass::SWClass ( const char **  descends  )  [inline]

Definition at line 39 of file swobject.h.

00039                                    {
00040         this->descends = descends;
00041     }


Member Function Documentation

SWORD_NAMESPACE_START bool SWClass::isAssignableFrom ( const char *  className  )  const

Definition at line 34 of file swobject.cpp.

00034                                                           {
00035     for (int i = 0; descends[i]; i++) {
00036 #ifndef __CYGWIN__
00037         if (!sword::stricmp(descends[i], className))
00038 #else
00039         if (!stricmp(descends[i], className))
00040 #endif
00041             return true;
00042     }
00043     return false;
00044 }


Member Data Documentation

const char** SWClass::descends [private]

Definition at line 36 of file swobject.h.


The documentation for this class was generated from the following files:

Generated on 18 Mar 2013 for The SWORD Project by  doxygen 1.6.1