GithubHelp home page GithubHelp logo

wyrover / cpp-feather-ini-parser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from c-ridgway/cpp-feather-ini-parser

0.0 1.0 0.0 188 KB

Simple like your girlfriend, fast, lightweight, header only, portable INI parser for ANSI C++.

License: MIT License

C++ 100.00%

cpp-feather-ini-parser's Introduction

feather-ini-parser

Simple like your girlfriend, fast, lightweight, header, portable INI parser for ANSI C++.

Why use feather-ini-parser? It's a fast, intuitive, uses C++, supports native data types, wide char support (enable), converting to data types simply by setting a default value or providing the type as a template parameter.

##Methods

Statement Return Type
ini(filename, doParse) constructor
ini(data, dataSize, doParse) constructor
ini.parse() bool
ini.merge(other INI, retainValues) void
ini.create(section) bool
ini.select(section) bool
ini.set(key, value) bool
ini.get(key, dvalue = value_t()) dvalue_t
ini.save(filename = "") bool
ini.clear() bool
ini[section][key] value_t&
ini[section] keys_t&

##Example

#include <iostream>
#include "INI.h"

using namespace std;

...

typedef INI<> ini_t;
//or
//typedef INI<section_t, key_t, value_t> ini_t;

ini_t ini("filename.ini", true);
ini.create("section1"); //Create and select section1
ini.set("key", "value");
cout << ini.get("keynumeric", -1) << endl;
ini["section2"]["key"] = "value";
ini.save();

##More Please see the example .cpp file and Code::Blocks .cbp project for a compilable GCC and VSC++ example. Additionally includes enabling wide char support and iterating through contents.

cpp-feather-ini-parser's People

Contributors

turbine1991 avatar

Watchers

wyrover avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.