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::XmlRpcValue::toXml
std::string toXml() const
Encode the Value in xml.
Definition: XmlRpcValue.cpp:277
XmlRpc
Definition: XmlRpcClient.h:20
main
int main(int argc, char *argv[])
Definition: bool_test.cpp:9
XmlRpc.h
XmlRpc::XmlRpcValue
RPC method arguments and results are represented by Values.
Definition: XmlRpcValue.h:24


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
autogenerated on Thu Jun 2 2022 02:59:25