enable object array parsing in JSON parser for devices, channels, and sockets.

device, channel, and socket are parsed as before
This commit is contained in:
winckler
2016-04-04 11:45:28 +02:00
parent 819a21f46a
commit 8df656a302
2 changed files with 246 additions and 125 deletions

View File

@@ -39,6 +39,17 @@ struct XML
FairMQMap UserParser(std::stringstream& input, const std::string& deviceId, const std::string& rootNode = "fairMQOptions");
};
namespace helper
{
void PrintDeviceList(const boost::property_tree::ptree& tree, const std::string& formatFlag = "json");
void DeviceParser(const boost::property_tree::ptree& tree, FairMQMap& channelMap, const std::string& deviceId, const std::string& formatFlag);
void ChannelParser(const boost::property_tree::ptree& tree, FairMQMap& channelMap, const std::string& formatFlag);
void SocketParser(const boost::property_tree::ptree& tree, std::vector<FairMQChannel>& channelList);
}
} // FairMQParser namespace
#endif /* FAIRMQPARSER_H */