28 using std::ostringstream;
60 DbAccess::DbAccess(
const QString &dbaccFile,
61 const QString &defProfileName) :
DbProfile(
"Database"),
62 _defProfileName(defProfileName), _profiles() {
76 DbAccess::DbAccess(
PvlObject &pvl,
const QString &defProfileName) :
77 DbProfile(
"Database"), _defProfileName(defProfileName),
107 QString defName(name);
108 if(defName.isEmpty()) {
207 else if(
exists(
"DefaultProfile")) {
208 return (
value(
"DefaultProfile"));
void load(const QString &filename)
Loads a Database access configuration file.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
T & get(const K &key)
Returns the value associated with the name provided.
T & getNth(int nth)
Returns the nth value in the collection.
PvlGroupIterator endGroup()
Returns the ending group index.
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
bool exists(const QString &key) const
Checks for the existance of a keyword.
A DbProfile is a container for access parameters to a database.
const DbProfile getProfile(const QString &name="") const
Retrieves the specified access profile.
bool exists(const K &key) const
Checks the existance of a particular key in the list.
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.
QString _defProfileName
Name of default profile.
Container for cube-like labels.
QList< Isis::PvlGroup >::iterator PvlGroupIterator
The counter for groups.
Namespace for ISIS/Bullet specific routines.
QString getDefaultProfileName() const
Determine the name of the default profile.
QString Name() const
Returns the name of this property.
void loadkeys(PvlContainer &pvl)
Loads DbProfile keys from the given Pvl construct.
Contains Pvl Groups and Pvl Objects.
ProfileList _profiles
List of profiles.
PvlGroupIterator beginGroup()
Returns the beginning group index.