// MyTreeData.cpp: implementation of the CMyTreeData class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "dicommwl.h" #include "MyTreeData.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CMyTreeData::CMyTreeData() { m_strName = ""; m_strValue = ""; m_pDS = NULL; m_pElement = NULL; m_nListIndex = -1; m_pDicomIOD = NULL; m_nCount = 0; } CMyTreeData::~CMyTreeData() { if (m_pDS) { delete m_pDS; m_pDS = NULL; } } void CMyTreeData::SetDS(LDicomDS *pDS) { if (pDS == NULL) return; if (m_pDS) { delete m_pDS; m_pDS = NULL; } m_pDS = new LMyDicomDS(); if (m_pDS) { m_pDS->CopyDS(NULL, pDS, NULL); } }