AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIUndoTransaction.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIUndoTransaction_H_
4 #define _APIUndoTransaction_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
10  class Document;
19  {
21  public:
26  void SetName (const String& strName) ;
31  String GetName () const;
35  bool IsStarted () const;
39  void Start () ;
43  int Commit () ;
47  void Abort () ;
52  void SetUndoable (bool bEnable) ;
53  };//UndoTransaction;
54 }}//API
55 
56 #endif //_APIUndoTransaction_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
Undo/redo transaction.
Definition: APIUndoTransaction.h:18
std::string String
Definition: APIString.h:10
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10