#include <creaImageIOSQLiteTreeHandler.h>
#include <creaImageIOTreeHandlerImageAdder.h>
-#include <creaImageIOTimestampDatabaseHandler.h>
#include <creaImageIOSynchron.h>
#include <creaImageIOSettings.h>
///
const AddProgress& GetAddProgress() const { return mImageAdder.GetProgress(); }
- /// Initialize (read/creates databases, etc.)
+ /// Initializes with default values (read/creates databases, etc.)
void Initialize();
+
+ /// Initializes with the local database descriptor in the path given (read/creates databases, etc.)
+ void Initialize(const std::string& path);
/// Finalize (closes databases, etc.)
void Finalize();
const std::string &i_locDesc,
const std::string &i_locDB);
- // add an existent DB
+ /// add an existent DB
void addDB(const std::string &i_nameDB, const std::string &i_locationDB);
/// Returns the TreeHandler with a given name
TreeHandler* GetTreeHandler(const std::string& name) const;
- /// Returns the TimestampDatabase
- TimestampDatabaseHandler* GetTimestampDatabase() const;
- ///
+ ///
SQLiteTreeHandler* GetLocalDatabase() { return mLocalDatabase; }
const SQLiteTreeHandler* GetLocalDatabase() const
///Edits the field described by the name and key provided with the value given
void EditField(tree::Node* node, const std::string& d, const std::string& name, const std::string& key, const std::string& val);
+ /// Returns the attributes in results described in params
+ void GetAttributes(const std::string& d,
+ const std::string& filename,
+ const std::vector<std::string>& params,
+ std::vector<std::string>& results);
+
///
const std::string& GetHomeDirectory();
const std::string& GetUserSettingsDirectory();
- int GetBinaryDirectory(char *pname, size_t pathsize);
void CreateUserSettingsDirectory();
const std::string& GetLocalDatabasePath();
- const std::string& GetTimestampDatabasePath();
+
//=============================================
private:
SQLiteTreeHandler* mLocalDatabase;
- TimestampDatabaseHandler* mTimestampDatabase;
- TreeHandlerMapType mTreeHandlerMap;
+ TreeHandlerMapType mTreeHandlerMap;
Synchronizer* mSynchronizer;
std::string mCurrentDirectory;
std::string mHomeDirectory;
std::string mUserSettingsDirectory;
std::string mLocalDatabasePath;
- std::string mTimestampDatabasePath;
Settings *mSettings;
TreeHandlerImageAdder mImageAdder;
};