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.
AppFlow/FITK_Kernel/FITKCore/FITKAbstractObject.cpp

34 lines
731 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#include "FITKAbstractObjectContainer.hpp"
#include "FITKAbstractObject.hpp"
/**
* ~FITKAbstractObjectPrivate()
* 析构函数,用于清理资源。
* 此函数不接受参数,也不返回任何值。
*/
Core::FITKAbstractObjectPrivate::~FITKAbstractObjectPrivate()
{
// 遍历容器中的所有对象调用它们的ObjectDestoried函数然后清空容器
{
for (FITKAbstractObjectContainerPrivate* c : _containers)
c->ObjectDestoried();
_containers.clear();
}
}
Core::FITKAbstractObject::~FITKAbstractObject()
{
}
bool Core::FITKAbstractObject::isEnable()
{
return _objEnable;
}
void Core::FITKAbstractObject::enable(bool en /*= true*/)
{
_objEnable = en;
}