Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

databaseAccess.h

Go to the documentation of this file.
00001 
00011 /********************************************************************
00012 Description: Database Access Class
00013 part of the 3Dsia project
00014 created: xandi, 020400
00015 
00016 History:
00017     date,   name,       changes,                    in funtion
00018     DDMMYY  develo      did this and this and that  there
00019 
00020 ********************************************************************/
00021 
00022 #ifndef DATABASEACCESS_H
00023 #define DATABASEACCESS_H
00024 
00025 
00026 #include "buffer.h"
00027 #include "generic.h"
00028 
00029 class DatabaseAccess
00030     {
00031     private:
00032         int     ownerSocket; 
00033         Buffer* dataBaseIn; 
00034         timeval myTimeStamp; 
00035 
00036     public:
00037 
00039 
00042         DatabaseAccess ( int ownerSock );
00043 
00045 
00048         void getAllObjects ( void );
00049 
00051 
00054         void getObject ( int objectID );
00056 
00061         void getAtom   ( int atomID, int objectID, int atomType );
00062 
00065 
00068         void addObject ( string objectName );
00070 
00075         void addObject ( int objectID, string objectName );
00077 
00081         void addEntity ( string objectName );
00082 
00084 
00089         void addAtom ( int objectID, int atomType, string str );
00091 
00096         void addAtom ( int ojbectID, int atomType, long number );
00097 
00099 
00106         void addAtom ( int atomID, int objectID, int atomType, string str );
00108 
00115         void addAtom ( int atomID, int ojbectID, int atomType, long number );
00116 
00118 
00123         void addReason ( int objectIDa, int objectIDb, int reasonType );
00125 
00130         void removeReason ( int objectIDa, int objectIDb, int reasonType );
00131 
00132 
00133     };
00134 
00135 #endif
00136 

Generated at Sat May 13 13:50:18 2000 for 3Dsia by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000