YarpBottleGenerator
 All Classes Files Functions Variables Pages
Functions
main.cpp File Reference
#include <iostream>
#include <fstream>
#include "commonbeginninggenerator.hpp"
#include "portmuxgenerator.hpp"
#include "dataconvertergenerator.hpp"
#include "bottlecreatorgenerator.hpp"
#include "cmakefilegenerator.hpp"
#include "commonendgenerator.hpp"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/filesystem.hpp>

Go to the source code of this file.

Functions

void handleMessageChild (ChildGenerator &childGen, boost::property_tree::ptree &pt, std::string messageName, bool toRos)
 
void handleMessageFields (BottleCreatorGenerator &bottleCreatorGen, boost::property_tree::ptree &pt, bool toRos)
 
void info ()
 
int main (int argc, char *argv[])
 

Function Documentation

void handleMessageChild ( ChildGenerator childGen,
boost::property_tree::ptree &  pt,
std::string  messageName,
bool  toRos 
)

Initialize the child objects (tree leaves) from the configuration file

Parameters
childGenChildGenerator object reference to be initialized from the configuration file
ptboost::property_tree that contains the configuration file data
messageNameROS message name, used when the boolean toRos is true
toRosBoolean flag to know the type of output

Definition at line 37 of file main.cpp.

void handleMessageFields ( BottleCreatorGenerator bottleCreatorGen,
boost::property_tree::ptree &  pt,
bool  toRos 
)

Initialize the objects at the top of the hierarchy (members of the root) from the configuration file

Parameters
bottleCreatorGenBottleCreatorGenerator object reference to be initialized from the configuration file
ptboost::property_tree that contains the configuration file data
toRosBoolean flag to know the type of output

Definition at line 77 of file main.cpp.

void info ( )

Function that prints out the help

Definition at line 114 of file main.cpp.