config file parser

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
Armen138
Posts: 298
Joined: Mon Feb 23, 2004 3:38 am

config file parser

Post by Armen138 »

just a little piece of code i want to share with the world:
a simple config file parser. if an xml parser is just too heavy for whatever you are doing, this
might be a good alternative. it parses files with the following layout:

Code: Select all

<!-- comment
[section1]
option=value
[/section1]
the source code is here: http://members.lycos.nl/bmbstk/textparse.tar.gz
and the documentation is here: http://members.lycos.nl/bmbstk/docs/classTextParse.html

i'll probably add some more features later...
if you're looking for me, start looking on irc, i'm probably there.
Guest

Post by Guest »

looks good :D
Armen138
Posts: 298
Joined: Mon Feb 23, 2004 3:38 am

Post by Armen138 »

i updated the textparser a little, changes:

split the parser in 2 classes, TextParse is now completely independent of Irrlicht or nx,
and IrrParse contains all the irrlicht-specific return types.

i fixed some bugs that turned up on windows systems... i dont usually use windows,
so i hadnt tested it :S

anyways, the updated docs are at http://members.lycos.nl/bmbstk/docs/hierarchy.html
and the updated sourcecode is at http://members.lycos.nl/bmbstk/textparser_240505.tar.gz
if you're looking for me, start looking on irc, i'm probably there.
TheRLG
Posts: 372
Joined: Thu Oct 07, 2004 11:20 pm

Post by TheRLG »

schaweet! thanks armen, told u on messenger, but yeah this thing makes stuff a heck of a lot easier! i had to copy ur 2dposition code to make some 2ddimension code, but yeah, this thing rocks! very useful
8)
Joe_Oliveri
Posts: 448
Joined: Tue Oct 05, 2004 3:24 am
Location: Boston, MA

Post by Joe_Oliveri »

Wow! very nice. :D Thank you. I was looking for this! :D
Irrlicht Moderator || Game Designer
Learn the basics at </dream.in.code>
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: config file parser

Post by netpipe »

can you reupload this please.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply