Subversion Repositories tpanel

Rev

Rev 257 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 257 Rev 303
Line 19... Line 19...
19
#define __TCONFIG_H__
19
#define __TCONFIG_H__
20
 
20
 
21
#include <string>
21
#include <string>
22
#include <vector>
22
#include <vector>
23
#include <algorithm>
23
#include <algorithm>
24
#include "terror.h"
-
 
25
 
24
 
26
#define V_MAJOR     1
25
#define V_MAJOR     1
27
#define V_MINOR     3
26
#define V_MINOR     4
28
#define V_PATCH     3
27
#define V_PATCH     0
29
#define V_ADD       "b1"
28
#define V_ADD       "b1"
30
 
29
 
31
#ifndef V_SERIAL
30
#ifndef V_SERIAL
32
#define V_SERIAL    "20220601TP133B"
31
#define V_SERIAL    "20230323TP140B"
33
#endif
32
#endif
34
 
33
 
35
/**
34
/**
36
 * @def TPANEL_VERSION
35
 * @def TPANEL_VERSION
37
 * Defines the version of this application.
36
 * Defines the version of this application.
Line 41... Line 40...
41
#define VERSION_STRING() _GET_X_VERSION(V_MAJOR, V_MINOR, V_PATCH)
40
#define VERSION_STRING() _GET_X_VERSION(V_MAJOR, V_MINOR, V_PATCH)
42
#define _GET_X_VERSION(a, b, c) _GET_VERSION(a, b, c)
41
#define _GET_X_VERSION(a, b, c) _GET_VERSION(a, b, c)
43
//#define _GET_VERSION(a, b, c) ( #a "." #b "." #c )          // Release version
42
//#define _GET_VERSION(a, b, c) ( #a "." #b "." #c )          // Release version
44
#define _GET_VERSION(a, b, c) ( #a "." #b "." #c V_ADD)     // Beta version
43
#define _GET_VERSION(a, b, c) ( #a "." #b "." #c V_ADD)     // Beta version
45
 
44
 
-
 
45
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-
 
46
typedef unsigned short          ushort;         /* Sys V compatibility */
-
 
47
typedef unsigned int            uint;           /* Sys V compatibility */
-
 
48
#endif
-
 
49
 
46
/**
50
/**
47
 * @brief The TConfig class manages the configurations.
51
 * @brief The TConfig class manages the configurations.
48
 *
52
 *
49
 * The class contains methods to read a config file, parse it's content and
53
 * The class contains methods to read a config file, parse it's content and
50
 * hold the configuration options in the class. All public methods are static.
54
 * hold the configuration options in the class. All public methods are static.