//类模板
class classname
{
//构造函数
classname()
{
}
//析构函数
~classname()
{
//停止业务逻辑操作
bl_stop();
//释放内存
release_memory();
}
//初始化业务逻辑·
bool bl_init(...)
{
//TODO add code here
return 1;
}
//业务逻辑操作
bool bl_operate(...)
{
//TODO add code here
return 1;
}
//停止业务逻辑操作
bool bl_stop()
{
//TODO add code here
return 1;
}
//释放内存
bool release_memory()
{
//TODO add code here
return 1;
}
};