You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlowPost/FITK_Kernel/FITKCore/FITKAbstractNDataObject.cpp

39 lines
842 B
C++

#include "FITKAbstractNDataObject.h"
namespace Core
{
//记录名称
FITKAbstractNDataObject::FITKAbstractNDataObject(const QString & name)
:m_dataObjName(name)
{
}
FITKAbstractNDataObject::~FITKAbstractNDataObject()
{
}
void FITKAbstractNDataObject::setDataObjectName(const QString & name)
{
//记录名称
m_dataObjName = name;
}
QString FITKAbstractNDataObject::getDataObjectName()
{
//返回名称
return m_dataObjName;
}
bool FITKAbstractNDataObject::copy(FITKAbstractDataObject* obj)
{
FITKAbstractNDataObject* nobj = dynamic_cast<FITKAbstractNDataObject*>(obj);
if (nobj == nullptr) return false;
m_dataObjName = nobj->getDataObjectName();
return FITKAbstractDataObject::copy(obj);
}
}