Ignore:
Timestamp:
2000-09-12T13:36:44+12:00 (24 years ago)
Author:
sjboddie
Message:

Got compiling on VC++ 4.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/configFile.h

    r1475 r1539  
    22#define _CONFIG_H_
    33#include <string>
     4
     5// use the standard namespace
     6#if !defined (GSDL_NAMESPACE_BROKEN)
     7#if defined(GSDL_USE_OBJECTSPACE)
     8using namespace ospace::std;
     9#else
    410using namespace std;
     11#endif
     12#endif
    513
    614#include <stdio.h>
     
    1018
    1119typedef struct
    12 { char  label[32];
    13   char  data[64];
     20{
     21  char label[32];
     22  char data[64];
    1423} config_item;
    1524
    1625typedef struct
    17 { int         count;
     26{
     27  int count;
    1828  config_item item[1];
    1929} config_str;
     
    2131class configureFile
    2232{
    23     private:
    24         config_str *    configstr;
    25     bool valid;
     33private:
     34  config_str *configstr;
     35  bool valid;
    2636
    27     bool scan(char *buffer, unsigned int &pos, unsigned int length);
    28     public:
    29     configureFile(char *name);
    30     char *filename(char *base);
    31     bool put(char *label, char *value);
    32     bool concat(char *label, char *buffer, unsigned int &space);
    33     string getString(string label);
    34     void get(char *label, char **to);
    35     bool store(char *);
    36     bool isValid();
    37     ~configureFile();
     37  bool scan(char *buffer, unsigned int &pos, unsigned int length);
     38public:
     39  configureFile(char *name);
     40  char *filename(char *base);
     41  bool put(char *label, char *value);
     42  bool concat(char *label, char *buffer, unsigned int &space);
     43  string getString(string label);
     44  void get(char *label, char **to);
     45  bool store(char *);
     46  bool isValid();
     47  ~configureFile();
    3848};
    3949#endif
Note: See TracChangeset for help on using the changeset viewer.