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

GetTableNames

NAME GetTableNames

PROTOTYPE

#include "TblFileObj.h"

char **  TblFileObj::GetTableNames(const char *blockName, 
                                   int num);

EXAMPLE

#include "TblFileObj.h"
int num;
char ** names;

TblFileObj * fobjR = new TblFileObj("./test/TESTFILE1", WRITE_MODE);

s = new SSTable("MyTable");
FillTestTable(s, nRows, nCols, "ABCDEFGHIJKLMNOPQRSTUVWXYZ012345689");
fobjR->WriteTable(s,"MyDBlock","MyTable1");
fobjR->WriteTable(s,"MyDBlock","MyTable2");
names = fobjR->GetTableNames("MyDBlock", num);
for (int i=0; i<num; i++)
   cout<<names[i]<<endl;
PURPOSE

GetTableNames Gets all table names for specified blockName.

RECEIVES

*blockName Name of datablock

RETURN VALUE

Returns pointer to list of strings which represents a list of table names and number of tables.

REMARKS

See also: GetBlockNames



Olivera Tosic
6/12/2002

 

© RCSB PDB