GDCM 3.0.24
gdcmPresentationContextGenerator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMPRESENTATIONCONTEXTGENERATOR_H
15#define GDCMPRESENTATIONCONTEXTGENERATOR_H
16
17#include "gdcmDirectory.h"
19
20namespace gdcm
21{
22class TransferSyntax;
23class File;
24
54{
55public:
57
58 // Set MergeMode
59 // Default mode, each pair AbstractSyntax/TransferSyntax are only merged when
60 // exactly identical
62
63 // Set MergeMode
64 // Merge is done on a per AbstractSyntax basis. Any new TransferSyntax for a
65 // given AbstractSyntax is merge to the existing PresentationContext referring
66 // to that AbstractSyntax
68
71
76
79 bool AddFromFile(const File &file);
80
81 typedef std::vector<PresentationContext> PresentationContextArrayType;
82 typedef PresentationContextArrayType::size_type SizeType;
84
87protected:
88 bool AddPresentationContext( const char *absyn, const char *ts );
89 const char *GetDefaultTransferSyntax() const;
90
91private:
92 std::vector<PresentationContext> PresContext;
93 static std::string DefaultTransferSyntax;
94};
95
96} // end namespace gdcm
97
98#endif //GDCMPRESENTATIONCONTEXTGENERATOR_H
std::vector< FilenameType > FilenamesType
Definition gdcmDirectory.h:49
a DICOM File
Definition gdcmFile.h:34
PresentationContextGenerator.
Definition gdcmPresentationContextGenerator.h:54
std::vector< PresentationContext > PresentationContextArrayType
Definition gdcmPresentationContextGenerator.h:81
bool GenerateFromUID(UIDs::TSName asname)
Generate the PresentationContext array from a UID (eg. VerificationSOPClass)
bool GenerateFromFilenames(const Directory::FilenamesType &files)
const char * GetDefaultTransferSyntax() const
bool AddFromFile(const File &file)
void SetDefaultTransferSyntax(const TransferSyntax &ts)
Not implemented for now. GDCM internally uses Implicit Little Endian.
PresentationContextArrayType const & GetPresentationContexts()
Definition gdcmPresentationContextGenerator.h:83
PresentationContextArrayType::size_type SizeType
Definition gdcmPresentationContextGenerator.h:82
bool AddPresentationContext(const char *absyn, const char *ts)
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
TSName
Definition gdcmUIDs.h:501
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21