Archived
This forum has been archived. Please start a new discussion on GitHub.
Parsing the config files
MMOInteractive
in Help Center
All the demos come with config files. You pass the config file name when starting the application and since the demos use the ICE Application framework they get parsed through that. How do I parse the config files not using the Ice Application framework?
0
Comments
-
Config files are translated to properties. You can also create your own properties and load files, or populate the property set programmatically. Have a look at http://www.zeroc.com/doc/Ice-3.4.1-IceTouch/manual/Properties.31.9.html.0
-
After posting this I started playing around with it. I haven't tested it yet but would something like this work?
Ice::InitializationData initData; initData.properties = Ice::createProperties(); initData.properties->setProperty("BuildId", string("Ice ") + ICE_STRING_VERSION); initData.properties->load("config.client"); Ice::CommunicatorPtr peer = Ice::initialize(initData);0
