GDCM 3.0.24
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
22namespace gdcm
23{
24class FileAnonymizerInternals;
25
48{
49public:
51 ~FileAnonymizer() override;
52
55 void Empty( Tag const &t );
56
58 void Remove( Tag const &t );
59
63 void Replace( Tag const &t, const char *value_str );
64
67 void Replace( Tag const &t, const char *value_data, VL const & vl );
68
70 void SetInputFileName(const char *filename_native);
71
73 void SetOutputFileName(const char *filename_native);
74
76 bool Write();
77
78private:
79 bool ComputeEmptyTagPosition();
80 bool ComputeRemoveTagPosition();
81 bool ComputeReplaceTagPosition();
82 FileAnonymizerInternals *Internals;
83};
84
85} // end namespace gdcm
86
87#endif //GDCMFILEANONYMIZER_H
FileAnonymizer.
Definition gdcmFileAnonymizer.h:48
bool Write()
Write the output file.
void SetInputFileName(const char *filename_native)
Set input filename.
void Remove(Tag const &t)
remove a tag (even a SQ can be removed)
void Replace(Tag const &t, const char *value_data, VL const &vl)
void Empty(Tag const &t)
void SetOutputFileName(const char *filename_native)
Set output filename.
~FileAnonymizer() override
void Replace(Tag const &t, const char *value_str)
Subject.
Definition gdcmSubject.h:29
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
Value Length.
Definition gdcmVL.h:30
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21