Mercurial > hg > orthanc
comparison Core/OrthancFramework.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 | 5f6c11a5e1f9 |
children |
comparison
equal
deleted
inserted
replaced
4019:bf35c4628777 | 4026:05a363186da6 |
---|---|
39 * "OrthancFramework.h" | 39 * "OrthancFramework.h" |
40 **/ | 40 **/ |
41 #ifndef __ORTHANC_FRAMEWORK_H | 41 #ifndef __ORTHANC_FRAMEWORK_H |
42 #define __ORTHANC_FRAMEWORK_H | 42 #define __ORTHANC_FRAMEWORK_H |
43 | 43 |
44 #if !defined(ORTHANC_FRAMEWORK_BUILDING_LIBRARY) | 44 #if !defined(ORTHANC_BUILDING_FRAMEWORK_LIBRARY) |
45 # define ORTHANC_FRAMEWORK_BUILDING_LIBRARY 0 | 45 # error The macro ORTHANC_BUILDING_FRAMEWORK_LIBRARY must be defined |
46 #endif | 46 #endif |
47 | 47 |
48 /** | 48 /** |
49 * It is implied that if this file is used, we're building the Orthanc | 49 * It is implied that if this file is used, we're building the Orthanc |
50 * framework (not using it as a shared library): We don't use the | 50 * framework (not using it as a shared library): We don't use the |
51 * common "BUILDING_DLL" | 51 * common "BUILDING_DLL" |
52 * construction. https://gcc.gnu.org/wiki/Visibility | 52 * construction. https://gcc.gnu.org/wiki/Visibility |
53 **/ | 53 **/ |
54 #if ORTHANC_FRAMEWORK_BUILDING_LIBRARY == 1 | 54 #if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1 |
55 # if defined(_WIN32) || defined (__CYGWIN__) | 55 # if defined(_WIN32) || defined (__CYGWIN__) |
56 # define ORTHANC_PUBLIC __declspec(dllexport) | 56 # define ORTHANC_PUBLIC __declspec(dllexport) |
57 # define ORTHANC_LOCAL | 57 # define ORTHANC_LOCAL |
58 # else | 58 # else |
59 # if __GNUC__ >= 4 | 59 # if __GNUC__ >= 4 |
68 #else | 68 #else |
69 # define ORTHANC_PUBLIC | 69 # define ORTHANC_PUBLIC |
70 # define ORTHANC_LOCAL | 70 # define ORTHANC_LOCAL |
71 #endif | 71 #endif |
72 | 72 |
73 | |
74 #include <string> | |
75 | |
76 namespace Orthanc | |
77 { | |
78 ORTHANC_PUBLIC void InitializeFramework(const std::string& locale, | |
79 bool loadPrivateDictionary); | |
80 | |
81 ORTHANC_PUBLIC void FinalizeFramework(); | |
82 } | |
83 | |
84 | |
73 #endif /* __ORTHANC_FRAMEWORK_H */ | 85 #endif /* __ORTHANC_FRAMEWORK_H */ |