The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SWObject Class Reference

#include <swobject.h>

+ Inheritance diagram for SWObject:
+ Collaboration diagram for SWObject:

Public Member Functions

const SWClassgetClass () const
 
 SWObject (const SWClass &classdef)
 

Protected Attributes

const SWClassmyClass
 

Detailed Description

Base class for major Sword classes. SWObject is the base class for major Sword classes like SWKey. It is used because dynamic_cast is not available on all plattforms supported by Sword. Use SWDYNAMIC_CAST(classname, object) instead of dynamic_cast<classname>(object).

Definition at line 52 of file swobject.h.

Constructor & Destructor Documentation

SWObject::SWObject ( const SWClass classdef)

Definition at line 61 of file swobject.cpp.

61  {
62  myClass = &assignClassDef;
63 }
const SWClass * myClass
Definition: swobject.h:55

Member Function Documentation

const SWClass* SWObject::getClass ( ) const
inline

Use this to get the class definition and inheritance order.

Returns
The class definition of this object

Definition at line 63 of file swobject.h.

63  {
64  return myClass;
65  }
const SWClass * myClass
Definition: swobject.h:55

Member Data Documentation

const SWClass* SWObject::myClass
protected

Definition at line 55 of file swobject.h.


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