comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2968:e361df74639f

added few plugin helpers
author am@osimis.io
date Wed, 05 Dec 2018 16:30:28 +0100
parents 3ed449d0204d
children 9b734c3e1095
comparison
equal deleted inserted replaced
2967:146eaed9b02c 2968:e361df74639f
417 417
418 bool RestApiGet(Json::Value& result, 418 bool RestApiGet(Json::Value& result,
419 const std::string& uri, 419 const std::string& uri,
420 bool applyPlugins); 420 bool applyPlugins);
421 421
422 bool RestApiGetString(std::string& result,
423 const std::string& uri,
424 bool applyPlugins);
425
422 bool RestApiPost(Json::Value& result, 426 bool RestApiPost(Json::Value& result,
423 const std::string& uri, 427 const std::string& uri,
424 const char* body, 428 const char* body,
425 size_t bodySize, 429 size_t bodySize,
426 bool applyPlugins); 430 bool applyPlugins);
463 bool applyPlugins); 467 bool applyPlugins);
464 468
465 bool HttpDelete(const std::string& url, 469 bool HttpDelete(const std::string& url,
466 const std::string& username, 470 const std::string& username,
467 const std::string& password); 471 const std::string& password);
472
473 void AnswerJson(const Json::Value& value,
474 OrthancPluginRestOutput* output
475 );
476
477 const char* GetMimeType(const std::string& path);
478
468 479
469 void LogError(const std::string& message); 480 void LogError(const std::string& message);
470 481
471 void LogWarning(const std::string& message); 482 void LogWarning(const std::string& message);
472 483