116 const QString &defProfileName =
"");
128 return (_profiles.size());
139 return (_profiles.exists(profile));
156 _profiles.add(profile.
Name(), profile);
159 void load(
const QString &filename);
165 QString _defProfileName;
166 ProfileList _profiles;
Collector/container for arbitrary items.
Definition CollectorMap.h:419
DbAccess()
Definition DbAccess.h:114
const DbProfile getProfile(const QString &name="") const
Retrieves the specified access profile.
Definition DbAccess.cpp:92
void addProfile(const DbProfile &profile)
Adds a profile to the database profile.
Definition DbAccess.h:155
int profileCount() const
Reports the number of user profiles to access this database.
Definition DbAccess.h:127
bool profileExists(const QString &profile) const
Checks existance of a database user profile.
Definition DbAccess.h:138
QString getDefaultProfileName() const
Determine the name of the default profile.
Definition DbAccess.cpp:189
virtual ~DbAccess()
Destructor ensures everything is cleaned up properly.
Definition DbAccess.h:120
void load(const QString &filename)
Loads a Database access configuration file.
Definition DbAccess.cpp:142
A DbProfile is a container for access parameters to a database.
Definition DbProfile.h:51
DbProfile()
Definition DbProfile.h:59
QString Name() const
Returns the name of this property.
Definition DbProfile.h:104
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16