CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkDicomAppHostingTypesHelper.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  Library: CTK
4 
5  Copyright (c) German Cancer Research Center,
6  Division of Medical and Biological Informatics
7 
8  Licensed under the Apache License, Version 2.0 (the "License");
9  you may not use this file except in compliance with the License.
10  You may obtain a copy of the License at
11 
12  http://www.apache.org/licenses/LICENSE-2.0
13 
14  Unless required by applicable law or agreed to in writing, software
15  distributed under the License is distributed on an "AS IS" BASIS,
16  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  See the License for the specific language governing permissions and
18  limitations under the License.
19 
20 =============================================================================*/
21 
22 
23 #ifndef CTKDICOMAPPHOSTINGTYPESHELPER_H
24 #define CTKDICOMAPPHOSTINGTYPESHELPER_H
25 
26 // Qt includes
27 #include <QtSoapStruct>
28 #include <QtSoapQName>
29 #include <QRect>
30 
31 // CTK includes
33 
34 #include <org_commontk_dah_core_Export.h>
35 
36 //----------------------------------------------------------------------------
37 struct org_commontk_dah_core_EXPORT ctkDicomSoapRectangle : public QtSoapStruct
38 {
39  ctkDicomSoapRectangle(const QString& name,const QRect& rect);
40 
41  static QRect getQRect(const QtSoapType& type);
42 };
43 
44 //----------------------------------------------------------------------------
45 struct org_commontk_dah_core_EXPORT ctkDicomSoapState : public QtSoapSimpleType
46 {
47  ctkDicomSoapState(const QString& name, ctkDicomAppHosting::State s);
48 
49  static ctkDicomAppHosting::State getState(const QtSoapType& type);
50  static ctkDicomAppHosting::State fromString(const QString& string);
51  static QString toStringValue(ctkDicomAppHosting::State state);
52 };
53 
54 //----------------------------------------------------------------------------
55 struct org_commontk_dah_core_EXPORT ctkDicomSoapStatus : public QtSoapStruct
56 {
57  ctkDicomSoapStatus(const QString& name,
59 
60  static ctkDicomAppHosting::Status getStatus(const QtSoapType& type);
61 };
62 
63 //----------------------------------------------------------------------------
64 //struct org_commontk_dah_core_EXPORT ctkDicomSoapUID : public QtSoapSimpleType
65 struct org_commontk_dah_core_EXPORT ctkDicomSoapUID : public QtSoapStruct
66 {
67  ctkDicomSoapUID(const QString& name, const QString& uid);
68 
69  //static QString getUID(const QtSoapType& type);
70  static QString getUID(const QtSoapType& array);
71 };
72 
73 //----------------------------------------------------------------------------
74 struct org_commontk_dah_core_EXPORT ctkDicomSoapArrayOfUIDS : public QtSoapStruct
75 {
76  ctkDicomSoapArrayOfUIDS(const QString& name, const QList<QString>& array);
77 
78  static QList<QString> getArray(const QtSoapType& array);
79 };
80 
81 //----------------------------------------------------------------------------
82 struct org_commontk_dah_core_EXPORT ctkDicomSoapBool : public QtSoapSimpleType
83 {
84  ctkDicomSoapBool(const QString& name, bool boolean);
85 
86  static bool getBool(const QtSoapType& type);
87 };
88 
89 //Not easy to template, will see later for other types
90 //----------------------------------------------------------------------------
91 struct org_commontk_dah_core_EXPORT ctkDicomSoapArrayOfStringType : public QtSoapStruct
92 {
93  ctkDicomSoapArrayOfStringType(const QString& typeName,
94  const QString& name, const QStringList& array);
95 
96  static QStringList getArray(const QtSoapType& array);
97 };
98 
99 //----------------------------------------------------------------------------
100 struct org_commontk_dah_core_EXPORT ctkDicomSoapUUID : public QtSoapStruct
101 {
102  ctkDicomSoapUUID(const QString& name, const QUuid& uuid);
103 
104  static QUuid getUuid(const QtSoapType& array);
105 };
106 
107 //----------------------------------------------------------------------------
108 struct org_commontk_dah_core_EXPORT ctkDicomSoapArrayOfUUIDS : public QtSoapStruct
109 {
110  ctkDicomSoapArrayOfUUIDS(const QString& name, const QList<QUuid>& array);
111 
112  static QList<QUuid> getArray(const QtSoapType& array);
113 };
114 
115 //----------------------------------------------------------------------------
116 struct org_commontk_dah_core_EXPORT ctkDicomSoapObjectDescriptor : public QtSoapStruct
117 {
118  ctkDicomSoapObjectDescriptor(const QString& name,
120 
121  static ctkDicomAppHosting::ObjectDescriptor getObjectDescriptor(const QtSoapType& type);
122 };
123 
124 //----------------------------------------------------------------------------
125 struct org_commontk_dah_core_EXPORT ctkDicomSoapArrayOfObjectDescriptors : public QtSoapStruct
126 {
127  ctkDicomSoapArrayOfObjectDescriptors(const QString& name,
129 
130  static ctkDicomAppHosting::ArrayOfObjectDescriptors getArrayOfObjectDescriptors(const QtSoapType& type);
131 };
132 
133 //----------------------------------------------------------------------------
134 struct org_commontk_dah_core_EXPORT ctkDicomSoapSeries : public QtSoapStruct
135 {
136  ctkDicomSoapSeries (const QString& name,
137  const ctkDicomAppHosting::Series& s);
138 
139  static ctkDicomAppHosting::Series getSeries(const QtSoapType& type);
140 };
141 
142 //----------------------------------------------------------------------------
143 struct org_commontk_dah_core_EXPORT ctkDicomSoapStudy : public QtSoapStruct
144 {
145  ctkDicomSoapStudy(const QString& name,
146  const ctkDicomAppHosting::Study& s);
147 
148  static ctkDicomAppHosting::Study getStudy(const QtSoapType& type);
149 };
150 
151 //----------------------------------------------------------------------------
152 struct org_commontk_dah_core_EXPORT ctkDicomSoapPatient : public QtSoapStruct
153 {
154  ctkDicomSoapPatient(const QString& name,
155  const ctkDicomAppHosting::Patient& p);
156 
157  static ctkDicomAppHosting::Patient getPatient(const QtSoapType& type);
158 };
159 
160 //----------------------------------------------------------------------------
161 struct org_commontk_dah_core_EXPORT ctkDicomSoapAvailableData : public QtSoapStruct
162 {
163  ctkDicomSoapAvailableData(const QString& name,
165 
166  static ctkDicomAppHosting::AvailableData getAvailableData (const QtSoapType& type);
167 };
168 
169 //----------------------------------------------------------------------------
170 struct org_commontk_dah_core_EXPORT ctkDicomSoapObjectLocator : public QtSoapStruct
171 {
172  ctkDicomSoapObjectLocator(const QString& name,
174 
175  static ctkDicomAppHosting::ObjectLocator getObjectLocator(const QtSoapType& type);
176 };
177 
178 //----------------------------------------------------------------------------
179 struct org_commontk_dah_core_EXPORT ctkDicomSoapArrayOfObjectLocators : public QtSoapArray
180 {
182 
183  static QList<ctkDicomAppHosting::ObjectLocator> getArray(const QtSoapType& array);
184 };
185 
186 #endif // CTKDICOMAPPHOSTINGTYPESHELPER_H