Projects / libconfigduo / Comments

RSS Comments for libconfigduo

06 Dec 2011 10:24 rien

really nice library. however:
- the Setting class is missing all the simple "lookup()" function (with the same semantic than the ones in the Config class).
- the readFile() and writeFile method are missing an overload taking a std::string for the file name.
- for @include directives: included files should be specified relative to the directory of the including file (not the current directory)

03 Oct 2011 11:01 Bliatz Thumbs up

mesmerism, I made a config viewer that uses your library. If you want more info, pm me.

Of course, this library is highly reccomendated.

Sorry about my english.

14 Sep 2011 12:53 jcarlosrr

Hi! Fantastic Library! Thank you very much!

However, i always have had a problem with Visual Studio building.

I get:

tests.c(25): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory

I workaround this problem commenting fully test.c (Sigh!) . Not the ideal solution...

Any idea? Thanks!

Sorry for my English

01 Sep 2011 04:36 Nomasvisto Thumbs up

mesmerism, when i use complex configs with a complex depth than 3, it's almost neccesary to use "hacks" to access the string (...value.sval) rather tan config_setting_lookup_string because the double pointer mess up a lot, in my case.

Keep working, this library pwns ;)

15 Aug 2011 03:14 mesmerism

Nomasvisto, why do you need "hacks" to access string values? Just assign the Setting object to a std::string or const char *.

14 Aug 2011 22:15 Nomasvisto Thumbs up

It would be very helpful to use a libconfig in c++ that it wouldn't be a c++ wrapper from the c library, I'm sure you will increase people who help you easily and you will gain more people in the proyect.

I made a lot of times use of hacks to access to strings in complex configs (NameSettingWhatever->value.sval, something like that), with complexity superior of 3 (list of lists of arrays, for example)

Even with their bad points, I reccomend it!

12 Aug 2011 08:59 mesmerism

If you use libconfig, please help pay for the web hosting...make a small donation at www.hyperrealm.com

28 Jul 2011 20:33 rainwoodman

Am I supposed to file bug tickets on freshmeat? How otherwise can I contact the author?

25 Jun 2011 01:55 npotereyko Thumbs up

Awesome project! I am a big fan.

Do you think it would be possible to make any (or perhaps all) of the following enhancements?

1. allow complex group member names? For instance: { "some key" : "some value"; } in addition to existing {someKey: "some value"; }.

2. allow to separate members of the group by "," in addition to ";". For example { a : 10, b : 20, }

2.1 allow to leave out last ";" in group definition. For example { a = 10, b = 20 }

3. Use "[]" in addition to "()" to denote arrays. For example ( 10, 20, 30 )

None of the above enhancements should interfere with existing protocol, and will make this library JSON compatible for the most parts which will open whole new world of possibilities.

22 Jun 2011 07:52 crookies Thumbs up

Hello Mark,

I am using your library and I wanted to suggests an interesting option. If a setting is present multiple times in the configuration, then an error is generated (duplicate setting), why not give the option to update the setting by the new value. This is very interresting when you work with include files because you can create a default configuration and overload some values by including a custom file at the end.

The behaviour ("no duplicate" or "allow override" could be selected by a specific setting).
I made the change in quick and dirty in config_setting_add for testing and it seems to work nicely
if(config_setting_get_member(parent, name) != NULL)
return(config_setting_get_member(parent, name)); /* already exists */

Best regards,

Pierre Crokaert

Screenshot

Project Spotlight

Eigen

A C++ template library for linear algebra.

Screenshot

Project Spotlight

colormake

Wrapper to colorize output from make