CYCLUS
Classes | Namespaces | Macros | Functions | Variables
sqlite_back.cc File Reference
#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.

Classes

struct  cyclus::compare
 

Namespaces

 cyclus
 

Macros

#define CYCLUS_BINDVAL(D, T)
 
#define CYCLUS_COMMA   ,
 
#define CYCLUS_COMMA   ,
 
#define CYCLUS_LOADVAL(D, T)
 

Functions

std::vector< std::string > cyclus::split (const std::string &s, char delim)
 

Variables

static std::map< const std::type_info *, DbTypes, compare > cyclus::type_map
 

Macro Definition Documentation

#define CYCLUS_BINDVAL (   D,
 
)
Value:
case D: { \
T vect = v.cast<T>(); \
std::stringstream ss; \
boost::archive::xml_oarchive ar(ss); \
ar & BOOST_SERIALIZATION_NVP(vect); \
std::string s = ss.str(); \
stmt->BindBlob(index, s.c_str(), s.size()); \
break; \
}
#define CYCLUS_COMMA   ,
#define CYCLUS_COMMA   ,
#define CYCLUS_LOADVAL (   D,
 
)
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; \
}