Last change
on this file since 15728 was 15728, checked in by Mathieu Morlighem, 12 years ago |
CHG: fixing some memory leaks + cosmetics
|
File size:
589 bytes
|
Rev | Line | |
---|
[14633] | 1 | /* \file ToolkitOptions.h
|
---|
| 2 | * \brief create a class with a static string of options, and static methods to access it
|
---|
| 3 | * This is a way of protecting access to the toolkit options, and to make it accessible everywhere
|
---|
| 4 | * in the code.
|
---|
| 5 | */
|
---|
| 6 |
|
---|
| 7 | #ifndef _TOOLKIT_OPTIONS_H
|
---|
| 8 | #define _TOOLKIT_OPTIONS_H
|
---|
| 9 |
|
---|
| 10 | class ToolkitOptions {
|
---|
| 11 |
|
---|
| 12 | private:
|
---|
| 13 | static char* toolkitoptions;
|
---|
| 14 |
|
---|
| 15 | public:
|
---|
| 16 | static void Init(char* options);
|
---|
| 17 | static char* GetToolkitType(void);
|
---|
[14688] | 18 | static char* GetToolkitOptionValue(const char* option);
|
---|
[14633] | 19 | };
|
---|
| 20 |
|
---|
[14635] | 21 | char* TokenValue(char* tokenlist,const char* target);
|
---|
| 22 |
|
---|
[14633] | 23 | #endif /* _TOOLKIT_OPTIONS_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.