Awesome INI Loader Code
Simple, lightweight, add to any C++ project INI parser!
Brought to you by:
ajm113
File | Date | Author | Commit |
---|---|---|---|
ReadMe.txt | 2014-10-03 |
![]() |
[889a46] AWI_MAX_VALUE_NAME_LENGTH was changed to AWI_MA... |
awesome_ini.cpp | 2014-10-03 |
![]() |
[889a46] AWI_MAX_VALUE_NAME_LENGTH was changed to AWI_MA... |
awesome_ini.h | 2014-10-03 |
![]() |
[889a46] AWI_MAX_VALUE_NAME_LENGTH was changed to AWI_MA... |
test.ini | 2014-09-28 |
![]() |
[a9d30b] Added new code. |
======================================================================== LIBRARY APPLICATION : awesome_ini_loader Project Overview ======================================================================== I, Andrew McRobb have created this "awesome" library for you! It's simple and easy to use! Example code: #include "awesome_ini.h" awesome_ini* myIni = new awesome_ini("config.ini"); //If any errors happen, get the error code and line number it happened! AWESOME_ERROR_CODES r = myIni->getError(); size_t l = myIni->getErrorLine(); if (r == AWESOME_ERROR_NONE) { printf("Loaded ini!\n"); } else { printf("Failed! %i %i\n", r, l); } char value[AWI_MAX_VALUE_LENGTH]; AWESOME_INI_KEY_TYPE t = myIni->getKey(value, "test", "doom"); //Print the resulting value... printf("%i - %s\n", t, value); ///////////////////////////////////////////////////////////////////////////// F.A.Q Are the keywords (keys, group names) case sensitive? No. Can I use this for my commercial project? Yes. Please credit me somewhere if possible;) But dont use this software or my name as a means to promote or advertise your product. (Please refer to the LICENSE) Do you have a personal webpage? No, not at this time. How can I contact you? andrewmcrobb@gmail.com Can I make changes to the code for my own use? Yes. (Please refer to the LICENSE) I dont like how the code is written, can I help? Of course! Contact me and fork the project! I love to see my projects become a thing! How can I repay you? Send me ALL the energy drinks. ///////////////////////////////////////////////////////////////////////////// LICENSE: AUTHOR: Andrew McRobb DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO. ///////////////////////////////////////////////////////////////////////////// Other notes: If you need assistance, I'm more then happy to help anyone when I get a chance. Please email me at andrewmcrobb@gmail.com /////////////////////////////////////////////////////////////////////////////