gdcmQueryFactory.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef GDCMQUERYFACTORY_H
#define GDCMQUERYFACTORY_H
#include "gdcmBaseRootQuery.h"
namespace gdcm{
enum ECharSet {
eLatin1 = 0,
eLatin2,
eLatin3,
eLatin4,
eCyrillic,
eArabic,
eGreek,
eHebrew,
eLatin5, // Latin Alphabet No. 5 (Turkish) Extended
eJapanese, // JIS X 0201 (Shift JIS) Extended
eThai, // TIS 620-2533 (Thai) Extended
eJapaneseKanjiMultibyte, // JIS X 0208 (Kanji) Extended
eJapaneseSupplementaryKanjiMultibyte, // JIS X 0212 (Kanji) Extended
eKoreanHangulHanjaMultibyte, // KS X 1001 (Hangul and Hanja) Extended
eUTF8,
eGB18030 // Chinese (Simplified) Extended
};
class GDCM_EXPORT QueryFactory
{
public:
static BaseQuery* ProduceQuery( const std::string & sopInstanceUID, ENQueryType inQueryType );
static BaseRootQuery* ProduceQuery(ERootType inRootType, EQueryType inQueryType,
EQueryLevel inQueryLevel);
static DataElement ProduceCharacterSetDataElement(
const std::vector<ECharSet>& inCharSetType);
static ECharSet GetCharacterFromCurrentLocale();
static void ListCharSets(std::ostream& os);
};
} // end namespace gdcm
#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