Changeset 1498 for trunk/gsinstaller/unInstall.h
- Timestamp:
- 2000-09-05T03:30:48+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/unInstall.h
r1475 r1498 13 13 static string uninstall_ALL = "all"; 14 14 15 typedef struct unInstallCommand 16 { string command; 17 stringArray parameters; 15 typedef class unInstallCommand 16 { public: 17 string command; 18 stringArray parameters; 19 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; }; 18 29 } unInstallCommand; 19 30 … … 24 35 class installManager 25 36 { private: 26 fstream logfile; 27 string currentModule; 28 public: 29 installManager() { }; 30 bool openLog(string filename, bool write); 31 void setModule(string moduleName); 37 fstream logfile; 38 string logfileName; 39 string currentModule; 40 unInstallCommandMap modules; 41 32 42 bool writeString(string str); 33 43 bool writeString(char *string); 34 44 bool writeSeparator(); 35 45 string readString(); 46 bool writeCommand(unInstallCommand &command); 36 47 string readCommand(stringArray ¶ms); 48 public: 49 installManager() { }; 50 bool openLog(string filename, bool write); 51 bool closeLog(); 52 bool reopenLog(); 53 void setModule(string moduleName); 54 bool storeCommand(unInstallCommand &command); 55 string popCommand(stringArray ¶ms); 56 bool isEmpty(); 37 57 ~installManager(); 38 58 };
Note:
See TracChangeset
for help on using the changeset viewer.