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

Go to the source code of this file.

Namespaces

namespace  creaImageIO
 

Macros

#define QUERYDB(QUER, RES)
 
#define UPDATEDB(UP)
 

Functions

char * creaImageIO::format_sql (const std::string &s)
 
void creaImageIO::SQLformat (std::string i_str, std::string &o_str)
 

Macro Definition Documentation

#define QUERYDB (   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 226 of file creaImageIOSQLiteTreeHandler.cpp.

Referenced by creaImageIO::SQLiteTreeHandler::DBImportTreeDescription(), creaImageIO::SQLiteTreeHandler::DBLoadChildren(), creaImageIO::SQLiteTreeHandler::DBRecursiveRemoveNode(), creaImageIO::SQLiteTreeHandler::GetAttribute(), creaImageIO::SQLiteTreeHandler::GetAttributes(), creaImageIO::SQLiteTreeHandler::GetNumberOfChildren(), and creaImageIO::SQLiteTreeHandler::GetUpLevelNodeId().

#define UPDATEDB (   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 242 of file creaImageIOSQLiteTreeHandler.cpp.

Referenced by creaImageIO::SQLiteTreeHandler::BeginTransaction(), creaImageIO::SQLiteTreeHandler::DBCreate(), creaImageIO::SQLiteTreeHandler::DBDelete(), creaImageIO::SQLiteTreeHandler::DBInsert(), creaImageIO::SQLiteTreeHandler::DBRecursiveRemoveNode(), creaImageIO::SQLiteTreeHandler::DBSetAttribute(), creaImageIO::SQLiteTreeHandler::EndTransaction(), and creaImageIO::SQLiteTreeHandler::RemoveEntries().