GDCM  2.4.5
gdcmFileStreamer.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 GDCMFILESTREAMER_H
15 #define GDCMFILESTREAMER_H
16 
17 #include "gdcmSubject.h"
18 #include "gdcmSmartPointer.h"
19 
20 namespace gdcm
21 {
22 class FileStreamerInternals;
23 
24 class Tag;
25 class PrivateTag;
42 {
43 public:
44  FileStreamer();
45  ~FileStreamer();
46 
48  void SetTemplateFileName(const char *filename_native);
49 
50  // Decide to check template or not (default: false)
55  void CheckTemplateFileName(bool check);
56 
58  void SetOutputFileName(const char *filename_native);
59 
64  bool CheckDataElement( const Tag & t );
65 
68  bool StartDataElement( const Tag & t );
70  bool AppendToDataElement( const Tag & t, const char *array, size_t len );
72  bool StopDataElement( const Tag & t );
76  bool ReserveDataElement( size_t len );
77 
84  bool StartGroupDataElement( const PrivateTag & pt, size_t maxsizede = 0, uint8_t startoffset = 0 );
86  bool AppendToGroupDataElement( const PrivateTag & pt, const char *array, size_t len );
88  bool StopGroupDataElement( const PrivateTag & pt );
91  bool ReserveGroupDataElement( unsigned short ndataelement );
92 
94  static SmartPointer<FileStreamer> New() { return new FileStreamer; }
95 
96 private:
97  bool InitializeCopy();
98  FileStreamerInternals *Internals;
99 };
100 
101 } // end namespace gdcm
102 
103 #endif //GDCMFILESTREAMER_H
static SmartPointer< FileStreamer > New()
for wrapped language: instantiate a reference counted object
Definition: gdcmFileStreamer.h:94
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner) ...
Definition: gdcmPrivateTag.h:38
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Subject.
Definition: gdcmSubject.h:28
Class for Smart Pointer.
Definition: gdcmObject.h:26
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38
FileStreamer This class let a user create a massive DICOM DataSet from a template DICOM file...
Definition: gdcmFileStreamer.h:41
Definition: gdcmASN1.h:20

Generated on Fri Sep 25 2015 17:58:23 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo