summarylogtreecommitdiffstats
path: root/jsoncpp.patch
blob: 551a703d797ca4ccbd3d72021fc067cf21db3cd5 (plain)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
diff --git a/arras/distributed/arras4_node/cmd/node/router/SessionNodeMap.cc b/arras/distributed/arras4_node/cmd/node/router/SessionNodeMap.cc
index 67c0e06..37b6626 100644
--- a/arras/distributed/arras4_node/cmd/node/router/SessionNodeMap.cc
+++ b/arras/distributed/arras4_node/cmd/node/router/SessionNodeMap.cc
@@ -21,7 +21,7 @@ SessionNodeMap::SessionNodeMap(api::ObjectConstRef aRoutingData)
         info.port = static_cast<unsigned short>((*nodeIt)["tcp"].asInt());


-        api::UUID nodeId(nodeIt.memberName());// memberName() is DEPRECATED in later jsoncpp versions
+        api::UUID nodeId(nodeIt.name());// memberName() is DEPRECATED in later jsoncpp versions
         info.nodeId = nodeId;
         mMap[nodeId] = info;

@@ -45,7 +45,7 @@ SessionNodeMap::update(api::ObjectConstRef aRoutingData)
     api::ObjectConstRef nodes = aRoutingData["nodes"];
     for (api::ObjectConstIterator nodeIt = nodes.begin();
          nodeIt != nodes.end(); ++nodeIt) {
-        api::UUID nodeId(nodeIt.memberName());// memberName() is DEPRECATED in later jsoncpp versions
+        api::UUID nodeId(nodeIt.name());// memberName() is DEPRECATED in later jsoncpp versions
         if (mMap.count(nodeId) == 0) {
             NodeInfo info;
             info.hostname = (*nodeIt)["host"].asString();
diff --git a/arras/distributed/arras4_node/lib/session/SessionConfig.cc b/arras/distributed/arras4_node/lib/session/SessionConfig.cc
index bd840ff..38efa39 100644
--- a/arras/distributed/arras4_node/lib/session/SessionConfig.cc
+++ b/arras/distributed/arras4_node/lib/session/SessionConfig.cc
@@ -80,7 +80,7 @@ SessionConfig::SessionConfig(api::ObjectConstRef desc,
     for (api::ObjectConstIterator cIt = comps.begin();
          cIt != comps.end(); ++cIt) {

-        std::string compName = cIt.memberName();
+        std::string compName = cIt.name();
         api::ObjectConstRef info = *cIt;

         if (!info.isObject() ||
diff --git a/arras/distributed/arras4_node/cmd/node/ArrasNode.cc b/arras/distributed/arras4_node/cmd/node/ArrasNode.cc
index ed2b09a..98936d0 100644
--- a/arras/distributed/arras4_node/cmd/node/ArrasNode.cc
+++ b/arras/distributed/arras4_node/cmd/node/ArrasNode.cc
@@ -687,7 +687,7 @@ ArrasNode::updateTags(api::ObjectConstRef tags)
         api::Object current = mNodeInfo["tags"];
         for (auto it = tags.begin();
              it != tags.end(); ++it) {
-            current[it.memberName()] = *it;
+            current[it.name()] = *it;
         }
         std::string msg;
         if (!validateTags(current, msg))
@@ -741,7 +741,7 @@ ArrasNode::updateTagsProc(api::Object tags)
     api::Object current = mNodeInfo["tags"];
     for (api::ObjectIterator it = tags.begin();
          it != tags.end(); ++it) {
-        current[it.memberName()] = *it;
+        current[it.name()] = *it;
     }

     std::string msg;
diff --git a/arras/arras4_core/arras4_client/lib/client/api/RezResolve.cc b/arras/arras4_core/arras4_client/lib/client/api/RezResolve.cc
index f2e877b..af299af 100644
--- a/arras/arras4_core/arras4_client/lib/client/api/RezResolve.cc
+++ b/arras/arras4_core/arras4_client/lib/client/api/RezResolve.cc
@@ -97,7 +97,7 @@ bool rezResolve(impl::ProcessManager& procMan,
     api::ObjectRef comps = obj["computations"];
     for (api::ObjectIterator cIt = comps.begin();
          cIt != comps.end(); ++cIt) {
-	std::string name = cIt.memberName();
+	std::string name = cIt.name();
 	api::ObjectRef cdef = *cIt;
 	if (cdef.isObject()) {
             if (cdef.isMember("requirements")) {
diff --git a/arras/arras4_core/arras4_client/lib/client/local/LocalSession.cc b/arras/arras4_core/arras4_client/lib/client/local/LocalSession.cc
index 0473363..346f205 100644
--- a/arras/arras4_core/arras4_client/lib/client/local/LocalSession.cc
+++ b/arras/arras4_core/arras4_client/lib/client/local/LocalSession.cc
@@ -115,7 +115,7 @@ void LocalSession::setDefinition(api::ObjectConstRef def)
     api::ObjectConstRef contexts = def["contexts"];
     for (api::ObjectConstIterator cIt = comps.begin();
          cIt != comps.end(); ++cIt) {
-	std::string name = cIt.memberName();
+	std::string name = cIt.name();
 	if (name != "(client)") {
 	    processComputation(name,*cIt,contexts);
 	}
diff --git a/arras/arras4_core/arras4_client/lib/sdk/MultiSession.cc b/arras/arras4_core/arras4_client/lib/sdk/MultiSession.cc
index d4d8117..19f9cfa 100644
--- a/arras/arras4_core/arras4_client/lib/sdk/MultiSession.cc
+++ b/arras/arras4_core/arras4_client/lib/sdk/MultiSession.cc
@@ -217,7 +217,7 @@ MultiImpl::processCreateResponse(const HttpResponse& resp)
         // we asked to create
         for (ObjectIterator sessIt = responseObject.begin();
              sessIt != responseObject.end(); ++sessIt) {
-            std::string key = sessIt.memberName();
+            std::string key = sessIt.name();
             SDK& sdk = getSession(key);
             try {
                 sdk.mImpl->connectSession(*sessIt);
diff --git a/arras/arras4_core/arras4_core_impl/cmd/execComp/ExecComp.cc b/arras/arras4_core/arras4_core_impl/cmd/execComp/ExecComp.cc
index 17d0191..538efda 100644
--- a/arras/arras4_core/arras4_core_impl/cmd/execComp/ExecComp.cc
+++ b/arras/arras4_core/arras4_core_impl/cmd/execComp/ExecComp.cc
@@ -61,7 +61,7 @@ int ExecComp::run()
             return ProcessExitCodes::INVALID_CONFIG_DATA;
         }
         api::ObjectIterator oIt = mConfig["config"].begin();
-        std::string computationName = oIt.memberName(); // Json DEPRECATED
+        std::string computationName = oIt.name();
         api::ObjectRef computationConfig = *oIt;

         // save config if requested
diff --git a/arras/arras4_core/arras4_core_impl/lib/execute/Environment.cc b/arras/arras4_core/arras4_core_impl/lib/execute/Environment.cc
index f4910ff..3def810 100644
--- a/arras/arras4_core/arras4_core_impl/lib/execute/Environment.cc
+++ b/arras/arras4_core/arras4_core_impl/lib/execute/Environment.cc
@@ -47,7 +47,7 @@ void Environment::setFrom(api::ObjectConstRef obj)
 {
     for (api::ObjectConstIterator it = obj.begin();
          it != obj.end(); ++it) {
-	set(it.memberName(),(*it).asString());
+	set(it.name(),(*it).asString());
     }
 }

diff --git a/arras/arras4_core/arras4_core_impl/lib/routing/Addressing.cc b/arras/arras4_core/arras4_core_impl/lib/routing/Addressing.cc
index 2f2d536..ac1519c 100644
--- a/arras/arras4_core/arras4_core_impl/lib/routing/Addressing.cc
+++ b/arras/arras4_core/arras4_core_impl/lib/routing/Addressing.cc
@@ -49,8 +49,7 @@ Addressing::Addressing(const api::UUID& sourceCompId,
     // this list.
     for (api::ObjectConstIterator destIt = filters.begin();
          destIt != filters.end(); ++destIt) {
-        std::string destName = destIt.memberName(); // memberName() is DEPRECATED in later jsoncpp versions,
-                                                    // -- switch to 'name()' when possible
+        std::string destName = destIt.name();
         const api::Address& destAddr = compMap.getComputationAddress(destName);
         std::unordered_set<std::string> ignoreSet;

diff --git a/arras/arras4_core/arras4_core_impl/lib/routing/ComputationMap.cc b/arras/arras4_core/arras4_core_impl/lib/routing/ComputationMap.cc
index f8290ee..e2bb90d 100644
--- a/arras/arras4_core/arras4_core_impl/lib/routing/ComputationMap.cc
+++ b/arras/arras4_core/arras4_core_impl/lib/routing/ComputationMap.cc
@@ -18,8 +18,8 @@ ComputationMap::ComputationMap(const api::UUID& sessionId,
     for (api::ObjectConstIterator compIt = computationsData.begin();
          compIt != computationsData.end(); ++compIt) {
         api::UUID compId((*compIt)["compId"].asString());
-        mCompNameToId[compIt.memberName()] = compId;   // memberName() is DEPRECATED in later jsoncpp versions,
-        mCompIdToName[compId] = compIt.memberName();   // -- switch to 'name()' when possible
+        mCompNameToId[compIt.name()] = compId;
+        mCompIdToName[compId] = compIt.name();

         api::Address addr;
         addr.computation = compId;
diff --git a/arras/arras4_core/arras4_test/cmd/testClient/main.cc b/arras/arras4_core/arras4_test/cmd/testClient/main.cc
index b2aff6b..967f24c 100644
--- a/arras/arras4_core/arras4_test/cmd/testClient/main.cc
+++ b/arras/arras4_core/arras4_test/cmd/testClient/main.cc
@@ -119,8 +119,8 @@ subset(const Json::Value& aSubset, const Json::Value& aSuperset,
             unsigned int index = 0;
             Json::ValueConstIterator iter = aSubset.begin();
             while (iter != aSubset.end()) {
-                const char* memberName = iter.memberName();
-                std::string name = aVarName + "." + iter.memberName();
+                const std::string memberName = iter.name();
+                std::string name = aVarName + "." + memberName;
                 Json::Value value = aSuperset[memberName];
                 if (value.isNull()) {
                     if (aPrintError) {