#include "sqlite_back.h"
#include <iomanip>
#include <sstream>
#include <boost/lexical_cast.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/archive/tmpdir.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/utility.hpp>
#include <boost/serialization/list.hpp>
#include <boost/serialization/set.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/map.hpp>
#include <boost/serialization/assume_abstract.hpp>
#include "blob.h"
#include "datum.h"
#include "error.h"
#include "logger.h"
Go to the source code of this file.
◆ CYCLUS_BINDVAL
#define CYCLUS_BINDVAL |
( |
| D, |
|
|
| T ) |
Value: case D: { \
T vect = v.cast<T>(); \
std::stringstream ss; \
{ \
boost::archive::xml_oarchive ar(ss); \
ar & BOOST_SERIALIZATION_NVP(vect); \
} \
v = vect; \
std::string s = ss.str(); \
stmt->BindBlob(index, s.c_str(), s.size()); \
break; \
}
◆ CYCLUS_COMMA [1/2]
◆ CYCLUS_COMMA [2/2]
◆ CYCLUS_LOADVAL
#define CYCLUS_LOADVAL |
( |
| D, |
|
|
| T ) |
Value: case D: { \
char* data = stmt->GetText(col, NULL); \
std::stringstream ss; \
ss << data; \
boost::archive::xml_iarchive ar(ss); \
T vect; \
ar & BOOST_SERIALIZATION_NVP(vect); \
v = vect; \
break; \
}