comparison OrthancServer/OrthancInitialization.h @ 759:8cfc6119a5bd dicom-rt

integration mainline -> dicom-rt
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Apr 2014 16:04:55 +0200
parents 2e67366aab83
children 537837f50fbb
comparison
equal deleted inserted replaced
605:b82292ba2083 759:8cfc6119a5bd
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2013 Medical Physics Department, CHU of Liege, 3 * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege,
4 * Belgium 4 * Belgium
5 * 5 *
6 * This program is free software: you can redistribute it and/or 6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as 7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, either version 3 of the 8 * published by the Free Software Foundation, either version 3 of the
35 #include <string> 35 #include <string>
36 #include <set> 36 #include <set>
37 #include <json/json.h> 37 #include <json/json.h>
38 #include <stdint.h> 38 #include <stdint.h>
39 #include "../Core/HttpServer/MongooseServer.h" 39 #include "../Core/HttpServer/MongooseServer.h"
40 #include "DicomProtocol/DicomUserConnection.h"
40 #include "ServerEnumerations.h" 41 #include "ServerEnumerations.h"
41 42
42 namespace Orthanc 43 namespace Orthanc
43 { 44 {
44 void OrthancInitialize(const char* configurationFile = NULL); 45 void OrthancInitialize(const char* configurationFile = NULL);
52 int defaultValue); 53 int defaultValue);
53 54
54 bool GetGlobalBoolParameter(const std::string& parameter, 55 bool GetGlobalBoolParameter(const std::string& parameter,
55 bool defaultValue); 56 bool defaultValue);
56 57
57 void GetDicomModality(const std::string& name, 58 void GetDicomModalityUsingSymbolicName(const std::string& name,
58 std::string& aet, 59 std::string& aet,
59 std::string& address, 60 std::string& address,
60 int& port, 61 int& port,
61 ModalityManufacturer& manufacturer); 62 ModalityManufacturer& manufacturer);
63
64 bool LookupDicomModalityUsingAETitle(const std::string& aet,
65 std::string& symbolicName,
66 std::string& address,
67 int& port,
68 ModalityManufacturer& manufacturer);
62 69
63 void GetOrthancPeer(const std::string& name, 70 void GetOrthancPeer(const std::string& name,
64 std::string& url, 71 std::string& url,
65 std::string& username, 72 std::string& username,
66 std::string& password); 73 std::string& password);
76 83
77 std::string InterpretStringParameterAsPath(const std::string& parameter); 84 std::string InterpretStringParameterAsPath(const std::string& parameter);
78 85
79 void GetGlobalListOfStringsParameter(std::list<std::string>& target, 86 void GetGlobalListOfStringsParameter(std::list<std::string>& target,
80 const std::string& key); 87 const std::string& key);
88
89 void ConnectToModalityUsingSymbolicName(DicomUserConnection& connection,
90 const std::string& name);
91
92 void ConnectToModalityUsingAETitle(DicomUserConnection& connection,
93 const std::string& aet);
94
95 bool IsKnownAETitle(const std::string& aet);
96
97 bool IsSameAETitle(const std::string& aet1,
98 const std::string& aet2);
81 } 99 }