next up previous contents
Next: TPhKeyPtr's Up: Database access Previous: Keys, KeyPtr's and the   Contents

Creating TPhDbKeys

There are two ways to obtain a key. One is directly, through a class's constructor. See for example the constructor of TPhCalKey or TPhRunKey. This requires you to know, exactly, all the information that the Oracle tables are keyed on.

The second way is to use a key class's Select function. This function is designed to return ``the best'' key3 satisfying some specification. See for example TPhCalKey::Select. This would be used in the following way:


	TPhCalKey::Select("SIPED",2121,"PHAT5");
where this will return you the ``best'' (most recent) calibration key which is a silicon pedestal set, for method PHAT5 (the currently used one) and also valid for run 2121.



Gunther Roland
2000-05-05