文件名称:CPPinfilecpp
介绍说明--下载内容均来自于网络,请自行研究使用
两个C++读配置文件类的代码,文件名:CIniFile类实现文件,文件名:CIniFile类定义文件主要功能:可以读取.修改变量数值,可以设置新的组,新的变量。用户接口说明:在成员函数SetVarStr和SetVarInt函数中,当iType等于零,则如果用户制定的参数在ini文件中不存在,则就写入新的变量.当iType不等于零,则如果用户制定的参数在ini文件中不存在,就不写入新的变量,而是直接返回FALSE 在原来文件的SECTION中,没有相应的变量需要添加而且,这种情况下,下边还有别的section,处理流程是这样的,首先把当前的数值依次向后移动,然后在当前位置加入新出现的数值。-Two C++ code for the class to read the configuration file, the file name: CIniFile class implementation file, the file name: CIniFile class definition file Main functions: modify variable values can be read, you can set up a new group, the new variable. User Interface Descr iption: In member function SetVarStr and SetVarInt function, when iType zero, if the parameters established by the user in the ini file does not exist, the new variable is written when iType not equal to zero, if the argument developed in the user. ini file does not exist, do not write the new variables, but directly return FALSE in SECTION original document, there is no need to add the appropriate variables and, in this case, there are other lower section, the process flow is Thus, the first value of the current is sequentially moved rearwardly, then a new value added to the current position appears.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C++读配置文件类\CIniFile.cpp
...............\CIniFile.h
...............\配置文件样例\parameters.ini
...............\配置文件样例
C++读配置文件类