GDCM 3.2.1

gdcmQueryFactory.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef GDCMQUERYFACTORY_H
19#define GDCMQUERYFACTORY_H
20
21#include "gdcmBaseRootQuery.h"
22
23 namespace gdcm{
27 enum ECharSet {
28 eLatin1 = 0,
29 eLatin2,
30 eLatin3,
31 eLatin4,
32 eCyrillic,
33 eArabic,
34 eGreek,
35 eHebrew,
36 eLatin5, // Latin Alphabet No. 5 (Turkish) Extended
37 eJapanese, // JIS X 0201 (Shift JIS) Extended
38 eThai, // TIS 620-2533 (Thai) Extended
39 eJapaneseKanjiMultibyte, // JIS X 0208 (Kanji) Extended
40 eJapaneseSupplementaryKanjiMultibyte, // JIS X 0212 (Kanji) Extended
41 eKoreanHangulHanjaMultibyte, // KS X 1001 (Hangul and Hanja) Extended
42 eUTF8,
43 eGB18030 // Chinese (Simplified) Extended
44 };
45
57 class GDCM_EXPORT QueryFactory
58{
59 public:
60
61 static BaseQuery* ProduceQuery( const std::string & sopInstanceUID, ENQueryType inQueryType );
67 static BaseRootQuery* ProduceQuery(ERootType inRootType, EQueryType inQueryType,
68 EQueryLevel inQueryLevel);
69
77 static DataElement ProduceCharacterSetDataElement(
78 const std::vector<ECharSet>& inCharSetType);
79
82 static ECharSet GetCharacterFromCurrentLocale();
83
85 static void ListCharSets(std::ostream& os);
86};
87
88} // end namespace gdcm
89
90#endif // GDCMQUERYFACTORY_H
gdcm::BaseQuery
BaseQuery.
Definition gdcmBaseQuery.h:42
gdcm::BaseRootQuery
BaseRootQuery.
Definition gdcmBaseRootQuery.h:67
gdcm::DataElement
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
gdcm::QueryFactory
QueryFactory.h.
Definition gdcmQueryFactory.h:58
gdcm::QueryFactory::ProduceQuery
static BaseQuery * ProduceQuery(const std::string &sopInstanceUID, ENQueryType inQueryType)
gdcm::QueryFactory::GetCharacterFromCurrentLocale
static ECharSet GetCharacterFromCurrentLocale()
gdcm::QueryFactory::ListCharSets
static void ListCharSets(std::ostream &os)
List all possible CharSet.
gdcm::QueryFactory::ProduceCharacterSetDataElement
static DataElement ProduceCharacterSetDataElement(const std::vector< ECharSet > &inCharSetType)
gdcm::QueryFactory::ProduceQuery
static BaseRootQuery * ProduceQuery(ERootType inRootType, EQueryType inQueryType, EQueryLevel inQueryLevel)
gdcmBaseRootQuery.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::ENQueryType
ENQueryType
Definition gdcmBaseQuery.h:31
gdcm::ERootType
ERootType
Definition gdcmQueryBase.h:29
gdcm::EQueryType
EQueryType
Definition gdcmBaseRootQuery.h:43
gdcm::ECharSet
ECharSet
Definition gdcmQueryFactory.h:27
gdcm::eLatin2
@ eLatin2
Definition gdcmQueryFactory.h:29
gdcm::eKoreanHangulHanjaMultibyte
@ eKoreanHangulHanjaMultibyte
Definition gdcmQueryFactory.h:41
gdcm::eLatin1
@ eLatin1
Definition gdcmQueryFactory.h:28
gdcm::eLatin3
@ eLatin3
Definition gdcmQueryFactory.h:30
gdcm::eUTF8
@ eUTF8
Definition gdcmQueryFactory.h:42
gdcm::eJapaneseSupplementaryKanjiMultibyte
@ eJapaneseSupplementaryKanjiMultibyte
Definition gdcmQueryFactory.h:40
gdcm::eCyrillic
@ eCyrillic
Definition gdcmQueryFactory.h:32
gdcm::eHebrew
@ eHebrew
Definition gdcmQueryFactory.h:35
gdcm::eLatin5
@ eLatin5
Definition gdcmQueryFactory.h:36
gdcm::eLatin4
@ eLatin4
Definition gdcmQueryFactory.h:31
gdcm::eJapanese
@ eJapanese
Definition gdcmQueryFactory.h:37
gdcm::eJapaneseKanjiMultibyte
@ eJapaneseKanjiMultibyte
Definition gdcmQueryFactory.h:39
gdcm::eArabic
@ eArabic
Definition gdcmQueryFactory.h:33
gdcm::eGreek
@ eGreek
Definition gdcmQueryFactory.h:34
gdcm::eGB18030
@ eGB18030
Definition gdcmQueryFactory.h:43
gdcm::eThai
@ eThai
Definition gdcmQueryFactory.h:38
gdcm::EQueryLevel
EQueryLevel
Definition gdcmBaseRootQuery.h:35