33 #include <boost/variant.hpp>
37 #include <warehouse_ros_sqlite/warehouse_ros_sqlite_export.h>
44 using Variant = boost::variant<std::string, double, int>;
45 void append(
const std::string& name,
const std::string& val)
override;
46 void append(
const std::string& name,
const double val)
override;
47 void append(
const std::string& name,
const int val)
override;
48 void append(
const std::string& name,
const bool val)
override;
49 void appendLT(
const std::string& name,
const double val)
override;
50 void appendLT(
const std::string& name,
const int val)
override;
51 void appendLTE(
const std::string& name,
const double val)
override;
52 void appendLTE(
const std::string& name,
const int val)
override;
53 void appendGT(
const std::string& name,
const double val)
override;
54 void appendGT(
const std::string& name,
const int val)
override;
55 void appendGTE(
const std::string& name,
const double val)
override;
56 void appendGTE(
const std::string& name,
const int val)
override;
57 void appendRange(
const std::string& name,
const double lower,
const double upper)
override;
58 void appendRange(
const std::string& name,
const int lower,
const int upper)
override;
59 void appendRangeInclusive(
const std::string& name,
const double lower,
const double upper)
override;
60 void appendRangeInclusive(
const std::string& name,
const int lower,
const int upper)
override;
62 sqlite3_stmt_ptr prepare(sqlite3* db_conn,
const std::string& intro,
const std::string& outro =
"",
63 int bind_start_col = 1)
const;
66 return values_.empty();
71 void doappend(
const std::string& name,
const char* op, T val)
75 values_.emplace_back(val);