gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
sqlitebase.hpp File Reference

SQLite printer/reader base class declaration. More...

#include <map>
#include <string>
#include "gambit/Utils/util_functions.hpp"
Include dependency graph for sqlitebase.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Gambit::Printers::SQLiteBase
 SQLite base class for both reader and writer. More...
 

Namespaces

 Gambit
 TODO: see if we can use this one:
 
 Gambit::Printers
 Forward declaration of Printers::BasePrinter class for use in print functions.
 

Macros

#define SQLITE_CPP_TYPES   (llint) (double) (str)
 

Typedefs

typedef int Gambit::Printers::sql_callback_fptr(void *, int, char **, char **)
 
typedef long long int Gambit::Printers::llint
 
typedef std::string Gambit::Printers::str
 

Functions

std::size_t Gambit::Printers::pairfunc (const std::size_t i, const std::size_t j)
 
int Gambit::Printers::col_name_callback (void *colmap_in, int, char **data, char **)
 
template<typename T >
std::string Gambit::Printers::cpp2sql ()
 
template<>
std::string Gambit::Printers::cpp2sql< long long int > ()
 
template<>
std::string Gambit::Printers::cpp2sql< double > ()
 
template<>
std::string Gambit::Printers::cpp2sql< std::string > ()
 
std::map< unsigned int, std::string > Gambit::Printers::define_typecodes ()
 
std::map< std::string, std::string, Utils::ci_less > Gambit::Printers::fill_SQLtype_to_basic ()
 
bool Gambit::Printers::SQLite_equaltypes (const std::string &type1, const std::string &type2)
 
template<typename Iter >
Iter Gambit::Printers::next_el (Iter iter)
 
template<typename Iter , typename Cont >
std::string Gambit::Printers::comma_unless_last (Iter it, const Cont &c)
 

Variables

const std::map< unsigned int, std::string > Gambit::Printers::typecode2sql
 
const std::map< std::string, std::string, Utils::ci_less > Gambit::Printers::SQLtype_to_basic
 

Detailed Description

SQLite printer/reader base class declaration.


Authors (add name and date if you modify):

Author
Ben Farmer (b.far.nosp@m.mer@.nosp@m.imper.nosp@m.ial..nosp@m.ac.uk)
Date
2018 Dec

Definition in file sqlitebase.hpp.

Macro Definition Documentation

◆ SQLITE_CPP_TYPES

#define SQLITE_CPP_TYPES   (llint) (double) (str)

Definition at line 53 of file sqlitebase.hpp.

Referenced by Gambit::Printers::SQLiteReader::get_type().