Main Page
Namespaces
Classes
Files
File List
File Members
standalone-tests
bool_test.cpp
Go to the documentation of this file.
1
// bool_test.cpp : make sure bool variables copy around ok
2
#include "
xmlrpcpp/XmlRpc.h
"
3
#include <iostream>
4
#include <stdlib.h>
5
6
using namespace
XmlRpc
;
7
using namespace
std
;
8
9
int
main
(
int
argc,
char
* argv[])
10
{
11
XmlRpcValue
v(
bool
(
false
));
12
cout << v.
toXml
() << endl;
13
XmlRpcValue
v2;
14
v2[0] = int(1);
15
v2[1] = string();
16
v2[2] =
XmlRpcValue
(
false
);
17
cout << v2.
toXml
() << endl;
18
19
return
0;
20
}
21
XmlRpc
Definition:
XmlRpcClient.h:20
XmlRpc.h
XmlRpc::XmlRpcValue
RPC method arguments and results are represented by Values.
Definition:
XmlRpcValue.h:24
std
XmlRpc::XmlRpcValue::toXml
std::string toXml() const
Encode the Value in xml.
Definition:
XmlRpcValue.cpp:261
main
int main(int argc, char *argv[])
Definition:
bool_test.cpp:9
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Sun Feb 3 2019 03:29:51