Map innerMap; ElementList elementList; elementList.addAscii("DefaultConsumer", "Consumer_1"); innerMap.addKeyAscii("Consumer_1", MapEntry::AddEnum, ElementList() .addAscii("Channel", "Channel_1") .addAscii("Logger", "Logger_1") .addAscii("Dictionary", "Dictionary_1") .addUInt("ItemCountHint", 5000) .addUInt("ServiceCountHint", 5000) .addUInt("ObeyOpenWindow", 0) .addUInt("PostAckTimeout", 5000) .addUInt("LoginRequestTimeOut", 0) .addUInt("DirectoryRequestTimeOut", 0) .addUInt("DictionaryRequestTimeOut", 0) .addUInt("RequestTimeout", 0) .addUInt("MaxOutstandingPosts", 5000) .addInt("DispatchTimeoutApiThread", 1) .addUInt("HandleException", 0) .addUInt("MaxDispatchCountApiThread", 500) .addUInt("MaxDispatchCountUserThread", 500) .addInt("ReactorEventFdPort", 45000) .addInt("PipePort", 4001).complete()).complete(); elementList.addMap("ConsumerList", innerMap); elementList.complete(); innerMap.clear(); configMap.addKeyAscii("ConsumerGroup", MapEntry::AddEnum, elementList); elementList.clear(); innerMap.addKeyAscii("Channel_1", MapEntry::AddEnum, ElementList() .addEnum("ChannelType", 0) .addEnum("CompressionType", 1) .addAscii("InterfaceName", "localhost") .addUInt("GuaranteedOutputBuffers", 5000) .addUInt("ConnectionPingTimeout", 50000) .addInt("ReconnectAttemptLimit", -1) .addInt("ReconnectMinDelay", 2000) .addInt("ReconnectMaxDelay", 6000) .addAscii("Host", "14002"") .addAscii("Port", "localhost") .addUInt("TcpNodelay", 0) .addAscii("XmlTraceFileName", trace) .addInt("XmlTraceMaxFileSize", 50000000) .addUInt("XmlTraceToFile", 1) .addUInt("XmlTraceToStdout", 0) .addUInt("XmlTraceToMultipleFiles", 1) .addUInt("XmlTraceWrite", 1) .addUInt("XmlTraceRead", 1) .addUInt("XmlTracePing", 1) .addUInt("XmlTraceHex", 1) .addUInt("MsgKeyInUpdates", 1).complete()).complete(); elementList.addMap("ChannelList", innerMap); elementList.complete(); innerMap.clear(); configMap.addKeyAscii("ChannelGroup", MapEntry::AddEnum, elementList); elementList.clear(); innerMap.addKeyAscii("Logger_1", MapEntry::AddEnum, ElementList() .addEnum("LoggerType", 0) .addAscii("FileName", "emalog") .addEnum("LoggerSeverity", 0).complete()).complete(); elementList.addMap("LoggerList", innerMap); elementList.complete(); innerMap.clear(); configMap.addKeyAscii("LoggerGroup", MapEntry::AddEnum, elementList); elementList.clear(); innerMap.addKeyAscii("Dictionary_1", MapEntry::AddEnum, ElementList() .addEnum("DictionaryType", 1) .addAscii("RdmFieldDictionaryFileName", "./RDMFieldDictionary") .addAscii("EnumTypeDefFileName", "./enumtype.def").complete()).complete(); elementList.addMap("DictionaryList", innerMap); elementList.complete(); configMap.addKeyAscii("DictionaryGroup", MapEntry::AddEnum, elementList); elementList.clear(); configMap.complete();