Poco::RemotingNG::REST

class JSScalar

Library: RemotingNG/REST
Package: JSValue
Header: Poco/RemotingNG/REST/JSScalar.h

Description

This class represents a scalar JSON value.

Internal storage is always as std::string.

Inheritance

Direct Base Classes: JSValue

All Base Classes: Poco::RefCountedObject, JSValue

Member Summary

Member Functions: stringValue, type

Inherited Functions: asBool, asDouble, asInt32, asInt64, asUInt32, asUInt64, duplicate, has, operator [], referenceCount, release, size, stringValue, type

Constructors

JSScalar

JSScalar(
    Type type = JS_STRING
);

Creates an empty JSScalar with the given type.

JSScalar

JSScalar(
    const std::string & value,
    Type type = JS_STRING
);

Creates a JSScalar with the given value and type.

Destructor

~JSScalar protected virtual

~JSScalar();

Destroys the JSScalar.

Member Functions

stringValue virtual

const std::string & stringValue() const;

type virtual

Type type() const;