using System;
public class GenerateDICOMDIR
{
public static int Main(string[] args)
{
string directory = args[0];
string outfilename = args[1];
uint nfiles = d.
Load( directory,
true );
if(nfiles == 0) return 1;
string descriptor = "My_Descriptor";
{
return 1;
}
{
return 1;
}
return 0;
}
}
DICOMDIRGenerator class.
Definition gdcmDICOMDIRGenerator.h:57
bool Generate()
Main function to generate the DICOMDIR.
void SetDescriptor(const char *d)
void SetFilenames(FilenamesType const &fns)
Set the list of filenames from which the DICOMDIR should be generated from.
Class for manipulation directories.
Definition gdcmDirectory.h:43
unsigned int Load(FilenameType const &name, bool recursive=false)
FilenamesType const & GetFilenames() const
Set/Get the file names within the directory.
Definition gdcmDirectory.h:58
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: