GDCM  2.2.4
gdcmFileAnonymizer.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 GDCMFILEANONYMIZER_H
15 #define GDCMFILEANONYMIZER_H
16 
17 #include "gdcmSubject.h"
18 #include "gdcmEvent.h"
19 #include "gdcmTag.h"
20 #include "gdcmVL.h"
21 
22 namespace gdcm
23 {
24 class FileAnonymizerInternals;
25 
43 {
44 public:
46  ~FileAnonymizer();
47 
50  void Empty( Tag const &t );
51 
53  void Remove( Tag const &t );
54 
58  void Replace( Tag const &t, const char *value );
59 
62  void Replace( Tag const &t, const char *value, VL const & vl );
63 
65  void SetInputFileName(const char *filename_native);
66 
68  void SetOutputFileName(const char *filename_native);
69 
71  bool Write();
72 
73 private:
74  bool ComputeEmptyTagPosition();
75  bool ComputeRemoveTagPosition();
76  bool ComputeReplaceTagPosition();
77  FileAnonymizerInternals *Internals;
78 
79 };
80 
81 } // end namespace gdcm
82 
83 #endif //GDCMFILEANONYMIZER_H
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
FileAnonymizer.
Definition: gdcmFileAnonymizer.h:42
Value Length.
Definition: gdcmVL.h:29
Subject.
Definition: gdcmSubject.h:28
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38

Generated on Sat Dec 21 2013 01:40:06 for GDCM by doxygen 1.8.5
SourceForge.net Logo