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: Debugging Methods Up: General Methods Previous: Merge

Diff

NAME Diff

PROTOTYPE

#include "ISTable.h"

int ISTable::Diff(ISTable *sst);

EXAMPLE

#include <string.h>
#include <stdlib.h>
#include "ISTable.h"

ISTable * ss1 = new ISTable("MyTable1");
ISTable * ss2 = new ISTable("MyTable2");

... // add some columns and stuff

colName.Add("start_v");
ss1->CreateKey(colName);
ss2->PrintTable();
ss2->CreateKey(colName);
ss1->Diff(ss2);
  ...
}
PURPOSE

Diff prints report about differences between two tables. The tables must have same key.

RECEIVES

sst Pointer to ISTable.

RETURN VALUE

A negative value means that an error has occured, i.e tables have different keys.

REMARKS

None  



Olivera Tosic
6/12/2002

 

© RCSB PDB