CYCLUS
Loading...
Searching...
No Matches
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

namespace  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, comparecyclus::type_map
 

Macro Definition Documentation

◆ 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]

#define CYCLUS_COMMA   ,

◆ CYCLUS_COMMA [2/2]

#define CYCLUS_COMMA   ,

◆ 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; \
}