using System;
{
public MyWatcher(
Subject s):base(s,
"Override String"){}
protected override void StartFilter() {
System.Console.WriteLine(
"This is my start" );
}
protected override void EndFilter(){
System.Console.WriteLine(
"This is my end" );
}
protected override void ShowProgress(
Subject caller,
Event evt){
}
protected override void ShowIteration(){
System.Console.WriteLine(
"This is my iteration" );
}
protected override void ShowAnonymization(
Subject caller,
Event evt){
if( ae != null )
{
System.Console.WriteLine(
"This is my Anonymization. Processing Tag #" + t.toString() );
}
else
{
System.Console.WriteLine(
"This is my Anonymization. Unhandled Event type: " + evt.
GetEventName() );
}
}
protected override void ShowAbort(){
System.Console.WriteLine(
"This is my abort" );
}
}
{
public static int Main(string[] args)
{
{
System.Console.WriteLine(
"Could not LoadResourcesFiles" );
return 1;
}
string file1 = args[0];
string file2 = args[1];
bool ret = reader.
Read();
if( !ret )
{
return 1;
}
MyWatcher watcher = new MyWatcher(cleaner);
{
return 1;
}
if( !ret )
{
return 1;
}
return 0;
}
}
AnonymizeEvent.
Definition gdcmAnonymizeEvent.h:30
Tag const & GetTag() const
Definition gdcmAnonymizeEvent.h:46
Cleaner.
Definition gdcmCleaner.h:30
static SmartPointer< Cleaner > New()
for wrapped language: instantiate a reference counted object
Definition gdcmCleaner.h:80
bool Scrub(Tag const &t)
Clean digital tash (typically SIEMENS CSA header):
void SetFile(const File &f)
Set/Get File.
Definition gdcmCleaner.h:75
bool Preserve(DPath const &dpath)
File & GetFile()
Definition gdcmCleaner.h:77
bool Remove(Tag const &t)
class to handle a DICOM path While supp 118 did introduced a notion of XPath for XML Native model thi...
Definition gdcmDPath.h:28
bool ConstructFromString(const char *path)
superclass for callback/observer methods
Definition gdcmEvent.h:27
virtual const char * GetEventName() const =0
Global.
Definition gdcmGlobal.h:50
bool LoadResourcesFiles()
static Global & GetInstance()
return the singleton instance
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner)
Definition gdcmPrivateTag.h:39
ProgressEvent.
Definition gdcmProgressEvent.h:30
double GetProgress() const
Definition gdcmProgressEvent.h:47
Reader ala DOM (Document Object Model)
Definition gdcmReader.h:54
const File & GetFile() const
Set/Get File.
Definition gdcmReader.h:72
virtual bool Read()
Main function to read a file.
void SetFileName(const char *filename_native)
SimpleSubjectWatcher.
Definition gdcmSimpleSubjectWatcher.h:32
Subject.
Definition gdcmSubject.h:29
Class to do system operation.
Definition gdcmSystem.h:27
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
VR class.
Definition gdcmVR.h:55
VRType
Definition gdcmVR.h:57
Writer ala DOM (Document Object Model)
Definition gdcmWriter.h:49
virtual bool Write()
Main function to tell the writer to write.
void SetFile(const File &f)
Set/Get the DICOM file (DataSet + Header)
Definition gdcmWriter.h:66
void SetFileName(const char *filename_native)
Set the filename of DICOM file to write: