#ifndef __profile_H #define __profile_H //---------------------------------- #include //---------------------------------- // (C)数理設計研究所 1997/8/1 // Inifileは以下の条件で2種類の扱いがある // 内容に ":\" があればフルパスとして扱う // 内容に ":\" が無ければカレントDIRのファイル名として扱う // プログラムがC:から起動し D:FIle.ini とあればそのままのパスとして扱う class Profile { public: char IniFile[MAXPATH]; Profile(); //領域を確保するだけ Profile(char *IniFileName); //ファイル名 //ファイルがちゃんとあれば0 存在しなければ-1 int ProfileOpen(char *IniFileName); char *GetString(char *section, char *key, char *defstr, char *buf, int size); char *SetString(char *section, char *key, char *buf); int GetInt(char *section, char *key, int defnum); void GetInt(char *section, char *key, int defnum, int &d); int SetInt(char *section, char *key, int num); double GetDbl(char *section, char *key, double defnum); void GetDbl(char *section, char *key, double defnum, double &d); double SetDbl(char *section, char *key, double num); }; //---------------------------------- //---------------------------------- #endif //__profile_H