28 using std::ostringstream;
    45   DbProfile::DbProfile(
PvlContainer &pvl) : _name(
"Profile"), _keys() {
    75                        const QString &name) : _name(prof1.Name()),
    77     for(
int nk = 0 ; nk < prof2.
_keys.
size() ; nk++) {
   166       mess << 
"Error fetching value from key " << 
key;
   168         mess << 
" (index=" << nth << 
")";
   206   void DbProfile::printOn(std::ostream &o)
 const {
   211     DbProfileKeyList::CollectorConstIter keys;
   212     for(keys = begin() ; keys != end() ; ++keys) {
   213       const DbProfileKey &pk = keys->second;
   214       okeys.
add(pk._index, &pk.key);
   218     PvlGroup propGroup(_group);
   219     OrderedKeys::CollectorConstIter okItr;
   220     for(okItr = okeys.begin() ; okItr != okeys.end() ; ++okItr) {
   221       propGroup.addKeyword(*(okItr->second));
   224     o << propGroup << std::endl;
 QString operator()(const QString &key, int nth=0) const
Returns the specified value for the given keyword. 
 
PvlKeywordIterator end()
Return the ending iterator. 
 
T & get(const K &key)
Returns the value associated with the name provided. 
 
Contains more than one keyword-value pair. 
 
int count(const QString &key) const
Report number of values in keyword. 
 
T & getNth(int nth)
Returns the nth value in the collection. 
 
void remove(const QString &key)
Removes a keyword from the profile. 
 
PvlKeywordIterator begin()
Return the beginning iterator. 
 
int remove(const K &key)
Removes and entry from the list. 
 
int size() const
Returns the size of the collection. 
 
This error is for when a programmer made an API call that was illegal. 
 
QString _name
Name of this profile. 
 
A DbProfile is a container for access parameters to a database. 
 
void replace(const QString &key, const QString &value="")
Adds a keyword and value pair to the profile. 
 
const K & key(int nth) const
Returns the nth key in the collection. 
 
int size() const
Returns the number of values stored in this keyword. 
 
KeyList _keys
List of keys in profile. 
 
bool exists(const K &key) const
Checks the existance of a particular key in the list. 
 
void add(const QString &key, const QString &value="")
Adds a keyword and value pair to the profile. 
 
#define _FILEINFO_
Macro for the filename and line number. 
 
QString value(const QString &key, int nth=0) const
Returns the specified value for the given keyword. 
 
void add(const K &key, const T &value)
Adds the element to the list. 
 
A single keyword-value pair. 
 
Collector/container for arbitrary items. 
 
Namespace for ISIS/Bullet specific routines. 
 
void loadkeys(PvlContainer &pvl)
Loads DbProfile keys from the given Pvl construct. 
 
QString key(int nth) const
Returns the nth key in the profile. 
 
void addValue(QString value, QString unit="")
Adds a value with units. 
 
QList< PvlKeyword >::iterator PvlKeywordIterator
The keyword iterator.