Changeset 1536 for trunk/gsinstaller/unInstall.h
- Timestamp:
- 2000-09-11T17:29:32+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/unInstall.h
r1525 r1536 7 7 8 8 #include <stdio.h> 9 10 #if defined (GSDL_USE_IOS_H) 9 11 #include <fstream.h> 12 #else 13 #include <fstream> 14 #endif 10 15 11 16 #include "stringArray.h" … … 14 19 15 20 typedef class unInstallCommand 16 { public: 17 string command; 18 stringArray parameters; 21 { 22 public: 23 string command; 24 stringArray parameters; 19 25 20 unInstallCommand() { }; 21 unInstallCommand(string commandname) { this->command = commandname; }; 22 unInstallCommand(string commandname, stringArray params) 23 { this->command = commandname; 24 this->parameters = params; 25 }; 26 void addParameter(string parameter) { this->parameters.add(parameter); }; 27 string commandName() { return this->command; }; 28 stringArray ¶meterList() { return this->parameters; }; 26 unInstallCommand() { }; 27 unInstallCommand(string commandname) { this->command = commandname; }; 28 unInstallCommand(string commandname, stringArray params) 29 { 30 this->command = commandname; 31 this->parameters = params; 32 }; 33 void addParameter(string parameter) { this->parameters.add(parameter); }; 34 string commandName() { return this->command; }; 35 stringArray ¶meterList() { return this->parameters; }; 29 36 } unInstallCommand; 30 37 … … 34 41 35 42 class installManager 36 { private: 37 fstream logfile; 38 string logfileName; 39 string currentModule; 40 unInstallCommandMap modules; 43 { 44 private: 45 fstream logfile; 46 string logfileName; 47 string currentModule; 48 unInstallCommandMap modules; 41 49 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 50 bool writeString(string str); 51 bool writeString(char *string); 52 bool writeSeparator(); 53 string readString(); 54 bool writeCommand(unInstallCommand &command); 55 string readCommand(stringArray ¶ms); 56 public: 57 installManager() { }; 58 bool openLog(string filename, bool write); 59 bool closeLog(); 60 bool reopenLog(); 61 void setModule(string moduleName); 62 bool storeCommand(unInstallCommand &command); 63 string popCommand(stringArray ¶ms); 64 bool isEmpty(); 65 ~installManager(); 58 66 }; 59 67 60 68 class installAgent 61 { protected: 62 installManager *manager; 63 public: 64 installAgent(installManager &useManager) { this->manager = &useManager; }; 65 virtual bool undoAction(string actionName, stringArray ¶ms) { return false; }; 66 // bool undo(string actionName); 69 { 70 protected: 71 installManager *manager; 72 public: 73 installAgent(installManager &useManager) { this->manager = &useManager; }; 74 virtual bool undoAction(string actionName, stringArray ¶ms) { return false; }; 75 // bool undo(string actionName); 67 76 }; 68 77
Note:
See TracChangeset
for help on using the changeset viewer.