55      typedef CollectorMap<IString, PvlKeyword, NoCaseStringCompare> 
KeyList;
 
   60      DbProfile(
const QString &name) : _name(name), _keys() { }
 
   62                const QString &name = 
"");
 
   87        return (_keys.
size());
 
 
  120      void add(
const QString &
key, 
const QString &
value = 
"");
 
  123      int  count(
const QString &
key) 
const;
 
  141      QString 
key(
int nth)
 const {
 
  142        return (_keys.
key(nth).ToQt());
 
 
  144      QString 
value(
const QString &
key, 
int nth = 0) 
const;
 
 
const K & key(int nth) const
Returns the nth key in the collection.
Definition CollectorMap.h:673
 
int size() const
Returns the size of the collection.
Definition CollectorMap.h:512
 
bool exists(const K &key) const
Checks the existance of a particular key in the list.
Definition CollectorMap.h:551
 
A DbProfile is a container for access parameters to a database.
Definition DbProfile.h:51
 
virtual ~DbProfile()
Destructor ensures everything is cleaned up properly.
Definition DbProfile.h:67
 
void add(const QString &key, const QString &value="")
Adds a keyword and value pair to the profile.
Definition DbProfile.cpp:82
 
DbProfile()
Definition DbProfile.h:59
 
const KeyList & getKeyList() const
Returns a reference to the key list.
Definition DbProfile.h:159
 
CollectorMap< IString, PvlKeyword, NoCaseStringCompare > KeyList
Definition DbProfile.h:55
 
int size() const
Reports the number of keywords in this user profile.
Definition DbProfile.h:86
 
void setName(const QString &name)
Set the name of this profile.
Definition DbProfile.h:95
 
QString value(const QString &key, int nth=0) const
Returns the specified value for the given keyword.
Definition DbProfile.cpp:146
 
bool isValid() const
Reports if this is a valid profile.
Definition DbProfile.h:77
 
QString operator()(const QString &key, int nth=0) const
Returns the specified value for the given keyword.
Definition DbProfile.cpp:172
 
DbProfile(const QString &name)
Definition DbProfile.h:60
 
void remove(const QString &key)
Removes a keyword from the profile.
Definition DbProfile.cpp:113
 
bool exists(const QString &key) const
Checks for the existance of a keyword.
Definition DbProfile.h:115
 
QString Name() const
Returns the name of this property.
Definition DbProfile.h:104
 
void loadkeys(PvlContainer &pvl)
Loads DbProfile keys from the given Pvl construct.
Definition DbProfile.cpp:184
 
QString key(int nth) const
Returns the nth key in the profile.
Definition DbProfile.h:141
 
void replace(const QString &key, const QString &value="")
Adds a keyword and value pair to the profile.
Definition DbProfile.cpp:103
 
int count(const QString &key) const
Report number of values in keyword.
Definition DbProfile.cpp:127
 
Contains more than one keyword-value pair.
Definition PvlContainer.h:49
 
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16