//-----------------------------------------------------------------------------
//
#include "gdcmBinEntry.h"
-#include "gdcmTS.h"
-#include "gdcmGlobal.h"
-#include "gdcmUtil.h"
//-----------------------------------------------------------------------------
// Constructor / Destructor
+
/**
- * \ingroup gdcmBinEntry
* \brief Constructor from a given gdcmBinEntry
- * @param in Pointer to existing dictionary entry
*/
-gdcmBinEntry::gdcmBinEntry() : gdcmDocEntry( ) {
-
+gdcmBinEntry::gdcmBinEntry() : gdcmValEntry() {
}
+/**
+ * \brief Canonical destructor.
+ */
+gdcmBinEntry::~gdcmBinEntry(){
+}
//-----------------------------------------------------------------------------
#include <iostream>
#include <stdio.h>
+#include "gdcmValEntry.h"
+
//-----------------------------------------------------------------------------
/**
* \ingroup gdcmBinEntry
public:
+ gdcmBinEntry(void);
+ ~gdcmBinEntry(void);
+
+
+ /// \brief Returns the area value of the current Dicom Header Entry
+ /// when it's not string-translatable (e.g : a LUT table)
+ inline void * GetVoidArea(void) { return voidArea; };
+
+ /// Sets the value (non string) of the current Dicom Header Entry
+ inline void SetVoidArea(void * area) { voidArea = area; };
+
protected:
private:
* \brief canonical Printer
*/
void gdcmDocEntry::Print(std::ostream & os) {
+
+// TODO : (no more chained list ...)
+
+/*
size_t o;
unsigned short int g, e;
char st[20];
}
s << std::endl;
os << s.str();
+
+ */
}
//-----------------------------------------------------------------------------
* \brief Copies all the attributes from an other DocEntry
*/
-void Copy (gdcmDocEntry* e) {
- this->entry = e->entry;
+void gdcmDocEntry::Copy (gdcmDocEntry* e) {
+ this->entry = e->entry;
this->UsableLength = e->UsableLength;
- this->ReadLength = e->ReadLength;
- this->ImplicitVR = e->ImplicitVR;
- this->Offset = e->Offset;
- this->printLevel = e->printLevel;
+ this->ReadLength = e->ReadLength;
+ this->ImplicitVR = e->ImplicitVR;
+ this->Offset = e->Offset;
+ this->printLevel = e->printLevel;
this->SQDepthLevel = e->SQDepthLevel;
}
/// Dictionnary, of the current Dicom Header Entry
inline std::string GetVR(void) { return entry->GetVR(); };
- /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted into a
- /// 'string', if it's stored as an integer in the Dicom Header of the
- /// current Dicom Header Entry
- inline std::string GetValue(void) { return value; };
-
- /// \brief Returns the area value of the current Dicom Header Entry
- /// when it's not string-translatable (e.g : a LUT table)
- inline void * GetVoidArea(void) { return voidArea; };
-
/// \brief Returns offset (since the beginning of the file, including
/// the File Pramble, if any) of the value of the current Dicom HeaderEntry
/// \warning offset of the *value*, not of the Dicom Header Entry
/// \brief Sets only 'Usable Length' (*not* 'Read Length') of the current
/// Dicom Header Entry
inline void SetUsableLength(guint32 l) { UsableLength = l; };
-
- /// Sets the value (string) of the current Dicom Header Entry
- inline void SetValue(std::string val) { value = val; };
-
- /// Sets the value (non string) of the current Dicom Header Entry
- inline void SetVoidArea(void * area) { voidArea = area; };
/// \brief Sets the offset of the Dicom Element
/// \warning use with caution !
//-----------------------------------------------------------------------------
//
#include "gdcmDocEntrySet.h"
-#include "gdcmTS.h"
-#include "gdcmGlobal.h"
-#include "gdcmUtil.h"
#include <iomanip> // for std::ios::left, ...
//-----------------------------------------------------------------------------
-class GDCM_EXPORT gdcmDocEntrySet
-{
+class GDCM_EXPORT gdcmDocEntrySet {
+
public:
-void gdcmElementSet::FindDocEntryLength (gdcmDocEntry *Entry);
+
+ gdcmDocEntrySet(void);
+ ~gdcmDocEntrySet(void);
+
+ void gdcmElementSet::FindDocEntryLength (gdcmDocEntry *Entry);
protected:
private:
-bool gdcmDocEntrySet::LoadDocEntriesSet(bool exception_on_error = false)
+ bool gdcmDocEntrySet::LoadDocEntriesSet(bool exception_on_error = false)
throw(gdcmFormatError);
};
#include <iostream>
#include <stdio.h>
+#include "gdcmDocEntry.h"
//-----------------------------------------------------------------------------
/**
* \ingroup gdcmBinEntry
* (when successfuly parsed against a given Dicom dictionary)
* This one contains a 'non string' value
*/
-class GDCM_EXPORT gdcmDocEntry : public gdcmValEntry {
+class GDCM_EXPORT gdcmValEntry : public gdcmDocEntry {
public:
+
+ gdcmValEntry(void);
+ ~gdcmValEntry(void);
+
+ /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted into a
+ /// 'string', if it's stored as an integer in the Dicom Header of the
+ /// current Dicom Header Entry
+ inline std::string GetValue(void) { return value; };
+
+ /// Sets the value (string) of the current Dicom Header Entry
+ inline void SetValue(std::string val) { value = val; };
+
protected:
private:
-
+};
//-----------------------------------------------------------------------------
#endif