Mercurial > hg > orthanc-stone
comparison RenderingPlugin/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h @ 1936:224d7763eede
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 May 2022 15:30:26 +0200 |
parents | 0d1235ca4abc |
children | c0aa4b03f219 |
comparison
equal
deleted
inserted
replaced
1935:49c615745708 | 1936:224d7763eede |
---|---|
301 const char* GetContent() const | 301 const char* GetContent() const |
302 { | 302 { |
303 return str_; | 303 return str_; |
304 } | 304 } |
305 | 305 |
306 bool IsNullOrEmpty() const | |
307 { | |
308 return str_ == NULL || str_[0] == 0; | |
309 } | |
310 | |
306 void ToString(std::string& target) const; | 311 void ToString(std::string& target) const; |
307 | 312 |
308 void ToJson(Json::Value& target) const; | 313 void ToJson(Json::Value& target) const; |
309 | 314 |
310 void ToJsonWithoutComments(Json::Value& target) const; | 315 void ToJsonWithoutComments(Json::Value& target) const; |
608 | 613 |
609 bool CheckMinimalOrthancVersion(unsigned int major, | 614 bool CheckMinimalOrthancVersion(unsigned int major, |
610 unsigned int minor, | 615 unsigned int minor, |
611 unsigned int revision); | 616 unsigned int revision); |
612 | 617 |
618 bool CheckMinimalVersion(const char* version, | |
619 unsigned int major, | |
620 unsigned int minor, | |
621 unsigned int revision); | |
613 | 622 |
614 namespace Internals | 623 namespace Internals |
615 { | 624 { |
616 template <RestCallback Callback> | 625 template <RestCallback Callback> |
617 static OrthancPluginErrorCode Protect(OrthancPluginRestOutput* output, | 626 static OrthancPluginErrorCode Protect(OrthancPluginRestOutput* output, |