Boost logo

Boost Users :

Subject: [Boost-users] program_options, multiple [sections] from a config file
From: rrlangly (richard.ringo.langly_at_[hidden])
Date: 2010-07-27 21:48:53


I'm using boost program_options 1.41 and would like to know if anyone has a
better idea than what I'm trying to do. I am reading from a config file some
basic parameters per section, but I have multiple sections. The problem is
there could be any number of [sections] in this file, so I don't know what
it is ahead of time.

[server]
name="a"
ip="1.2.3.4"

[server_2]
name="b"
ip="4.5.6.7"

[server_3]
name="c"
ip="8.9.0.1"

Thanks,

-- 
View this message in context: http://old.nabble.com/program_options%2C-multiple--sections--from-a-config-file-tp29282201p29282201.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net