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


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:24