comparison OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 5561:0b18690c1935

SDK: added OrthancPluginLogMessage to display plugin name + file and line from plugin
author Alain Mazy <am@orthanc.team>
date Tue, 23 Apr 2024 09:34:02 +0200
parents 2b3eeacf636c
children f0dc99bc811c
comparison
equal deleted inserted replaced
5560:c80dbbae3f60 5561:0b18690c1935
135 const char* url, 135 const char* url,
136 const OrthancPluginHttpRequest* request); 136 const OrthancPluginHttpRequest* request);
137 137
138 void SetGlobalContext(OrthancPluginContext* context); 138 void SetGlobalContext(OrthancPluginContext* context);
139 139
140 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 4) && ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 4)
141 void SetGlobalContext(OrthancPluginContext* context, const char* pluginName);
142 #endif
143
140 void ResetGlobalContext(); 144 void ResetGlobalContext();
141 145
142 bool HasGlobalContext(); 146 bool HasGlobalContext();
143 147
144 OrthancPluginContext* GetGlobalContext(); 148 OrthancPluginContext* GetGlobalContext();
635 639
636 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 0) 640 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 0)
637 const char* AutodetectMimeType(const std::string& path); 641 const char* AutodetectMimeType(const std::string& path);
638 #endif 642 #endif
639 643
640 void LogError(const std::string& message); 644 void LogError(const std::string& message); // From Orthanc 1.12.4, use LOG(ERROR) to display the plugin name, file and line (First set a plugin name in Orthanc::Logging::InitializePluginContext)
641 645
642 void LogWarning(const std::string& message); 646 void LogWarning(const std::string& message); // From Orthanc 1.12.4, use LOG(WARNING) to display the plugin name, file and line (First set a plugin name in Orthanc::Logging::InitializePluginContext)
643 647
644 void LogInfo(const std::string& message); 648 void LogInfo(const std::string& message); // From Orthanc 1.12.4, use LOG(INFO) to display the plugin name, file and line (First set a plugin name in Orthanc::Logging::InitializePluginContext)
645 649
646 void ReportMinimalOrthancVersion(unsigned int major, 650 void ReportMinimalOrthancVersion(unsigned int major,
647 unsigned int minor, 651 unsigned int minor,
648 unsigned int revision); 652 unsigned int revision);
649 653