virthttp  0.0
libvirt http interface
Public Member Functions | List of all members
JsonRes Struct Reference

#include <json_utils.hpp>

Inheritance diagram for JsonRes:

Public Member Functions

 JsonRes ()
 
template<typename T >
void result (T &&val)
 
template<typename T >
void message (T &&val)
 
void error (int code)
 

Detailed Description

JSON Response

Constructor & Destructor Documentation

JsonRes::JsonRes ( )
inline

Member Function Documentation

void JsonRes::error ( int  code)
inline

Append an error

Parameters
[in]codevirthttp error code; see ErrorMessages
template<typename T >
void JsonRes::message ( T &&  val)
inline

Append a message

template<typename T >
void JsonRes::result ( T &&  val)
inline

Append a result


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