14using std::ostringstream;
 
   46  DbAccess::DbAccess(
const QString &dbaccFile,
 
   47                     const QString &defProfileName) : 
DbProfile(
"Database"),
 
   48    _defProfileName(defProfileName), _profiles() {
 
 
   62  DbAccess::DbAccess(
PvlObject &pvl, 
const QString &defProfileName) :
 
   63    DbProfile(
"Database"), _defProfileName(defProfileName),
 
 
   93    QString defName(name);
 
   94    if(defName.isEmpty()) {
 
 
  170    while(group != pvl.endGroup()) {
 
  173      group = pvl.findGroup(
"Profile", ++group, pvl.endGroup());
 
 
  193    else if(
exists(
"DefaultProfile")) {
 
  194      return (
value(
"DefaultProfile"));
 
 
T & get(const K &key)
Returns the value associated with the name provided.
 
bool exists(const K &key) const
Checks the existance of a particular key in the list.
 
void add(const K &key, const T &value)
Adds the element to the list.
 
T & getNth(int nth)
Returns the nth value in the collection.
 
ProfileList _profiles
List of profiles.
 
const DbProfile getProfile(const QString &name="") const
Retrieves the specified access profile.
 
QString _defProfileName
Name of default profile.
 
QString getDefaultProfileName() const
Determine the name of the default profile.
 
void load(const QString &filename)
Loads a Database access configuration file.
 
A DbProfile is a container for access parameters to a database.
 
QString value(const QString &key, int nth=0) const
Returns the specified value for the given keyword.
 
bool exists(const QString &key) const
Checks for the existance of a keyword.
 
void loadkeys(PvlContainer &pvl)
Loads DbProfile keys from the given Pvl construct.
 
Container for cube-like labels.
 
Contains Pvl Groups and Pvl Objects.
 
QList< Isis::PvlGroup >::iterator PvlGroupIterator
The counter for groups.
 
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
 
This is free and unencumbered software released into the public domain.