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.
|
|
|
|
#pragma once
|
|
|
|
|
#include "GlobalDefine.h"
|
|
|
|
|
#include "SmartPtr.h"
|
|
|
|
|
#include "ObjContainer.h"
|
|
|
|
|
#include "ObjBase.h"
|
|
|
|
|
|
|
|
|
|
class CCommandBase
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CCommandBase(void);
|
|
|
|
|
virtual ~CCommandBase(void);
|
|
|
|
|
virtual CString GetStr() = 0;
|
|
|
|
|
virtual void ExcuteExt(){};
|
|
|
|
|
virtual void UndoExt(){};
|
|
|
|
|
void Excute();
|
|
|
|
|
void Undo();
|
|
|
|
|
void AddOpObj(CObjBase *p);
|
|
|
|
|
void AddOpObj(Sptr<CObjBase>);
|
|
|
|
|
bool HasOpObj();
|
|
|
|
|
void SetOperatePar(SObjOperatePar par){m_Par = par;};
|
|
|
|
|
protected:
|
|
|
|
|
CObjContainer m_ObjContainer;//obj <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
SObjOperatePar m_Par;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
};
|
|
|
|
|
|