41 #ifdef TARGET_WINDOWS_STORE 50 std::string str_value;
56 unsigned short ushort_value;
58 unsigned int uint_value;
82 fType get_fType()
const {
return field_type; }
83 bool get_isNull()
const {
return is_null; }
84 std::string get_asString()
const;
85 bool get_asBool()
const;
86 char get_asChar()
const;
87 short get_asShort()
const;
88 unsigned short get_asUShort()
const;
89 int get_asInt()
const;
90 unsigned int get_asUInt()
const;
91 float get_asFloat()
const;
92 double get_asDouble()
const;
93 int64_t get_asInt64()
const;
148 friend std::ostream& operator<<(std::ostream& os,
const field_value& fv)
150 switch (fv.get_fType())
154 return os << fv.get_asString();
159 return os << fv.get_asBool();
164 return os << fv.get_asChar();
169 return os << fv.get_asShort();
174 return os << fv.get_asUShort();
179 return os << fv.get_asInt();
184 return os << fv.get_asUInt();
189 return os << fv.get_asFloat();
194 return os << fv.get_asDouble();
199 return os << fv.get_asInt64();
210 void set_isNull() { is_null =
true; }
211 void set_asString(
const char* s);
212 void set_asString(
const std::string& s);
213 void set_asBool(
const bool b);
214 void set_asChar(
const char c);
215 void set_asShort(
const short s);
216 void set_asUShort(
const unsigned short us);
217 void set_asInt(
const int l);
218 void set_asUInt(
const unsigned int l);
219 void set_asFloat(
const float f);
220 void set_asDouble(
const double d);
221 void set_asInt64(
const int64_t i);
223 fType get_field_type();
238 typedef std::vector<field> Fields;
239 typedef std::vector<field_value> sql_record;
240 typedef std::vector<field_prop> record_prop;
241 typedef std::vector<sql_record*> query_data;
251 for (
unsigned int i = 0; i < records.size(); i++)
255 record_header.clear();
258 record_prop record_header;
262 #ifdef TARGET_WINDOWS_STORE Definition: qry_dat.h:232
Definition: Database.h:11
Definition: qry_dat.h:244
Definition: qry_dat.h:227