GDCM  2.2.6
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 
46 {
47 public:
49  ~FileAnonymizer();
50 
53  void Empty( Tag const &t );
54 
56  void Remove( Tag const &t );
57 
61  void Replace( Tag const &t, const char *value_str );
62 
65  void Replace( Tag const &t, const char *value_data, VL const & vl );
66 
68  void SetInputFileName(const char *filename_native);
69 
71  void SetOutputFileName(const char *filename_native);
72 
74  bool Write();
75 
76 private:
77  bool ComputeEmptyTagPosition();
78  bool ComputeRemoveTagPosition();
79  bool ComputeReplaceTagPosition();
80  FileAnonymizerInternals *Internals;
81 
82 };
83 
84 } // end namespace gdcm
85 
86 #endif //GDCMFILEANONYMIZER_H
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
FileAnonymizer.
Definition: gdcmFileAnonymizer.h:45
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 05:56:17 for GDCM by doxygen 1.8.5
SourceForge.net Logo