gdcmcontententry.cxx
来自「DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.」· CXX 代码 · 共 83 行
CXX
83 行
/*=========================================================================
Program: gdcm
Module: $RCSfile: gdcmContentEntry.cxx,v $
Language: C++
Date: $Date: 2006-02-18 12:36:38 $
Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "gdcmContentEntry.h"
#include "gdcmVR.h"
#include "gdcmTS.h"
#include "gdcmGlobal.h"
#include "gdcmUtil.h"
#include "gdcmDebug.h"
#include <fstream>
namespace gdcm
{
//-----------------------------------------------------------------------------
// Constructor / Destructor
/**
* \brief Constructor for a given DictEntry
* @param e Pointer to existing dictionary entry
*/
ContentEntry::ContentEntry(DictEntry *e)
: DocEntry(e)
{
Value = GDCM_UNFOUND;
}
/**
* \brief Constructor for a given DocEntry
* @param e Pointer to existing Doc entry
*/
ContentEntry::ContentEntry(DocEntry *e)
: DocEntry(e->GetDictEntry())
{
Copy(e);
}
/**
* \brief Canonical destructor.
*/
ContentEntry::~ContentEntry ()
{
}
//-----------------------------------------------------------------------------
// Print
//-----------------------------------------------------------------------------
// Public
void ContentEntry::Copy(DocEntry *doc)
{
DocEntry::Copy(doc);
ContentEntry *entry = dynamic_cast<ContentEntry *>(doc);
if ( entry )
Value = entry->Value;
}
//-----------------------------------------------------------------------------
// Protected
//-----------------------------------------------------------------------------
// Private
//-----------------------------------------------------------------------------
} // end namespace gdcm
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?