76 const QString &name =
"");
134 void add(
const QString &
key,
const QString &
value =
"");
136 void remove(
const QString &
key);
137 int count(
const QString &
key)
const;
155 QString
key(
int nth)
const {
158 QString
value(
const QString &
key,
int nth = 0)
const;
const K & key(int nth) const
Returns the nth key in the collection.
bool exists(const K &key) const
Checks the existance of a particular key in the list.
Contains more than one keyword-value pair.
QString operator()(const QString &key, int nth=0) const
Returns the specified value for the given keyword.
QString ToQt() const
Retuns the object string as a QString.
QString Name() const
Returns the name of this property.
QString _name
Name of this profile.
bool isValid() const
Reports if this is a valid profile.
QString value(const QString &key, int nth=0) const
Returns the specified value for the given keyword.
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.
int count(const QString &key) const
Report number of values in keyword.
KeyList _keys
List of keys in profile.
const KeyList & getKeyList() const
Returns a reference to the key list.
void add(const QString &key, const QString &value="")
Adds a keyword and value pair to the profile.
int size() const
Reports the number of keywords in this user profile.
void setName(const QString &name)
Set the name of this profile.
bool exists(const QString &key) const
Checks for the existance of a keyword.
int size() const
Returns the size of the collection.
virtual ~DbProfile()
Destructor ensures everything is cleaned up properly.
void loadkeys(PvlContainer &pvl)
Loads DbProfile keys from the given Pvl construct.
QString key(int nth) const
Returns the nth key in the profile.