⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 actionfactory.cpp

📁 学校社团管理系统Visual C
💻 CPP
字号:
/**
 * <p> Title: 建立社团,学生,活动对象的基类实现 </p>
 * <p> Description:factory 设计模式 </p>
 * <p> Copyright: Copyright (c) 2005-12-17 </p>
 * <p> Company: bjut </p>
 * @author gaok
 * @version 1.0 
 * @Created on 2005-12-17
 */
#include "stdafx.h"
#include "STMis.h"
#include "ActionFactory.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
/*
 * 构造函数
 */
ActionFactory::ActionFactory()
{

}
/*
 * 生成一个社团处理类
 * @param vSt Variable指针
 * @return Action STAction对象
 */
Action *ActionFactory::creatSTAction(Variable* vSt) {
	return new STAction(vSt);
}
/*
 * 生成一个活动通知处理类
 * @param vSt Variable指针
 * @return Action NoticeAction对象
 */
Action *ActionFactory::creatNoticeAction(Variable* vSt) {
	return new NoticeAction(vSt);
}
/*
 * 生成一个学生处理类
 * @param vSt Variable指针
 * @return Action StudentAction对象
 */
Action *ActionFactory::creatStudentAction(Variable* vSt) {
	return new StudentAction(vSt);
}
/*
 * 析构函数
 */
ActionFactory::~ActionFactory()
{

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -