Main Page   Class Hierarchy   Compound List   File List   Compound Members  

VTable.h

00001 #ifndef VTABLE_H
00002 #define VTABLE_H
00003 
00004 #include "global.h"
00005 #include "TableMetaData.h"
00006 #include "TableData.h"
00007 
00015 //* Date created - 02 May 2002
00016 
00017 class VTable {
00018 
00019         public:
00020 
00024                 VTable();    // Constructor:  initialize variables, allocate space.
00025 
00026                 //VTable(TableMetaData tmd, TableData td, char *ID, char *name, char *ref);
00027 
00044                 VTable(const char * filename, const char * path, int iomode, int * status);
00045 
00049                 ~VTable();
00050 
00054                 VTable operator=(const VTable &v);
00055 
00059                 VTable(const VTable &v);
00060 
00077                 int openFile(const char * filename, 
00078                         const char * path, int iomode, int * status);
00079 
00083                 int closeFile(int * status);
00084 
00085                 // Set MetaData
00086                 int setMetaData(TableMetaData tmd, int * status);
00087 
00088                 // Set Table Data
00089                 int setData(TableData td, int * status);
00090 
00091                 // Set Table name
00092                 int setName(char * name, int * status);
00093 
00094                 // Set Table ID.
00095                 int setID(char * ID, int * status);
00096 
00097                 // Set Table Reference
00098                 int setRef(char * ref, int * status);
00099 
00103                 int getMetaData(TableMetaData &tmd, int * status);
00104 
00108                 int getData(TableData &td, int * status);
00109 
00113                 int getName(char * &name, int * status);
00114 
00118                 int getID(char * &ID, int * status);
00119 
00123                 int getRef(char * &ref, int * status);
00124 
00125         private:
00126                 
00127                 TableMetaData m_tmd; 
00128                 TableData m_td;
00129                 char * m_ID;
00130                 char * m_name;
00131                 char * m_ref;
00132 
00133                 void cleanup(void);
00134                 void makecopy(const VTable &v);
00135                 void init(void);
00136 
00137 };
00138 
00139 #endif

Generated on Mon Jul 15 13:54:19 2002 for VOTable Parser 1.2 Documentation by doxygen1.2.16