Jump to content

parameter mean in ig_config


photo

Recommended Posts

Hello! 
it`s about <variables> block in ig_config.xml

for example 

<variables>
		<group name="CIGIConnector">
			<item name="host" type="string">127.0.0.1</item>
			<item name="packet_size" type="int">1432</item>
			<item name="recv_port" type="int">8888</item>
			<item name="send_port" type="int">8889</item>
			<item name="version" type="string">3.3</item>
		</group>
</variables>

you can get/set any variable from config

host = ig_manager->getConfig()->getValue("CIGIConnector.host", "127.0.0.1"); // getting value

ig_manager->getConfig()->setValue("CIGIConnector.host", "192.168.0.1"); // set value
ig_manager->getConfig()->setValue("MyKind.my_variable", 123.456); // set custom value
ig_manager->getConfig()->save(); //save config

 

  • Like 2
Link to comment
×
×
  • Create New...