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:
argc Number of command line arguments
argv Command line arguments
siteFile Name of the site CPF/XML file for the deployer to load up front
scriptFiles Names of the XML files for the deployer to load and run
name Name of the deployer task
requireNameService Whether to require the CORBA name service, or not
vm The variables map into which the options are parsed.
otherOptions Caller 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)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


ocl
Author(s): OCL Development Team
autogenerated on Fri Jan 11 09:50:42 2013