Last change
on this file since 1397 was 1397, checked in by cs025, 24 years ago |
Initial revision
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
991 bytes
|
Line | |
---|
1 | #ifndef _UNINSTALL_H_
|
---|
2 | #define _UNINSTALL_H_
|
---|
3 | #include <string>
|
---|
4 | #include <vector>
|
---|
5 | #include <map>
|
---|
6 | using namespace std;
|
---|
7 |
|
---|
8 | #include "stringArray.h"
|
---|
9 |
|
---|
10 | static string uninstall_ALL = "all";
|
---|
11 |
|
---|
12 | typedef struct unInstallCommand
|
---|
13 | { string command;
|
---|
14 | stringArray parameters;
|
---|
15 | } unInstallCommand;
|
---|
16 |
|
---|
17 | typedef vector<unInstallCommand> unInstallCommandList;
|
---|
18 |
|
---|
19 | typedef map<string, unInstallCommandList, less<string> > unInstallCommandMap;
|
---|
20 |
|
---|
21 | class unInstaller
|
---|
22 | { private:
|
---|
23 | unInstallCommandMap _map;
|
---|
24 | void unInstallGroup(unInstallCommandList &list);
|
---|
25 | bool readFile(string &fileName);
|
---|
26 | bool getLine(char *line, string &groupname);
|
---|
27 | public:
|
---|
28 | unInstaller(string &fileName);
|
---|
29 | unInstaller(const char *fileName);
|
---|
30 | void unInstall(string &listName);
|
---|
31 | bool record(string group, string cmd, string param);
|
---|
32 | bool record(string group, string cmd, int count, ...);
|
---|
33 | bool saveToFile(string filename);
|
---|
34 | bool execCommand(string &command, stringArray ¶ms);
|
---|
35 | };
|
---|
36 |
|
---|
37 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.