GDCM  2.2.0
gdcmQueryBase.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef GDCMQUERYBASE_H
00019 #define GDCMQUERYBASE_H
00020 
00021 #include "gdcmTag.h"
00022 #include "gdcmDataSet.h"
00023 
00024 #include <string>
00025 #include <vector>
00026 #include <algorithm>
00027 
00028 namespace gdcm
00029 {
00030   enum ERootType
00031     {
00032     ePatientRootType,
00033     eStudyRootType
00034     };
00035 
00061 class GDCM_EXPORT QueryBase
00062 {
00063   public:
00064     virtual ~QueryBase() {}
00065 
00066     virtual std::vector<Tag> GetRequiredTags(const ERootType& inRootType) const = 0;
00067     virtual std::vector<Tag> GetUniqueTags(const ERootType& inRootType) const = 0;
00068     virtual std::vector<Tag> GetOptionalTags(const ERootType& inRootType) const = 0;
00069 
00072     virtual std::vector<Tag> GetAllTags(const ERootType& inRootType) const;
00073 
00074     virtual std::string GetName() const = 0;
00075     virtual DataElement GetQueryLevel() const = 0;
00076   };
00077 }
00078 
00079 #endif //GDCMQUERYBASE_H

Generated on Fri Mar 30 2012 12:44:05 for GDCM by doxygen 1.8.0
SourceForge.net Logo