creaImageIO_lib
creaImageIOTimestampDatabaseHandler.cpp File Reference
#include <creaImageIOTimestampDatabaseHandler.h>
#include <creaImageIOSystem.h>
#include "CppSQLite3.h"
#include <sys/stat.h>
#include <deque>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string/replace.hpp>
Include dependency graph for creaImageIOTimestampDatabaseHandler.cpp:

Go to the source code of this file.

Namespaces

namespace  creaImageIO
 

Macros

#define QUERYTIMESTAMPDB(QUER, RES)
 
#define UPDATETIMESTAMPDB(UP)
 

Macro Definition Documentation

#define QUERYTIMESTAMPDB (   QUER,
  RES 
)
Value:
try \
{ \
GimmickMessage(2,"SQL query: '"<<QUER<<"'"<<std::endl); \
RES = mDB->execQuery(QUER.c_str()); \
} \
catch (CppSQLite3Exception& e) \
{ \
GimmickError("SQLite query '"<<QUER<<"' : " \
<< e.errorCode() << ":" \
<< e.errorMessage() ); \
} \

Definition at line 93 of file creaImageIOTimestampDatabaseHandler.cpp.

Referenced by creaImageIO::TimestampDatabaseHandler::CheckTimestamp(), creaImageIO::TimestampDatabaseHandler::IsIndexed(), and creaImageIO::TimestampDatabaseHandler::RemoveFile().

#define UPDATETIMESTAMPDB (   UP)
Value:
try \
{ \
GimmickMessage(2,"SQL update: '"<<UP<<"'"<<std::endl); \
mDB->execDML(UP.c_str()); \
} \
catch (CppSQLite3Exception& e) \
{ \
GimmickError("SQLite update '"<<UP<<"' Error : " \
<< e.errorCode() << ":" \
<< e.errorMessage() ); \
}

Definition at line 106 of file creaImageIOTimestampDatabaseHandler.cpp.

Referenced by creaImageIO::TimestampDatabaseHandler::AddFile(), creaImageIO::TimestampDatabaseHandler::DBCreate(), creaImageIO::TimestampDatabaseHandler::DBRemove(), creaImageIO::TimestampDatabaseHandler::RemoveEntries(), and creaImageIO::TimestampDatabaseHandler::SetAttribute().