/*
******************************************************************
* NAME: config.cpp
* DESC:
* AUTHOR: Liu Dongguo(jealdean@outlook.com)
* VERSION: 1.0
* CREATE: 2015-04-13 01:06:28
* LUTIME: 2015-04-14 16:43:37
*
* Copyright (c) 2007 - 2015 Abodu.com, Inc. All Rights Reserved
*
*****************************************************************
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "config.h"
#define MAX_LINE_LEN 1024
//for read ini file
#define chCOMMENT1 ';'
#define chCOMMENT2 '#'
#define chSECT_START '['
#define chSPLITER '='
#define chWHITESPACE ' '
#define strFmtREADLINE "\n%[^\n]"
#include <map>
#include <string>
using std::map;
using std::string;
static map<string,string> g_ppmap;
static bool g_bLoad=
类似于INI格式的配置文件的加载及解析
最新推荐文章于 2025-02-05 20:32:53 发布