gdcmFileAnonymizer.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMFILEANONYMIZER_H
#define GDCMFILEANONYMIZER_H
#include "gdcmSubject.h"
#include "gdcmEvent.h"
#include "gdcmTag.h"
#include "gdcmVL.h"
namespace gdcm
{
class FileAnonymizerInternals;
class GDCM_EXPORT FileAnonymizer : public Subject
{
public:
FileAnonymizer();
~FileAnonymizer() override;
void Empty( Tag const &t );
void Remove( Tag const &t );
void Replace( Tag const &t, const char *value_str );
void Replace( Tag const &t, const char *value_data, VL const & vl );
void SetInputFileName(const char *filename_native);
void SetOutputFileName(const char *filename_native);
bool Write();
private:
bool ComputeEmptyTagPosition();
bool ComputeRemoveTagPosition();
bool ComputeReplaceTagPosition();
FileAnonymizerInternals *Internals;
};
} // end namespace gdcm
#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