comparison Core/Toolbox.h @ 4026:05a363186da6

ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jun 2020 16:26:57 +0200
parents f9863630ec7f
children
comparison
equal deleted inserted replaced
4019:bf35c4628777 4026:05a363186da6
56 56
57 #if !defined(ORTHANC_ENABLE_PUGIXML) 57 #if !defined(ORTHANC_ENABLE_PUGIXML)
58 # error The macro ORTHANC_ENABLE_PUGIXML must be defined 58 # error The macro ORTHANC_ENABLE_PUGIXML must be defined
59 #endif 59 #endif
60 60
61 #if !defined(ORTHANC_ENABLE_SSL)
62 # error The macro ORTHANC_ENABLE_SSL must be defined
63 #endif
64
61 65
62 /** 66 /**
63 * NOTE: GUID vs. UUID 67 * NOTE: GUID vs. UUID
64 * The simple answer is: no difference, they are the same thing. Treat 68 * The simple answer is: no difference, they are the same thing. Treat
65 * them as a 16 byte (128 bits) value that is used as a unique 69 * them as a 16 byte (128 bits) value that is used as a unique
83 }; 87 };
84 88
85 class ORTHANC_PUBLIC Toolbox 89 class ORTHANC_PUBLIC Toolbox
86 { 90 {
87 public: 91 public:
88 class LinesIterator 92 class ORTHANC_PUBLIC LinesIterator
89 { 93 {
90 private: 94 private:
91 const std::string& content_; 95 const std::string& content_;
92 size_t lineStart_; 96 size_t lineStart_;
93 size_t lineEnd_; 97 size_t lineEnd_;
241 245
242 static std::string ToUpperCaseWithAccents(const std::string& source); 246 static std::string ToUpperCaseWithAccents(const std::string& source);
243 #endif 247 #endif
244 248
245 static void InitializeOpenSsl(); 249 static void InitializeOpenSsl();
246 250
247 static void FinalizeOpenSsl(); 251 static void FinalizeOpenSsl();
248 252
249 static std::string GenerateUuid(); 253 static std::string GenerateUuid();
250 254
251 static std::string SubstituteVariables(const std::string& source, 255 static std::string SubstituteVariables(const std::string& source,
270 274
271 275
272 /** 276 /**
273 * The plain C, opaque data structure "OrthancLinesIterator" is a thin 277 * The plain C, opaque data structure "OrthancLinesIterator" is a thin
274 * wrapper around Orthanc::Toolbox::LinesIterator, and is only used by 278 * wrapper around Orthanc::Toolbox::LinesIterator, and is only used by
275 * "../Resources/WebAssembly/dcdict.cc", in order to avoid code 279 * "../Resources/Patches/dcmtk-dcdict_orthanc.cc", in order to avoid
276 * duplication 280 * code duplication
277 **/ 281 **/
278 282
279 struct OrthancLinesIterator; 283 struct OrthancLinesIterator;
280 284
281 OrthancLinesIterator* OrthancLinesIterator_Create(const std::string& content); 285 OrthancLinesIterator* OrthancLinesIterator_Create(const std::string& content);