From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_command_8cpp_source.html | 169 +++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 Doc/doxygen/html/_command_8cpp_source.html (limited to 'Doc/doxygen/html/_command_8cpp_source.html') diff --git a/Doc/doxygen/html/_command_8cpp_source.html b/Doc/doxygen/html/_command_8cpp_source.html new file mode 100644 index 0000000..6ecfa2e --- /dev/null +++ b/Doc/doxygen/html/_command_8cpp_source.html @@ -0,0 +1,169 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Magic2/Command.cpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Command.cpp
+
+
+Go to the documentation of this file.
1 /* Project Magic 2.0
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2005. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: Magic.exe
+
6  FILE: Command.cpp
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Base class (interface) for command pattern. A
+
13  command encapsulates a single editing operation
+
14  that may be performed on a document. Each command
+
15  may be done or undone multiple times. The specialized
+
16  implementations for each type of operation are re-
+
17  sponsible for providing a means to return the model
+
18  to the prior state.
+
19 */
+
20 
+
21 #include "stdafx.h"
+
22 #include "Command.h"
+
23 
+
24 // +--------------------------------------------------------------------+
+
25 
+
26 void Print(const char* msg, ...);
+
27 
+
28 // +--------------------------------------------------------------------+
+
29 
+
30 Command::Command(const char* n, MagicDoc* d)
+
31  : name(n), document(d)
+
32 {
+
33 }
+
34 
+ +
36 {
+
37  document = 0;
+
38 }
+
39 
+
40 // +--------------------------------------------------------------------+
+
41 
+
42 void
+ +
44 {
+
45  Print("WARNING: Command::Do() called for '%s'\n", name.data());
+
46 }
+
47 
+
48 void
+ +
50 {
+
51  Print("WARNING: Command::Undo() called for '%s'\n", name.data());
+
52 }
+
+
+ + + + -- cgit v1.1