Iniparse parsing class

Source: Internet
Author: User
Description

iniParseThis class is a ParsingINI FileIts functions are the same as those of getprivateprofilestring in windows, allowing you to conveniently save and read configurations.

Of course, it is not only the getprivateprofilestring function, it contains the complete function set in windows.

iniParseThis effectively solves the problem of frequent hard disk reading and cross-platform reading using Windows APIs.MacAndWindowsThe compilation is successful, and its functions are also tested successfully.

Website

My personal blog: http://www.sollyu.com/ini-parser-class

Open Source Code address: https://git.oschina.net/sollyu/IniParser.git

Code

Here the simple paste code, the complete code can be referred to: http://git.oschina.net/sollyu/IniParser/blob/master/IniParserDemo/main.cpp

Void savetest (iniparser * iniprase) {struct_test struct_test_0; struct_test_0.setname ("personal blog"); struct ("http://www.sollyu.com/ini-parser-class"); struct_test struct_test_1; struct_test_1.setname ("Open Source "); struct_test_1.setlink ("https://git.oschina.net/sollyu/IniParser.git"); STD: cout <sizeof (struct_test) <STD: Endl; iniprase-> setstruct ("section_0", "Chinese", & struct_test_0, sizeof (struct_test); iniprase-> setstruct ("section_1", "English", & struct_test_1, sizeof (struct_test); iniprase-> Save ();}
Update
  • August 07, 2014
    • Code first published

Reprinted Please note: sollyu blog» iniparse parsing class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.