Awesomium::JSValue Class Reference

#include <JSValue.h>

List of all members.

Public Types

typedef std::map< std::wstring,
JSValue
Object
typedef std::vector< JSValueArray

Public Member Functions

 JSValue ()
 Creates a null JSValue.
 JSValue (bool value)
 Creates a JSValue initialized with a boolean.
 JSValue (int value)
 Creates a JSValue initialized with an integer.
 JSValue (double value)
 Creates a JSValue initialized with a double.
 JSValue (const char *value)
 Creates a JSValue initialized with an ASCII string.
 JSValue (const std::string &value)
 Creates a JSValue initialized with an ASCII string.
 JSValue (const wchar_t *value)
 Creates a JSValue initialized with a wide string.
 JSValue (const std::wstring &value)
 Creates a JSValue initialized with a wide string.
 JSValue (const Object &value)
 Creates a JSValue initialized with an object.
 JSValue (const Array &value)
 Creates a JSValue initialized with an array.
 JSValue (const JSValue &original)
JSValueoperator= (const JSValue &rhs)
bool isBoolean () const
 Returns whether or not this JSValue is a boolean.
bool isInteger () const
 Returns whether or not this JSValue is an integer.
bool isDouble () const
 Returns whether or not this JSValue is a double.
bool isNumber () const
 Returns whether or not this JSValue is a number (integer or double).
bool isString () const
 Returns whether or not this JSValue is a string.
bool isArray () const
 Returns whether or not this JSValue is an array.
bool isObject () const
 Returns whether or not this JSValue is an object.
bool isNull () const
 Returns whether or not this JSValue is null.
const std::wstring & toString () const
 Returns this JSValue as a wide string (converting if necessary).
int toInteger () const
 Returns this JSValue as an integer (converting if necessary).
double toDouble () const
 Returns this JSValue as a double (converting if necessary).
bool toBoolean () const
 Returns this JSValue as a boolean (converting if necessary).
Array & getArray ()
 Gets a reference to this JSValue's array value (will assert if not an array type).
const Array & getArray () const
 Gets a constant reference to this JSValue's array value (will assert if not an array type).
Object & getObject ()
 Gets a reference to this JSValue's object value (will assert if not an object type).
const Object & getObject () const
 Gets a constant reference to this JSValue's object value (will assert if not an object type).


Detailed Description

JSValue is a class that represents a Javascript value. It can be initialized from and converted to several types: boolean, integer, double, string
The documentation for this class was generated from the following files:

Generated on Wed Sep 23 14:27:48 2009 for Awesomium by  doxygen 1.5.8