Mercurial > hg > orthanc
comparison OrthancServer/OrthancInitialization.h @ 810:401a9633e492
configuration into a namespace
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 07 May 2014 16:47:56 +0200 |
parents | 2d9a000aa3a6 |
children | 8a36c947490c |
comparison
equal
deleted
inserted
replaced
809:8ce2f69436ca | 810:401a9633e492 |
---|---|
45 { | 45 { |
46 void OrthancInitialize(const char* configurationFile = NULL); | 46 void OrthancInitialize(const char* configurationFile = NULL); |
47 | 47 |
48 void OrthancFinalize(); | 48 void OrthancFinalize(); |
49 | 49 |
50 std::string GetGlobalStringParameter(const std::string& parameter, | 50 class Configuration |
51 const std::string& defaultValue); | 51 { |
52 public: | |
53 static std::string GetGlobalStringParameter(const std::string& parameter, | |
54 const std::string& defaultValue); | |
52 | 55 |
53 int GetGlobalIntegerParameter(const std::string& parameter, | 56 static int GetGlobalIntegerParameter(const std::string& parameter, |
54 int defaultValue); | 57 int defaultValue); |
55 | 58 |
56 bool GetGlobalBoolParameter(const std::string& parameter, | 59 static bool GetGlobalBoolParameter(const std::string& parameter, |
57 bool defaultValue); | 60 bool defaultValue); |
58 | 61 |
59 void GetDicomModalityUsingSymbolicName(RemoteModalityParameters& modality, | 62 static void GetDicomModalityUsingSymbolicName(RemoteModalityParameters& modality, |
60 const std::string& name); | 63 const std::string& name); |
61 | 64 |
62 bool LookupDicomModalityUsingAETitle(RemoteModalityParameters& modality, | 65 static bool LookupDicomModalityUsingAETitle(RemoteModalityParameters& modality, |
63 const std::string& aet); | 66 const std::string& aet); |
64 | 67 |
65 void GetOrthancPeer(OrthancPeerParameters& peer, | 68 static void GetOrthancPeer(OrthancPeerParameters& peer, |
66 const std::string& name); | 69 const std::string& name); |
67 | 70 |
68 void GetListOfDicomModalities(std::set<std::string>& target); | 71 static void GetListOfDicomModalities(std::set<std::string>& target); |
69 | 72 |
70 void GetListOfOrthancPeers(std::set<std::string>& target); | 73 static void GetListOfOrthancPeers(std::set<std::string>& target); |
71 | 74 |
72 void SetupRegisteredUsers(MongooseServer& httpServer); | 75 static void SetupRegisteredUsers(MongooseServer& httpServer); |
73 | 76 |
74 std::string InterpretRelativePath(const std::string& baseDirectory, | 77 static std::string InterpretRelativePath(const std::string& baseDirectory, |
75 const std::string& relativePath); | 78 const std::string& relativePath); |
76 | 79 |
77 std::string InterpretStringParameterAsPath(const std::string& parameter); | 80 static std::string InterpretStringParameterAsPath(const std::string& parameter); |
78 | 81 |
79 void GetGlobalListOfStringsParameter(std::list<std::string>& target, | 82 static void GetGlobalListOfStringsParameter(std::list<std::string>& target, |
80 const std::string& key); | 83 const std::string& key); |
81 | 84 |
82 bool IsKnownAETitle(const std::string& aet); | 85 static bool IsKnownAETitle(const std::string& aet); |
83 | 86 |
84 bool IsSameAETitle(const std::string& aet1, | 87 static bool IsSameAETitle(const std::string& aet1, |
85 const std::string& aet2); | 88 const std::string& aet2); |
86 | 89 |
87 RemoteModalityParameters GetModalityUsingSymbolicName(const std::string& name); | 90 static RemoteModalityParameters GetModalityUsingSymbolicName(const std::string& name); |
88 | 91 |
89 RemoteModalityParameters GetModalityUsingAet(const std::string& aet); | 92 static RemoteModalityParameters GetModalityUsingAet(const std::string& aet); |
90 | 93 |
91 void UpdateModality(const RemoteModalityParameters& modality); | 94 static void UpdateModality(const RemoteModalityParameters& modality); |
92 | 95 |
93 void RemoveModality(const std::string& symbolicName); | 96 static void RemoveModality(const std::string& symbolicName); |
94 | 97 |
95 void UpdatePeer(const OrthancPeerParameters& peer); | 98 static void UpdatePeer(const OrthancPeerParameters& peer); |
96 | 99 |
97 void RemovePeer(const std::string& symbolicName); | 100 static void RemovePeer(const std::string& symbolicName); |
101 }; | |
98 } | 102 } |