Crow  0.3
A C++ microframework for the web
crow::json::wvalue Class Reference

JSON write value. More...

#include <json.h>

Inheritance diagram for crow::json::wvalue:
crow::returnable

Public Member Functions

type t () const
 
 wvalue (std::vector< wvalue > &r)
 
 wvalue (const rvalue &r)
 Create a write value from a read value (useful for editing JSON strings).
 
 wvalue (const wvalue &r)
 
 wvalue (wvalue &&r)
 
wvalueoperator= (wvalue &&r)
 
void clear ()
 Used for compatibility, same as reset()
 
void reset ()
 
wvalueoperator= (std::nullptr_t)
 
wvalueoperator= (bool value)
 
wvalueoperator= (double value)
 
wvalueoperator= (unsigned short value)
 
wvalueoperator= (short value)
 
wvalueoperator= (long long value)
 
wvalueoperator= (long value)
 
wvalueoperator= (int value)
 
wvalueoperator= (unsigned long long value)
 
wvalueoperator= (unsigned long value)
 
wvalueoperator= (unsigned int value)
 
wvalueoperator= (const char *str)
 
wvalueoperator= (const std::string &str)
 
wvalueoperator= (std::vector< wvalue > &&v)
 
template<typename T >
wvalueoperator= (const std::vector< T > &v)
 
wvalueoperator[] (unsigned index)
 
int count (const std::string &str)
 
wvalueoperator[] (const std::string &str)
 
std::vector< std::string > keys () const
 
std::size_t size () const
 If the wvalue is a list, it returns the length of the list, otherwise it returns 1.
 
size_t estimate_length () const
 Returns an estimated size of the value in bytes.
 
std::string dump () const
 
- Public Member Functions inherited from crow::returnable
 returnable (std::string ctype)
 

Friends

class crow::mustache::template_t
 

Additional Inherited Members

- Public Attributes inherited from crow::returnable
std::string content_type
 

Detailed Description

JSON write value.

Value can mean any json value, including a JSON object. Write means this class is used to primarily assemble JSON objects using keys and values and export those into a string.


The documentation for this class was generated from the following file: