Overview
Features
Download
Documentation
Community
Add-Ons & Services

Export Application Configuration

Please post support and help requests here.
HerveM
Posts: 5
Joined: 19 Dec 2012, 17:25

Export Application Configuration

Postby HerveM » 07 May 2013, 23:04

Hello,

I am searching a way for exporting a configuration file (in xml) from a Application (Poco::Util::Application) who have many options.
Does someone have some ideas / advice ?

Thanks in advance,
HerveM

HerveM
Posts: 5
Joined: 19 Dec 2012, 17:25

Re: Export Application Configuration

Postby HerveM » 08 May 2013, 11:02

I think a found something :

Code: Select all

Poco::AutoPtr<Poco::Util::XMLConfiguration> pXMLConfig = new Poco::Util::XMLConfiguration();
pLayeredConfig->addWriteable(pXMLConfiguration);
pXMLConfig->save("APP.xml");


But XML is empty...

alex
Posts: 1227
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Export Application Configuration

Postby alex » 08 May 2013, 12:08

See XMLConfigurationTest::testSave(), replace std::ostringstream with Poco::FileOutputStream.

HerveM
Posts: 5
Joined: 19 Dec 2012, 17:25

Re: Export Application Configuration

Postby HerveM » 09 May 2013, 16:34

I will test that. :)

Thanks alex.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest