stencet
v0.1.16
Build C++ web server modules that allow easy routing and deployment.
|
Public Member Functions | |
virtual Variant * | at (const std::string &name) |
virtual Variant * | at (size_t) |
Variant & | operator[] (const std::string &name) |
Variant & | operator[] (size_t) |
template<typename T > | |
Variant & | append (const T &) |
virtual bool | hasValue (const std::string &name) |
virtual Type | getType () const |
virtual int | asInt () const |
virtual void | asString (std::string &str) const |
virtual size_t | size () const override |
template<typename T > | |
Variant & | operator= (const std::initializer_list< T > &) |
template<typename T > | |
Variant & | operator= (const T &) |
Public Member Functions inherited from stencet::ViewModel | |
virtual bool | isConvertible (Type t) const |
virtual double | asDouble () const |
virtual bool | asBool () const |
Static Public Member Functions | |
template<typename T > | |
static Variant * | Create (const T &t) |
Additional Inherited Members | |
Public Types inherited from stencet::ViewModel | |
enum | Type { Null = -1, Object = 0, List = 1, String = 2, Double = 3, Int = 4, Bool = 5 } |
Public Attributes inherited from stencet::ViewModel | |
bool | managed = true |