Namespaces
deployer-funcs.hpp File Reference
#include <string>
#include <boost/program_options.hpp>
#include <rtt/rtt-config.h>
Include dependency graph for deployer-funcs.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OCL

Functions

prior to calling

Parse the command line arguments for a deployer program The caller can set defaults for and this function. If the user requests a log level for RTT::Logger, then the logging level is set internally by this function. If the user requests help, then the function displays the help and returns a non-0 value. Any error causes the program usage to be displayed, and a non-0 return value.

Parameters:
argcNumber of command line arguments
argvCommand line arguments
siteFileName of the site CPF/XML file for the deployer to load up front
scriptFilesNames of the XML files for the deployer to load and run
nameName of the deployer task
requireNameServiceWhether to require the CORBA name service, or not
vmThe variables map into which the options are parsed.
otherOptionsCaller can pass in other options to check for. If NULL, then is ignored.
Returns:
0 if successful, otherwise an error code
int OCL::deployerParseCmdLine (int argc, char **argv, std::string &siteFile, std::vector< std::string > &scriptFiles, std::string &name, bool &requireNameService, boost::program_options::variables_map &vm, boost::program_options::options_description *otherOptions=NULL)


ocl
Author(s): OCL Development Team
autogenerated on Mon Oct 6 2014 03:16:37