Library: Remoting/JSON
Package: JSValue
Header: Poco/Remoting/JSON/JSValue.h
This class represents a generic JavaScript object.
Subclasses implement scalar values, arrays and objects.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Known Derived Classes: JSArray, JSScalar, JSObject
Member Functions: asBool, asDouble, asInt32, asInt64, asUInt32, asUInt64, has, operator [], size, stringValue, type
Inherited Functions: duplicate, referenceCount, release
typedef Poco::AutoPtr < JSValue > Ptr;
bool asBool() const;
Returns the object's value as boolean.
double asDouble() const;
Returns the object's value as double.
Poco::Int32 asInt32() const;
Returns the object's value as Int32.
Poco::Int64 asInt64() const;
Returns the object's value as Int64.
Poco::UInt32 asUInt32() const;
Returns the object's value as UInt32.
Poco::UInt64 asUInt64() const;
Returns the object's value as UInt64.
virtual bool has(
const std::string & name
) const;
virtual const Ptr & operator[] (
const std::string & name
) const;
virtual Ptr & operator[] (
const std::string & name
);
virtual const Ptr & operator[] (
std::size_t index
) const;
virtual Ptr & operator[] (
std::size_t index
);
virtual std::size_t size() const;
Returns the size of the object.
virtual const std::string & stringValue() const;
Returns the object's value as string.
virtual Type type() const = 0;
Returns the type of the object.