summaryrefslogtreecommitdiff
path: root/net/xmlrpc-c-devel/files/patch-tools::xml-rpc-api2cpp::XmlRpcClass.cc
blob: 794d218df9327ced30146a21eb251ed418f9ef93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
--- tools/xml-rpc-api2cpp/XmlRpcClass.cc.orig	Mon Mar 26 08:49:19 2001
+++ tools/xml-rpc-api2cpp/XmlRpcClass.cc	Tue Mar  2 23:39:39 2004
@@ -1,6 +1,6 @@
-#include <iostream.h>
+#include <iostream>
 #include <stdexcept>
-#include <vector.h>
+#include <vector>
 
 #include <XmlRpcCpp.h>
 #include "DataType.h"
@@ -14,7 +14,7 @@
 //  This class stores information about a proxy class, and knows how to
 //  generate code.
 
-XmlRpcClass::XmlRpcClass (string class_name)
+XmlRpcClass::XmlRpcClass (std::string class_name)
     : mClassName(class_name)
 {
 }
@@ -39,37 +39,37 @@
     mFunctions.push_back(function);
 }
 
-void XmlRpcClass::printDeclaration (ostream& out)
+void XmlRpcClass::printDeclaration (std::ostream& out)
 {
-    cout << "class " << mClassName << " {" << endl;
-    cout << "    XmlRpcClient mClient;" << endl;
-    cout << endl;
-    cout << "public:" << endl;
-    cout << "    " << mClassName << " (const XmlRpcClient& client)" << endl;
-    cout << "        : mClient(client) {}" << endl;
-    cout << "    " << mClassName << " (const string& server_url)" << endl;
-    cout << "        : mClient(XmlRpcClient(server_url)) {}" << endl;
-    cout << "    " << mClassName << " (const " << mClassName << "& o)" << endl;
-    cout << "        : mClient(o.mClient) {}" << endl;
-    cout << endl;
-    cout << "    " << mClassName << "& operator= (const "
-	 << mClassName << "& o) {" << endl;
-    cout << "        if (this != &o) mClient = o.mClient;" << endl;
-    cout << "        return *this;" << endl;
-    cout << "    }" << endl;
+    std::cout << "class " << mClassName << " {" << std::endl;
+    std::cout << "    XmlRpcClient mClient;" << std::endl;
+    std::cout << std::endl;
+    std::cout << "public:" << std::endl;
+    std::cout << "    " << mClassName << " (const XmlRpcClient& client)" << std::endl;
+    std::cout << "        : mClient(client) {}" << std::endl;
+    std::cout << "    " << mClassName << " (const std::string& server_url)" << std::endl;
+    std::cout << "        : mClient(XmlRpcClient(server_url)) {}" << std::endl;
+    std::cout << "    " << mClassName << " (const " << mClassName << "& o)" << std::endl;
+    std::cout << "        : mClient(o.mClient) {}" << std::endl;
+    std::cout << std::endl;
+    std::cout << "    " << mClassName << "& operator= (const "
+	 << mClassName << "& o) {" << std::endl;
+    std::cout << "        if (this != &o) mClient = o.mClient;" << std::endl;
+    std::cout << "        return *this;" << std::endl;
+    std::cout << "    }" << std::endl;
 
-    vector<XmlRpcFunction>::iterator f;
+    std::vector<XmlRpcFunction>::iterator f;
     for (f = mFunctions.begin(); f < mFunctions.end(); ++f) {
-	f->printDeclarations(cout);
+	f->printDeclarations(std::cout);
     }
 
-    cout << "};" << endl;    
+    std::cout << "};" << std::endl;    
 }
 
-void XmlRpcClass::printDefinition (ostream& out)
+void XmlRpcClass::printDefinition (std::ostream& out)
 {
-    vector<XmlRpcFunction>::iterator f;
+    std::vector<XmlRpcFunction>::iterator f;
     for (f = mFunctions.begin(); f < mFunctions.end(); ++f) {
-	f->printDefinitions(cout, mClassName);
+	f->printDefinitions(std::cout, mClassName);
     }
 }