An Information Portal to Biological Macromolecular Structures |
||
PDB Home | Contact Us | Software Tools Home | Dictionary Home | PDBML Home | |
#include "TblFileObj.h"
SSTable * TblFileObj::GetTablePtr(const char *blockName,
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");
s = fobjR->GetTablePtr("MyDBlock","MyTable"));
GetTablePtr(const char *, const char *) gets pointer of table from TblFileObj with specified blockName and tableName.
*blockName | Name of datablock |
*tableName | Table name |
Returns poiter to SSTable if table exist, otherwise NULL.
Table is not copied, just poiter is returned. This poiter must not be deleted because the table will also be deleted form TblFileObj object.