Skip to content

Commit

Permalink
working on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuller committed Dec 18, 2007
1 parent 19b942f commit 1a0198b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 3 additions & 4 deletions stactiverecord/query.h
Expand Up @@ -58,19 +58,19 @@ namespace stactiverecord {

/** Create query object
* @param _key The key being queried
* @param _value The exact value to match for the given key.
* @param _ivalue The exact value to match for the given key.
*/
Q(std::string _key, int _ivalue) : key(_key), ivalue(_ivalue) { ct = INTEGER; where = equals(_ivalue); };

/** Create query object
* @param _key The key being queried
* @param _value The exact value to match for the given key.
* @param _dtvalue The exact value to match for the given key.
*/
Q(std::string _key, DateTime _dtvalue) : key(_key), dtvalue(_dtvalue) { ct = DATETIME; where = equals(_dtvalue); };

/** Create query object.
* @param _key The key being queried
* @param _value The exact value to match for the given key.
* @param _bvalue The exact value to match for the given key.
*/
Q(std::string _key, bool _bvalue) : key(_key) {
ivalue = (_bvalue) ? 1 : 0;
Expand All @@ -89,7 +89,6 @@ namespace stactiverecord {

/** using the db, find all records that match
* @param classname The classname to test
* @param db The Sar_Dbi object - it can be directly queried
*/
SarVector<int> test(std::string classname);

Expand Down
5 changes: 5 additions & 0 deletions stactiverecord/record.h
Expand Up @@ -26,6 +26,11 @@ Created by bmuller <bmuller@butterfat.net>
*/

namespace stactiverecord {
/**
All objects should extend Record. See the simple example in the
examples folder to get started.
**/

template <class Klass>
class Record : public CUDPropertyRegister {
private:
Expand Down
4 changes: 2 additions & 2 deletions stactiverecord/storage/sar_dbi.cpp
Expand Up @@ -25,8 +25,8 @@ namespace stactiverecord {
throw Sar_InvalidConfigurationException("DB type of \"" + configparts[0] + "\" not recognized.");
};

/** parse scheme://[user[:password]@host[:port]/]database into a hashmap that can contain the following
keys: user, password, host, port, database
/** @param config The db configuration - "scheme://[user[:password]@host[:port]/]database"
\returns A hashmap that can contain the following keys: user, password, host, port, database
*/
SarMap<std::string> Sar_Dbi::parseconfig(std::string config) {
SarMap<std::string> result;
Expand Down

0 comments on commit 1a0198b

Please sign in to comment.