Program: gdcm
Module: $RCSfile: gdcmDicomDirElement.cxx,v $
Language: C++
- Date: $Date: 2005/06/24 10:55:58 $
- Version: $Revision: 1.38 $
+ Date: $Date: 2005/10/26 08:04:15 $
+ Version: $Revision: 1.41 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
char buff[1024];
std::string strType;
- Element elem;
+ DicomElement elem;
DicomDirType type;
while (!from.eof())
* @param type Element type (DD_PATIENT, DD_STUDY, DD_SERIE, DD_IMAGE)
* @param elem elem
*/
-bool DicomDirElement::AddEntry(DicomDirType type, Element const &elem)
+bool DicomDirElement::AddEntry(DicomDirType type, DicomElement const &elem)
{
switch( type )
{
void DicomDirElement::AddDicomDirElement(DicomDirType type,
uint16_t group, uint16_t elem)
{
- Element el;
+ DicomElement el;
el.Group = group;
el.Elem = elem;
el.Value = "";
AddEntry(type, el);
}
+
//-----------------------------------------------------------------------------
// Protected
* \brief Print all
* @param os The output stream to be written to.
*/
-void DicomDirElement::Print(std::ostream &os)
+void DicomDirElement::Print(std::ostream &os,std::string const &)
{
std::ostringstream s;
- std::list<Element>::iterator it;
+ std::list<DicomElement>::iterator it;
//char greltag[10]; //group element tag
- std::string greltag;
+ TagKey greltag;
s << "Meta Elements :"<<std::endl;
for (it = DicomDirMetaList.begin(); it != DicomDirMetaList.end(); ++it)