|
Last change
on this file since 27429 was 27429, checked in by Mathieu Morlighem, 3 years ago |
|
BUG: fixing pointer still reachable detected by valgrind
|
|
File size:
700 bytes
|
| Line | |
|---|
| 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* toolkittype;
|
|---|
| 14 | static char* toolkitoptions;
|
|---|
| 15 |
|
|---|
| 16 | public:
|
|---|
| 17 | static void Init(const char* type_in,const char* options);
|
|---|
| 18 | static void Init(void);
|
|---|
| 19 | static void Delete(void);
|
|---|
| 20 | static char* GetToolkitType(void);
|
|---|
| 21 | static char* GetToolkitOptionValue(const char* option);
|
|---|
| 22 | };
|
|---|
| 23 |
|
|---|
| 24 | char* TokenValue(char* tokenlist,const char* target);
|
|---|
| 25 |
|
|---|
| 26 | #endif /* _TOOLKIT_OPTIONS_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.