GDCM: gdcmFileAnonymizer.h Source File

GDCM 3.2.5

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
47 class GDCM_EXPORT FileAnonymizer : public Subject
48{
49public:
50 FileAnonymizer();
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
gdcm::FileAnonymizer::Write
bool Write()
Write the output file.
gdcm::FileAnonymizer::SetInputFileName
void SetInputFileName(const char *filename_native)
Set input filename.
gdcm::FileAnonymizer::Remove
void Remove(Tag const &t)
remove a tag (even a SQ can be removed)
gdcm::FileAnonymizer::Replace
void Replace(Tag const &t, const char *value_data, VL const &vl)
gdcm::FileAnonymizer::Empty
void Empty(Tag const &t)
gdcm::FileAnonymizer::SetOutputFileName
void SetOutputFileName(const char *filename_native)
Set output filename.
gdcm::FileAnonymizer::FileAnonymizer
FileAnonymizer()
gdcm::FileAnonymizer::~FileAnonymizer
~FileAnonymizer() override
gdcm::FileAnonymizer::Replace
void Replace(Tag const &t, const char *value_str)
gdcm::Subject::Subject
Subject()
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
gdcm::VL
Value Length.
Definition gdcmVL.h:30
gdcmEvent.h
gdcmSubject.h
gdcmTag.h
gdcmVL.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21