GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
INIReader.h File Reference

This class reads an INI file into easy-to-access name/value pairs. More...

#include <cstdint>
#include <map>
#include <string>

Go to the source code of this file.

Classes

class  INIReader
 Read an INI file into easy-to-access name/value pairs. (Note that I've gone for simplicity here rather than speed, but it should be pretty decent.). More...

Detailed Description

This class reads an INI file into easy-to-access name/value pairs.

Author
Brush Technologies, 2009.

inih (INI Not Invented Here) is a simple .INI file parser written in C++. It's only a couple of pages of code, and it was designed to be small and simple, so it's good for embedded systems. To use it, just give ini_parse() an INI file, and it will call a callback for every name=value pair parsed, giving you strings for the section, name, and value. It's done this way because it works well on low-memory embedded systems, but also because it makes for a KISS implementation.


inih and INIReader are released under the New BSD license:

Copyright (c) 2009, Brush Technology All rights reserved.

SPDX-License-Identifier: BSD-3-Clause

Go to the project home page for more info:

https://github.com/benhoyt/inih

Definition in file INIReader.h.