Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, November 7, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  libcfg+  »  Forum  »  How to handle nested configuration sections in libcfg+?

libcfg+ General     How to handle nested configuration sections in libcfg+?
Post new topic   Reply to topic    
 
lecowardice     Joined: 19 Sep 2025   Posts: 1  
Post Posted: 2025-10-08 05:29
Back to top  Reply with quote     

Hi all,

I’m currently working on a project using libcfg+ for configuration parsing. My config file has nested sections, something like this:

[server]
port = 8080

[server.database]
host = localhost
user = admin
password = secret
Sprunki Phase 5

I’m struggling to figure out the best way to define and parse these nested sections using libcfg+. Does libcfg+ support nested sections natively, or do I need to flatten the structure somehow? If it supports them, how should I define the schema to properly access the nested values?

Any example snippets or advice would be much appreciated!

Thanks in advance.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy