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  »  libcfg++: Querying Config Values with Default Values

libcfg+ General     libcfg++: Querying Config Values with Default Values
Post new topic   Reply to topic    
 
supersiege     Joined: 03 Feb 2025   Posts: 1  
Post Posted: 2025-02-03 04:42
Back to top  Reply with quote     

Hi everyone,

I'm working with libcfg++ and am trying to find the most efficient way to query configuration values while providing default values if a key isn't found. Currently, I'm using a combination of exists() and then getting the value if it exists, but it feels a bit clunky.

Is there a more concise or built-in method to retrieve a config value with a default fallback in libcfg++? For example, something like a getValueOrDefault() function? Or perhaps a best practice approach I'm overlooking?
Retro Bowl
Any suggestions or pointers would be greatly appreciated.

Thanks!

 
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