home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / DIVERSEN / FI21 / QINIMGR.H_ / QINIMGR
Text File  |  1995-02-01  |  1KB  |  50 lines

  1. #define __QINIMGR_H
  2.  
  3.  
  4. #ifndef __FPATH_H
  5. #include "fpath.h"
  6. #endif
  7.  
  8.  
  9.  
  10. /* quick ini entry manager */
  11. class qinimgr
  12. {
  13.    static char b[256];                               /* store string just read */
  14.  
  15.    public:
  16.  
  17.    stcpath file;
  18.  
  19.    void setfile(abspath &filex)
  20.    {
  21.       file.set(filex);
  22.    }
  23.  
  24.    void wint(char sect[], char entry[], int  value);
  25.    void wstr(char sect[], char entry[], char value[]);
  26.    void wlng(char sect[], char entry[], LONG value);
  27.    void wfmt(char sect[], char entry[], char fmt[], ...);
  28.    void wint(char sect[], int  entry,   int  value);
  29.    void wstr(char sect[], int  entry,   char value[]);
  30.    void wlng(char sect[], int  entry,   LONG value);
  31.    void wfmt(char sect[], int  entry,   char fmt[], ...);
  32.  
  33.    int rint  (char sect[], char entry[], int def = 0);
  34.    int rint  (char sect[], int  entry,   int def = 0);
  35.    void rstr (char sect[], char entry[], char value[], char def[] = "");
  36.    void rstr (char sect[], int  entry,   char value[], char def[] = "");
  37.    LONG rlng (char sect[], char entry[], LONG def = 0L);
  38.    LONG rlng (char sect[], int  entry,   LONG def = 0L);
  39.    char *rstr(char sect[], char entry[]);
  40.    char *rstr(char sect[], int  entry);
  41.  
  42.    void test()
  43.    {
  44.       char *s = file.getbuf();
  45.       s++;
  46.       s--;
  47.    }
  48. };
  49.  
  50.