www.pudn.com > 1012.zip > BaseNode.cpp
// BaseNode.cpp: implementation of the CBaseNode class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "SCAD.h" #include "BaseNode.h" #include#ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CBaseNode::CBaseNode() { //char * cName = "basenode"; //strcpy(NodeName, cName); Type = BASENODE; m_cColor.SetColor(1.0,1.0,1.0,1.0); m_pParentNode = NULL; } CBaseNode::~CBaseNode() { } int CBaseNode::GetType() { return Type; } // 设置当前节点的名字 void CBaseNode::SetName(char *name) { //strcpy(NodeName, name); } // 获取当前节点的名字 void CBaseNode::GetName(char *name) { //strcpy(name, NodeName); } CBaseNode *CBaseNode::Search(char *name) { if(strcmp(name, NodeName)==0) return this; else return NULL; } void CBaseNode::Draw() { }