startArg= NULL;
progressArg= NULL;
endArg= NULL;
-cout << "gdcmDicomDir::gdcmDicomDir(bool exception_on_error) sortie gdcmDocument
-"
-<< endl;
progress=0.0;
abort=false;
std::string pathBidon = ""; // Sorry, NULL not allowed ...
SetElement(pathBidon, GDCM_DICOMDIR_META, NULL); // Set the META elements
-
-cout << "gdcmDicomDir::gdcmDicomDir apres SetElement " << endl;
AddDicomDirMeta();
- cout << "gdcmDicomDir::gdcmDicomDir apres AddDicomDirMeta " << endl;
-
}
gdcmDocEntrySet(int depth = 0);
~gdcmDocEntrySet(void);
-/// \brief adds any type of entry to the entry set (pure vitual)
+ /// \brief adds any type of entry to the entry set (pure vitual)
virtual bool AddEntry(gdcmDocEntry *Entry) = 0; // pure virtual
-
-// bool CheckEntryVR(gdcmDocEntry *Entry, std::string vr);
+ //FIXME bool CheckEntryVR(gdcmDocEntry *Entry, std::string vr);
-/// \brief prints any type of entry to the entry set (pure vitual)
+ /// \brief prints any type of entry to the entry set (pure vitual)
virtual void Print (std::ostream & os = std::cout) = 0;// pure virtual
/// \brief Gets the depth level of a Dicom Header Entry embedded in a SeQuence
inline int GetDepthLevel(void)
{return(SQDepthLevel);}
-
+
/// \brief Sets the depth level of a Dicom Header Entry embedded in a SeQuence
inline void SetDepthLevel(int depth)
{SQDepthLevel = depth;}
/// Gives the depth level of the element set inside SeQuences
int SQDepthLevel;
-
+
private:
};
#define GDCMDOCUMENT_H
#include "gdcmCommon.h"
-
#include "gdcmVR.h"
#include "gdcmTS.h"
#include "gdcmException.h"
/// Accessor to \ref filename
inline void SetFileName(char* fileName) {filename = fileName;}
- /// Accessor to \ref gdcmDocument::tagHT
+ /// Accessor to \ref gdcmElementSet::tagHT
inline TagDocEntryHT &GetEntry(void) { return tagHT; };
/// Accessor to \ref gdcmDocument::listEntries
#ifndef GDCMELEMENTSET_H
#define GDCMELEMENTSET_H
+#include <map>
+#include <iostream>
+#include "gdcmCommon.h"
#include "gdcmDocEntrySet.h"
-#include "gdcmDocEntry.h"
-#include <map>
-typedef std::string TagKey;
typedef std::map<TagKey, gdcmDocEntry *> TagDocEntryHT;
-
//-----------------------------------------------------------------------------
-class GDCM_EXPORT gdcmElementSet : public gdcmDocEntrySet
+class GDCM_EXPORT gdcmElementSet : public gdcmDocEntrySet
{
public:
gdcmElementSet(int);
os << s2.str();
if (seq_term != NULL) {
seq_term->Print(os);
- }
+ }
else
- std::cout << " -------------- should have a sequence terminator item"
- << std::endl;
+ std::cout
+ << " -------------- should have a sequence terminator item"
+ << std::endl;
}
}
gdcmDocEntry *gdcmSeqEntry::NewDocEntryByNumber(guint16 group,
guint16 element) {
// TODO
- std::cout << "TODO : gdcmSeqEntry::NewDocEntryByNumber " << endl;
+ std::cout << "TODO : gdcmSeqEntry::NewDocEntryByNumber " << std::endl;
gdcmDocEntry *a;
- return a;
+ return a;
}
/// \brief to be written, if really usefull
gdcmDocEntry *gdcmSeqEntry::NewDocEntryByName (std::string Name) {
-// TODO :
- std::cout << "TODO : gdcmSeqEntry::NewDocEntryByName " << endl;
+// TODO
+ std::cout << "TODO : gdcmSeqEntry::NewDocEntryByName " << std::endl;
gdcmDocEntry *a;
return a;
}
/// \brief to be written, if really usefull
gdcmDocEntry *gdcmSeqEntry::GetDocEntryByNumber(guint16 group,
guint16 element) {
-// TODO
- std::cout << "TODO : gdcmSeqEntry::GetDocEntryByNumber " << endl;
+// TODO
+ std::cout << "TODO : gdcmSeqEntry::GetDocEntryByNumber " << std::endl;
gdcmDocEntry *a;
- return a;
-}
+ return a;
+}
//-----------------------------------------------------------------------------