The code bellow defined CreateFile and CopyFile two classes, use Command patten and Composite patten log requests, and support undoable operations.
下面的例子定义了 创建文件和拷贝文件两个类,使用命令模式和组合模式记录日志,并实现逆操作。
The code bellow defined CreateFile and CopyFile two classes, use Command patten and Composite patten log requests, and support undoable operations.
下面的例子定义了 创建文件和拷贝文件两个类,使用命令模式和组合模式记录日志,并实现逆操作。
应用推荐