Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 4961:1b76853e1797 more-tags
DbOptimizer plugin
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 23 Mar 2022 11:56:28 +0100 |
parents | 8785d8442f90 |
children | 501411a67f10 |
comparison
equal
deleted
inserted
replaced
4960:c68265bf1f94 | 4961:1b76853e1797 |
---|---|
295 const char* GetContent() const | 295 const char* GetContent() const |
296 { | 296 { |
297 return str_; | 297 return str_; |
298 } | 298 } |
299 | 299 |
300 bool IsNullOrEmpty() const | |
301 { | |
302 return str_ == NULL || str_[0] == 0; | |
303 } | |
304 | |
300 void ToString(std::string& target) const; | 305 void ToString(std::string& target) const; |
301 | 306 |
302 void ToJson(Json::Value& target) const; | 307 void ToJson(Json::Value& target) const; |
303 | 308 |
304 void ToJsonWithoutComments(Json::Value& target) const; | 309 void ToJsonWithoutComments(Json::Value& target) const; |
602 | 607 |
603 bool CheckMinimalOrthancVersion(unsigned int major, | 608 bool CheckMinimalOrthancVersion(unsigned int major, |
604 unsigned int minor, | 609 unsigned int minor, |
605 unsigned int revision); | 610 unsigned int revision); |
606 | 611 |
612 bool CheckMinimalVersion(const char* version, | |
613 unsigned int major, | |
614 unsigned int minor, | |
615 unsigned int revision); | |
607 | 616 |
608 namespace Internals | 617 namespace Internals |
609 { | 618 { |
610 template <RestCallback Callback> | 619 template <RestCallback Callback> |
611 static OrthancPluginErrorCode Protect(OrthancPluginRestOutput* output, | 620 static OrthancPluginErrorCode Protect(OrthancPluginRestOutput* output, |