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: DeleteTable Up: Methods Previous: GetTablePtr

GetTable

NAME GetTablePtr

PROTOTYPE

#include "TblFileObj.h"

SSTable *  TblFileObj::GetTable(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->GetTable("MyDBlock","MyTable"));
PURPOSE

GetTable(const char *,const char ) gets pointer of table from TblFileObj with specified blockName and tableName, but actually copies the table.

RECEIVES

*blockName Name of datablock
*tableName Table name

RETURN VALUE

Returns poiter to SSTable.

REMARKS

This method copies the table and this pointer should be deleted.



Olivera Tosic
6/12/2002

 

© RCSB PDB