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 | /*{{{*/
|
---|
11 | #ifdef HAVE_CONFIG_H
|
---|
12 | #include <config.h>
|
---|
13 | #else
|
---|
14 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | /*}}}*/
|
---|
18 |
|
---|
19 | class ToolkitOptions {
|
---|
20 |
|
---|
21 | private:
|
---|
22 | static char* toolkitoptions;
|
---|
23 |
|
---|
24 | public:
|
---|
25 | static void Init(char* options);
|
---|
26 | static char* GetToolkitType(void);
|
---|
27 | static char* GetToolkitOptionValue(const char* option);
|
---|
28 | };
|
---|
29 |
|
---|
30 | char* TokenValue(char* tokenlist,const char* target);
|
---|
31 |
|
---|
32 | #endif /* _TOOLKIT_OPTIONS_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.