1#line 2 "src/Dbo/Slots.cpp"
3#include <Wt/Json/Parser.h>
4#include <Wt/Json/Object.h>
5#include <Wt/Json/Serializer.h>
42 for(
auto & result : resultList )
43 retVal.push_back( result );
52get(
const std::string & _guid,
const std::string & _name )
103 catch( std::exception & e )
105 std::cout << __FILE__ <<
":" << __LINE__ <<
" id:" << this->
id() <<
" " << e.what() << std::endl;
118getVarInt(
const std::string & _field )
const
128 catch( std::exception & e )
130 std::cout << __FILE__ <<
":" << __LINE__ <<
" id:" << this->
id() <<
" " << e.what() << std::endl;
143setVar(
const std::string & _field,
const char * _value )
145 setVar( _field, std::string( _value ) );
153 setVar( _field, _value.
toUTF8() );
159setVar(
const std::string & _field,
const std::string & _value )
174 catch( std::exception & e )
176 std::cout << __FILE__ <<
":" << __LINE__ <<
" id:" << this->
id() <<
" " << e.what() << std::endl;
187setVar(
const std::string & _field,
int _value )
201 catch( std::exception & e )
203 std::cout << __FILE__ <<
":" << __LINE__ <<
" id:" << this->
id() <<
" " << e.what() << std::endl;
206 jobj[_field] = _value;
std::vector< Ptr > Vector
int getVarInt(const std::string &_field) const
void setVar(const std::string &_field, const char *_value)
const std::string & varField() const
std::string getVarString(const std::string &_field) const
dbo_traits< C >::IdType id() const
const Value & get(const std::string &name) const
const WString & orIfNull(const WString &v) const
std::string toUTF8() const
WString & arg(const std::wstring &value)
void parse(const std::string &input, Value &result, bool validateUTF8=true)
std::string serialize(const Object &obj, int indentation=1)
Wt::WFormModel::Field gdate_val
Wt::WFormModel::Field double_val
Wt::WFormModel::Field obj_guid
Wt::WFormModel::Field int64_val
Wt::WFormModel::Field string_val
Wt::WFormModel::Field timespec_val
Wt::WFormModel::Field numeric_val_num
Wt::WFormModel::Field name
Wt::WFormModel::Field slot_type
Wt::WFormModel::Field guid_val
Wt::WFormModel::Field numeric_val_denom
auto get() -> GCW::Dbo::Slots::Item::Vector
Wt::WFormModel::Field varField