Logo
~Sockets~
~Examples~
~Contact~

Object Class Reference
[Database]

Database cache object, base class. More...

#include <Object.h>

Inheritance diagram for Object:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Object (Database &)
virtual ~Object ()
virtual bool Exists ()=0
 Check if the object already exists in database.
virtual void Save ()=0
 Save the object in database.
virtual long GetNum ()=0
 Get integer primary key from object.

Protected Attributes

Database & m_db

Detailed Description

Database cache object, base class.

Definition at line 29 of file Object.h.


Constructor & Destructor Documentation

Object::Object ( Database &   ) 

Definition at line 27 of file Object.cpp.

00027                            : m_db(db)
00028 {
00029 }

Object::~Object (  )  [virtual]

Definition at line 32 of file Object.cpp.

00033 {
00034 }


Member Function Documentation

virtual bool Object::Exists (  )  [pure virtual]

Check if the object already exists in database.

Returns:
true if the object exists

Implemented in Area, Chunk, Chunkinfo, Player, Race, Steps, and Terrain.

virtual void Object::Save (  )  [pure virtual]

Save the object in database.

Implemented in Area, Chunk, Chunkinfo, Player, Race, Steps, and Terrain.

virtual long Object::GetNum (  )  [pure virtual]

Get integer primary key from object.

Implemented in Area, Chunk, Chunkinfo, Player, Race, Steps, and Terrain.


Member Data Documentation


The documentation for this class was generated from the following files:
Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4