comparison Framework/Toolbox/MessagingToolbox.h @ 309:14ef1227120f am-callable-and-promise

web services: better handling of failures
author am@osimis.io
date Fri, 28 Sep 2018 15:02:43 +0200
parents 5412adf19980
children b70e9be013e4
comparison
equal deleted inserted replaced
307:be2660b6e40a 309:14ef1227120f
11 * 11 *
12 * This program is distributed in the hope that it will be useful, but 12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Affero General Public License for more details. 15 * Affero General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Affero General Public License 17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 21
35 namespace MessagingToolbox 35 namespace MessagingToolbox
36 { 36 {
37 bool ParseJson(Json::Value& target, 37 bool ParseJson(Json::Value& target,
38 const void* content, 38 const void* content,
39 size_t size); 39 size_t size);
40
41 void JsonToString(std::string& target,
42 const Json::Value& source);
43
40 44
41 void RestApiGet(Json::Value& target, 45 void RestApiGet(Json::Value& target,
42 OrthancPlugins::IOrthancConnection& orthanc, 46 OrthancPlugins::IOrthancConnection& orthanc,
43 const std::string& uri); 47 const std::string& uri);
44 48