# DBCConf **Repository Path**: codessheng/DBCConf ## Basic Information - **Project Name**: DBCConf - **Description**: 一种自定义的配置文件样式。模仿jsoncpp项目 - **Primary Language**: C++ - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-09-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DBCConf 一种自定义的配置文件格式。模仿jsoncpp项目 ## 文件格式 ``` deploy = 1 dbnum = (10000000, 500000, 999) mod = 1 host = 127.0.0.1 user = root password = 1234 field_nums = 4 mod = 0 name = uid type = unsigned size = 4 name = type type = unsigned size = 1 name = drawdays type = unsigned size = 1 name = drawts type = unsigned size = 4
``` <> 包裹住一个对象,'='用以连接key和value,值的类型可以是整型、字符串以及数组。数组暂时只支持整型和字符串,组内元素用','分割。 PS:暂时要求,所有的键与值,必须在同一行。 ## 如何编译? make ## 测试 ./dbcconfigtest test.conf