+
#include <creaImageIOGimmick.h>
#include <creaImageIOSystem.h>
# define PATH_MAX 2048
#endif
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
namespace creaImageIO
{
//==============================================================
Gimmick::Gimmick()
: mImageAdder(0)
{
- RegisterGimmickMessageTypes();
+ RegisterGimmickMessageTypes();
mSettings=0;
mSynchronizer=0;
}
}
}
- ////////////////////////////////////////////////////////////////////////
- // create a DB from a attributes descriptor file for medical images //
- // @param i_name : DB name //
- // @param i_locDesc : location of descriptor file //
- // @param i_locDB : location of DB //
- // return : the SQLiteTreeHandler object on DB //
- //////////////////////////////////////////////////////////////////
- SQLiteTreeHandler *Gimmick::createDB(const std::string &i_name,
- const std::string &i_locDesc,
- const std::string &i_locDB)
+ ///////////////////////////////////////////////////////////////////////////
+ // create a DB from a attributes descriptor file for medical images //
+ // @param i_name : DB name //
+ // @param i_locDesc : location of descriptor file //
+ // @param i_locDB : location of DB //
+ // return : the SQLiteTreeHandler object on DB //
+ /////////////////////////////////////////////////////////////////////////
+ SQLiteTreeHandler* Gimmick::createDB(const std::string &i_name,
+ const std::string &i_locDesc,
+ const std::string &i_locDB)
{
- SQLiteTreeHandler *sqlTreeH = new SQLiteTreeHandler(i_locDB);
+ SQLiteTreeHandler* sqlTreeH( new SQLiteTreeHandler(i_locDB) );
// Create or open local database
if (! boost::filesystem::exists(i_locDB) )
{