![]() |
![]() An Information Portal to Biological Macromolecular Structures |
|
PDB Home |
Contact Us ![]() |
![]() |
Software Tools Home | Dictionary Home | PDBML Home |
![]() |
#include "TblFileObj.h"
int TblFileObj::IsTablePresent(const char *blockName,
const char *tableName)
int TblFileObj::IsTablePresent(const char *tableName)
#include "TblFileObj.h"
TblFileObj * fobjR = new TblFileObj("./test/TESTFILE1", WRITE_MODE);
s = new SSTable("MyTable");
FillTestTable(s, nRows, nCols, "ABCDEFGHIJKLMNOPQRSTUVWXYZ012345689");
fobjR->WriteTable(s,"MyDBlock","MyTable");
if (fobjR->isTablePresent("MyDBlock","MyTable"))
cout<<"Table exist"<<endl;
IsTablePresent(const char *, const char *) checks if table tableName exists in blockName in TblFileObj object. IsTablePresent(const char *) checks if table tableName exists in current datablock in TblFileObj object.
*blockName | Name of datablock |
*tableName | Table name |
*tableName | Table name |
Returns 0 when table dosn't exist, 1 when the table exists
None |