Subversion Repositories svn1

Rev

Rev 176 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 176 Rev 199
Line 9... Line 9...
9
#include    "proto.h"
9
#include    "proto.h"
10
 
10
 
11
class QmConfig
11
class QmConfig
12
{
12
{
13
public:
13
public:
14
    QmConfig(const QString &cnfFile);
14
    //QmConfig(const QString &cnfFile);
15
    QmConfig(void){};
15
    QmConfig(void){}
16
    bool open_read_config( void );
16
    bool open_read_config( void );
17
    bool read_config( QFile &configFile  );
17
    bool read_config( QFile &configFile  );
18
    bool write_config( void );
18
    bool write_config( void );
19
    int lookup_class( const char *text);
19
    int lookup_class( const char *text);
20
    void load(const QString &cnfFile);
20
    void load(const QString &cnfFile);
-
 
21
    static const char *getAddendemFile(const QString &, bool create=false);
21
 
22
 
22
    QString fileName;
23
    QString fileName;
23
 
24
 
24
 
-
 
25
    // Exact copy of the original config
25
    // Exact copy of the original config
26
    char        event_name[MAX_EVENT_NAME + 1]; /* Name of the event */
26
    char        event_name[MAX_EVENT_NAME + 1]; /* Name of the event */
27
    char        leg_name[MAX_LEGS][MAX_LEG_NAME + 1];   /* Names of each leg */
27
    char        leg_name[MAX_LEGS][MAX_LEG_NAME + 1];   /* Names of each leg */
28
    ty_t_def    t_def[MAX_TMS_SPLIT];        /* Team defintion data */
28
    ty_t_def    t_def[MAX_TMS_SPLIT];        /* Team defintion data */
29
    short       num_legs;                    /* Number of legs in use */
29
    short       num_legs;                    /* Number of legs in use */