RCSB PDB Protein Data Bank A Member of the wwPDB
An Information Portal to Biological Macromolecular Structures
PDB Home | Contact Us
next up previous contents
Next: GetTable Up: Methods Previous: IsTablePresent

GetTablePtr

NAME GetTablePtr

PROTOTYPE

#include "TblFileObj.h"

SSTable *  TblFileObj::GetTablePtr(const char *blockName, 
                                   const char *tableName)

EXAMPLE

#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"));
PURPOSE

GetTablePtr(const char *, const char *) gets pointer of table from TblFileObj with specified blockName and tableName.

RECEIVES

*blockName Name of datablock
*tableName Table name

RETURN VALUE

Returns poiter to SSTable if table exist, otherwise NULL.

REMARKS

Table is not copied, just poiter is returned. This poiter must not be deleted because the table will also be deleted form TblFileObj object.



Olivera Tosic
6/12/2002

 

© RCSB PDB