RPC method arguments and results are represented by Values.
More...
#include <XmlLocalValue.h>
RPC method arguments and results are represented by Values.
Definition at line 25 of file XmlLocalValue.h.
◆ BinaryData
◆ iterator
◆ ValueArray
◆ ValueStruct
◆ Type
Enumerator |
---|
TypeInvalid | |
TypeBoolean | |
TypeInt | |
TypeDouble | |
TypeString | |
TypeDateTime | |
TypeBase64 | |
TypeArray | |
TypeStruct | |
Definition at line 29 of file XmlLocalValue.h.
◆ XmlRpcValue() [1/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
| ) |
|
|
inline |
◆ XmlRpcValue() [2/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
bool |
value | ) |
|
|
inline |
◆ XmlRpcValue() [3/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
int |
value | ) |
|
|
inline |
◆ XmlRpcValue() [4/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
double |
value | ) |
|
|
inline |
◆ XmlRpcValue() [5/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
std::string const & |
value | ) |
|
|
inline |
◆ XmlRpcValue() [6/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
const char * |
value | ) |
|
|
inline |
◆ XmlRpcValue() [7/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
struct tm * |
value | ) |
|
|
inline |
◆ XmlRpcValue() [8/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
void * |
value, |
|
|
int |
nBytes |
|
) |
| |
|
inline |
◆ XmlRpcValue() [9/10]
XmlLocal::XmlRpcValue::XmlRpcValue |
( |
std::string const & |
xml, |
|
|
int * |
offset |
|
) |
| |
|
inline |
Construct from xml, beginning at *offset chars into the string, updates offset.
Definition at line 76 of file XmlLocalValue.h.
◆ XmlRpcValue() [10/10]
◆ ~XmlRpcValue()
XmlLocal::XmlRpcValue::~XmlRpcValue |
( |
| ) |
|
|
inline |
Destructor (make virtual if you want to subclass)
Definition at line 85 of file XmlLocalValue.h.
◆ arrayFromXml()
bool XmlLocal::XmlRpcValue::arrayFromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
|
protected |
◆ arrayToXml()
std::string XmlLocal::XmlRpcValue::arrayToXml |
( |
| ) |
const |
|
protected |
◆ assertArray() [1/2]
void XmlLocal::XmlRpcValue::assertArray |
( |
int |
size | ) |
|
|
protected |
◆ assertArray() [2/2]
void XmlLocal::XmlRpcValue::assertArray |
( |
int |
size | ) |
const |
|
protected |
◆ assertStruct()
void XmlLocal::XmlRpcValue::assertStruct |
( |
| ) |
|
|
protected |
◆ assertTypeOrInvalid()
void XmlLocal::XmlRpcValue::assertTypeOrInvalid |
( |
Type |
t | ) |
|
|
protected |
◆ begin()
iterator XmlLocal::XmlRpcValue::begin |
( |
| ) |
|
|
inline |
◆ binaryFromXml()
bool XmlLocal::XmlRpcValue::binaryFromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
|
protected |
◆ binaryToXml()
std::string XmlLocal::XmlRpcValue::binaryToXml |
( |
| ) |
const |
|
protected |
◆ boolFromXml()
bool XmlLocal::XmlRpcValue::boolFromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
|
protected |
◆ boolToXml()
std::string XmlLocal::XmlRpcValue::boolToXml |
( |
| ) |
const |
|
protected |
◆ clear()
void XmlLocal::XmlRpcValue::clear |
( |
| ) |
|
|
inline |
◆ doubleFromXml()
bool XmlLocal::XmlRpcValue::doubleFromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
|
protected |
◆ doubleToXml()
std::string XmlLocal::XmlRpcValue::doubleToXml |
( |
| ) |
const |
|
protected |
◆ end()
◆ fromXml()
bool XmlLocal::XmlRpcValue::fromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
Decode xml. Destroys any existing value.
◆ getDoubleFormat()
static std::string const& XmlLocal::XmlRpcValue::getDoubleFormat |
( |
| ) |
|
|
inlinestatic |
Return the format used to write double values.
Definition at line 142 of file XmlLocalValue.h.
◆ getType()
const Type& XmlLocal::XmlRpcValue::getType |
( |
| ) |
const |
|
inline |
◆ hasMember()
bool XmlLocal::XmlRpcValue::hasMember |
( |
const std::string & |
name | ) |
const |
Check for the existence of a struct member by name.
◆ intFromXml()
bool XmlLocal::XmlRpcValue::intFromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
|
protected |
◆ intToXml()
std::string XmlLocal::XmlRpcValue::intToXml |
( |
| ) |
const |
|
protected |
◆ invalidate()
void XmlLocal::XmlRpcValue::invalidate |
( |
| ) |
|
|
protected |
◆ operator BinaryData &()
◆ operator bool &()
XmlLocal::XmlRpcValue::operator bool & |
( |
| ) |
|
|
inline |
◆ operator double &()
XmlLocal::XmlRpcValue::operator double & |
( |
| ) |
|
|
inline |
◆ operator int &()
XmlLocal::XmlRpcValue::operator int & |
( |
| ) |
|
|
inline |
◆ operator std::string &()
XmlLocal::XmlRpcValue::operator std::string & |
( |
| ) |
|
|
inline |
◆ operator struct tm &()
XmlLocal::XmlRpcValue::operator struct tm & |
( |
| ) |
|
|
inline |
◆ operator!=()
◆ operator=() [1/4]
◆ operator=() [2/4]
◆ operator=() [3/4]
◆ operator=() [4/4]
◆ operator==()
◆ operator[]() [1/4]
◆ operator[]() [2/4]
XmlRpcValue& XmlLocal::XmlRpcValue::operator[] |
( |
int |
i | ) |
|
|
inline |
◆ operator[]() [3/4]
◆ operator[]() [4/4]
◆ setDoubleFormat()
static void XmlLocal::XmlRpcValue::setDoubleFormat |
( |
const char * |
f | ) |
|
|
inlinestatic |
Specify the format used to write double values.
Definition at line 145 of file XmlLocalValue.h.
◆ setSize()
void XmlLocal::XmlRpcValue::setSize |
( |
int |
size | ) |
|
|
inline |
Specify the size for array values. Array values will grow beyond this size if needed.
Definition at line 126 of file XmlLocalValue.h.
◆ size()
int XmlLocal::XmlRpcValue::size |
( |
| ) |
const |
Return the size for string, base64, array, and struct values.
◆ stringFromXml()
bool XmlLocal::XmlRpcValue::stringFromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
|
protected |
◆ stringToXml()
std::string XmlLocal::XmlRpcValue::stringToXml |
( |
| ) |
const |
|
protected |
◆ structFromXml()
bool XmlLocal::XmlRpcValue::structFromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
|
protected |
◆ structToXml()
std::string XmlLocal::XmlRpcValue::structToXml |
( |
| ) |
const |
|
protected |
◆ timeFromXml()
bool XmlLocal::XmlRpcValue::timeFromXml |
( |
std::string const & |
valueXml, |
|
|
int * |
offset |
|
) |
| |
|
protected |
◆ timeToXml()
std::string XmlLocal::XmlRpcValue::timeToXml |
( |
| ) |
const |
|
protected |
◆ toXml()
std::string XmlLocal::XmlRpcValue::toXml |
( |
| ) |
const |
◆ valid()
bool XmlLocal::XmlRpcValue::valid |
( |
| ) |
const |
|
inline |
Return true if the value has been set to something.
Definition at line 117 of file XmlLocalValue.h.
◆ write()
std::ostream& XmlLocal::XmlRpcValue::write |
( |
std::ostream & |
os | ) |
const |
Write the value (no xml encoding)
◆ _doubleFormat
std::string XmlLocal::XmlRpcValue::_doubleFormat |
|
staticprotected |
◆ _type
Type XmlLocal::XmlRpcValue::_type |
|
protected |
◆ _value
union { ... } XmlLocal::XmlRpcValue::_value |
◆ asArray
◆ asBinary
◆ asBool
bool XmlLocal::XmlRpcValue::asBool |
◆ asDouble
double XmlLocal::XmlRpcValue::asDouble |
◆ asInt
int XmlLocal::XmlRpcValue::asInt |
◆ asString
std::string* XmlLocal::XmlRpcValue::asString |
◆ asStruct
◆ asTime
struct tm* XmlLocal::XmlRpcValue::asTime |
The documentation for this class was generated from the following file: