Program: gdcm
Module: $RCSfile: gdcmBase.h,v $
Language: C++
- Date: $Date: 2005/01/21 11:40:55 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-----------------------------------------------------------------------------
/**
* \brief Base class of all gdcm classes
- *
* Contains the Print related methods :
* - Print
* - SetPrintLevel / GetPrintLevel
Base( );
virtual ~Base();
- virtual void Print(std::ostream &os = std::cout, std::string const & indent = "" );
+ virtual void Print(std::ostream &os = std::cout,
+ std::string const & indent = "" );
/// \brief Sets the print level for the Dicom Header Elements
/// \note 0 for Light Print; 1 for 'medium' Print, 2 for Heavy
Program: gdcm
Module: $RCSfile: gdcmBinEntry.cxx,v $
Language: C++
- Date: $Date: 2005/01/28 15:10:56 $
- Version: $Revision: 1.58 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.59 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
}
}
-
//-----------------------------------------------------------------------------
// Print
/**
//-----------------------------------------------------------------------------
// Public
-/*
+/**
* \brief canonical Writer
* @param fp already open file pointer
* @param filetype type of the file (ACR, ImplicitVR, ExplicitVR, ...)
Program: gdcm
Module: $RCSfile: gdcmBinEntry.h,v $
Language: C++
- Date: $Date: 2005/01/28 15:10:56 $
- Version: $Revision: 1.34 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.35 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
~BinEntry();
void Print( std::ostream &os = std::cout, std::string const & indent = "" );
+
void WriteContent( std::ofstream *fp, FileType ft);
/// \brief Returns the area value of the current Dicom Entry
uint8_t *GetBinArea() { return BinArea; }
void SetBinArea( uint8_t *area, bool self = true );
+ /// \brief Sets SelfArea
void SetSelfArea(bool area) { SelfArea = area; };
+ /// \brief Returns SelfArea
bool IsSelfArea() { return SelfArea; };
private:
/// \brief memory area to hold 'non std::string' representable values
/// (ie : Lookup Tables, overlays, icons)
uint8_t *BinArea;
+ /// \brief Whether BinEntry has its own BinArea or not
bool SelfArea;
};
Program: gdcm
Module: $RCSfile: gdcmCommon.h,v $
Language: C++
- Date: $Date: 2005/01/28 00:02:15 $
- Version: $Revision: 1.58 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.59 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
GDCM_EXPORT extern const std::string GDCM_UNREAD;
/// \brief TagKey is made to hold an "universal" (as in URL, Universal
-/// Ressource Locator) key to a DocEntry i.e. a dicom tag.
+/// Ressource Locator) key to a DocEntry i.e. a dicom tag.
/// A dicom tag always has a group and an elem, but a set of tags
/// embeded in various (optionally nested) sequences and sharing
/// the same group and elem all share the same (group, elem)
/// a sequence, itself nested in the third item of a sequence is the
/// string e.g.
/// 0004|1220/2#0008|0082/0#0008|0090
+/// Probabely useless stuff.
typedef std::string TagKey;
typedef std::string TagName;
enum FileType {
Unknown = 0,
- ExplicitVR, // DicomDir is in this case
+ ExplicitVR, // DicomDir is in this case. Except when it's ImplicitVR !...
ImplicitVR,
ACR,
ACR_LIBIDO
DD_SERIE,
DD_IMAGE
};
+
} //namespace gdcm
//-----------------------------------------------------------------------------
#endif
Program: gdcm
Module: $RCSfile: gdcmContentEntry.cxx,v $
Language: C++
- Date: $Date: 2005/01/28 15:10:56 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
}
+//-----------------------------------------------------------------------------
+// Print
+
//-----------------------------------------------------------------------------
// Public
void ContentEntry::Copy(DocEntry *doc)
Program: gdcm
Module: $RCSfile: gdcmContentEntry.h,v $
Language: C++
- Date: $Date: 2005/01/28 15:10:56 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
virtual void WriteContent(std::ofstream *fp, FileType filetype) = 0;
// Accessors are protected, not to be invoked by end user
+
/// Sets the value (string) of the current Dicom entry
virtual void SetValue(std::string const &val) { Value = val; };
Program: gdcm
Module: $RCSfile: gdcmDebug.cxx,v $
Language: C++
- Date: $Date: 2005/01/27 11:55:57 $
- Version: $Revision: 1.18 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.19 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
static std::ofstream DebugFile;
+//-----------------------------------------------------------------------------
+// Constructor / Destructor
+
Debug::Debug()
{
if ( DebugFile.is_open() )
DebugFile.close();
}
+
//-----------------------------------------------------------------------------
+// Print
+
+
+//-----------------------------------------------------------------------------
+// Public
+
/**
* \brief Accessor
* @param flag Set the debug flag
}
/**
- * \brief Accessor
+ * \brief Set Accessor
* @param flag Set the debug flag to redirect to file
* Absolutely nothing is check. You have to pass in
* a correct filename
DebugFile.open( filename.c_str() );
}
+/**
+ * \brief Get Accessor
+ * @return Debug file
+ */
std::ofstream &Debug::GetDebugFile ()
{
return DebugFile;
}
+//-----------------------------------------------------------------------------
+// Protected
+
+//-----------------------------------------------------------------------------
+// Private
+
+//-----------------------------------------------------------------------------
} // end namespace gdcm
Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2005/01/28 15:10:56 $
- Version: $Revision: 1.48 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.49 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// we just *always* ignore spurious fffe|0000 tag !
return;
}
-
//
// ----------- Writes the common part
//
- binary_write( *fp, group); //group
- binary_write( *fp, el); //element
+ binary_write( *fp, group); //group
+ binary_write( *fp, el); //element
if ( filetype == ExplicitVR )
{
/**
* \brief Copies all the attributes from an other DocEntry
- * @param e entry to copy from
+ * @param doc entry to copy from
*/
-void DocEntry::Copy(DocEntry *e)
+void DocEntry::Copy(DocEntry *doc)
{
- Length = e->Length;
- ReadLength = e->ReadLength;
- ImplicitVR = e->ImplicitVR;
- Offset = e->Offset;
+ Length = doc->Length;
+ ReadLength = doc->ReadLength;
+ ImplicitVR = doc->ImplicitVR;
+ Offset = doc->Offset;
}
/**
{
return (GetGroup() == 0xfffe && GetElement() == 0xe00d);
}
+
/**
* \brief tells us if entry is the last one of a 'no length' Sequence
* (fffe,e0dd)
Program: gdcm
Module: $RCSfile: gdcmDocEntry.h,v $
Language: C++
- Date: $Date: 2005/01/28 15:10:56 $
- Version: $Revision: 1.42 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.43 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
uint32_t GetFullLength();
- virtual void Copy(DocEntry *doc);
+ virtual void Copy(DocEntry *e);
bool IsItemDelimitor();
bool IsSequenceDelimitor();
Program: gdcm
Module: $RCSfile: gdcmJPEGFragmentsInfo.h,v $
Language: C++
- Date: $Date: 2005/01/28 15:42:22 $
- Version: $Revision: 1.15 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.16 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief Utility class for gathering the informations of the collection
* of JPEG fragment[s] (see \ref JPEGFragment) when handling
* "Encapsulated JPEG Compressed Images".
- * The informations on each frame are obtained during the parsing
- * of a Document (refer to
- * \ref Document::ComputeJPEGFragmentInfo() ).
+ * The informations on each frame are obtained during the pixel parsing
+ * of a gdcm::File (refer to \ref File::ComputeJPEGFragmentInfo() ).
* They shall be used when (if necessary) decoding the fragments.
*
* This class is simply a stl list<> of \ref JPEGFragment.
Program: gdcm
Module: $RCSfile: gdcmRLEFramesInfo.h,v $
Language: C++
- Date: $Date: 2005/01/28 15:42:22 $
- Version: $Revision: 1.13 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.14 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* Note: a classical image can be considered as the degenerated case
* of a multiframe image. In this case the collection is limited
* to a single individual frame.
- * The informations on each frame are obtained during the parsing
- * of a Document (refer to
- * \ref Document::ComputeRLEInfo() ).
+ * The informations on each frame are obtained during the pixel parsing
+ * of a gdcm::File (refer to
+ * \ref File::ComputeRLEInfo() ).
* They shall be used when (if necessary) decoding the frames.
*
* This class is simply a stl list<> of \ref RLEFrame.
Program: gdcm
Module: $RCSfile: gdcmSQItem.cxx,v $
Language: C++
- Date: $Date: 2005/01/26 09:49:54 $
- Version: $Revision: 1.61 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.62 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* @param entryToRemove Entry to remove AND delete.
* @return true if the entry was found and removed; false otherwise
*/
-bool SQItem::RemoveEntry( DocEntry* entryToRemove)
+bool SQItem::RemoveEntry( DocEntry *entryToRemove)
{
for(ListDocEntry::iterator it = DocEntries.begin();
it != DocEntries.end();
* @param entryToRemove Entry to remove.
* @return true if the entry was found and removed; false otherwise
*/
-bool SQItem::RemoveEntryNoDestroy(DocEntry* entryToRemove)
+bool SQItem::RemoveEntryNoDestroy(DocEntry *entryToRemove)
{
for(ListDocEntry::iterator it = DocEntries.begin();
it != DocEntries.end();
* \brief Get the first Dicom entry while visiting the SQItem
* \return The first DocEntry if found, otherwhise 0
*/
-DocEntry * SQItem::GetFirstEntry()
+DocEntry *SQItem::GetFirstEntry()
{
ItDocEntries = DocEntries.begin();
if (ItDocEntries != DocEntries.end())
Program: gdcm
Module: $RCSfile: gdcmValEntry.cxx,v $
Language: C++
- Date: $Date: 2005/01/25 16:32:45 $
- Version: $Revision: 1.52 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.53 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copy(e);
}
-
/**
* \brief Canonical destructor.
*/
* \brief Sets the std::string representable' value of a ValEntry
* @param val value to set
*/
-
void ValEntry::SetValue(std::string const &val)
{
// Integers have a special treatement for their length: