41 #ifdef TARGET_WINDOWS_STORE 50 std::string str_value;
56 unsigned short ushort_value;
58 unsigned int uint_value;
84 fType get_fType()
const {
return field_type; }
85 bool get_isNull()
const {
return is_null; }
86 std::string get_asString()
const&;
87 std::string get_asString() &&;
88 bool get_asBool()
const;
89 char get_asChar()
const;
90 short get_asShort()
const;
91 unsigned short get_asUShort()
const;
92 int get_asInt()
const;
93 unsigned int get_asUInt()
const;
94 float get_asFloat()
const;
95 double get_asDouble()
const;
96 int64_t get_asInt64()
const;
110 set_asString(std::move(s));
157 friend std::ostream& operator<<(std::ostream& os,
const field_value& fv)
159 switch (fv.get_fType())
163 return os << fv.get_asString();
168 return os << fv.get_asBool();
173 return os << fv.get_asChar();
178 return os << fv.get_asShort();
183 return os << fv.get_asUShort();
188 return os << fv.get_asInt();
193 return os << fv.get_asUInt();
198 return os << fv.get_asFloat();
203 return os << fv.get_asDouble();
208 return os << fv.get_asInt64();
219 void set_isNull() { is_null =
true; }
220 void set_asString(
const char* s);
221 void set_asString(
const char* s, std::size_t len);
222 void set_asString(
const std::string& s);
223 void set_asString(std::string&& s);
224 void set_asBool(
const bool b);
225 void set_asChar(
const char c);
226 void set_asShort(
const short s);
227 void set_asUShort(
const unsigned short us);
228 void set_asInt(
const int l);
229 void set_asUInt(
const unsigned int l);
230 void set_asFloat(
const float f);
231 void set_asDouble(
const double d);
232 void set_asInt64(
const int64_t i);
234 fType get_field_type();
249 typedef std::vector<field> Fields;
250 typedef std::vector<field_value> sql_record;
251 typedef std::vector<field_prop> record_prop;
252 typedef std::vector<sql_record*> query_data;
262 for (
unsigned int i = 0; i < records.size(); i++)
266 record_header.clear();
269 record_prop record_header;
273 #ifdef TARGET_WINDOWS_STORE Definition: qry_dat.h:243
Definition: Database.h:11
Definition: qry_dat.h:255
Definition: qry_dat.h:238