Public Member Functions | Private Attributes | List of all members
rosmon::launch::ParseContext Class Reference

#include <launch_config.h>

Public Member Functions

const std::map< std::string, std::string > & arguments () const
 
void clearArguments ()
 
LaunchConfigconfig ()
 
ParseContext enterScope (const std::string &prefix)
 
const std::map< std::string, std::string > environment () const
 
template<typename... Args>
ParseException error (const char *fmt, const Args &...args) const
 
std::string evaluate (const std::string &tpl, bool simplifyWhitespace=true)
 
const std::string & filename () const
 
bool parseBool (const std::string &value, int line)
 
 ParseContext (LaunchConfig *config)
 
const std::string & prefix () const
 
const std::map< std::string, std::string > & remappings ()
 
void setArg (const std::string &name, const std::string &value, bool override)
 
void setCurrentElement (TiXmlElement *e)
 
void setEnvironment (const std::string &name, const std::string &value)
 
void setFilename (const std::string &filename)
 
void setRemap (const std::string &from, const std::string &to)
 
bool shouldSkip (TiXmlElement *e)
 
template<typename... Args>
void warning (const char *fmt, const Args &...args) const
 

Private Attributes

std::map< std::string, std::string > m_args
 
LaunchConfigm_config
 
int m_currentLine = -1
 
std::map< std::string, std::string > m_environment
 
std::string m_filename
 
std::string m_prefix
 
std::map< std::string, std::string > m_remappings
 

Detailed Description

Definition at line 52 of file launch_config.h.

Constructor & Destructor Documentation

rosmon::launch::ParseContext::ParseContext ( LaunchConfig config)
inline

Definition at line 55 of file launch_config.h.

Member Function Documentation

const std::map<std::string, std::string>& rosmon::launch::ParseContext::arguments ( ) const
inline

Definition at line 91 of file launch_config.h.

void rosmon::launch::ParseContext::clearArguments ( )
inline

Definition at line 86 of file launch_config.h.

LaunchConfig* rosmon::launch::ParseContext::config ( )
inline

Definition at line 103 of file launch_config.h.

ParseContext rosmon::launch::ParseContext::enterScope ( const std::string &  prefix)

Definition at line 34 of file launch_config.cpp.

const std::map<std::string, std::string> rosmon::launch::ParseContext::environment ( ) const
inline

Definition at line 98 of file launch_config.h.

template<typename... Args>
ParseException rosmon::launch::ParseContext::error ( const char *  fmt,
const Args &...  args 
) const
inline

Definition at line 111 of file launch_config.h.

std::string rosmon::launch::ParseContext::evaluate ( const std::string &  tpl,
bool  simplifyWhitespace = true 
)

Definition at line 42 of file launch_config.cpp.

const std::string& rosmon::launch::ParseContext::filename ( ) const
inline

Definition at line 63 of file launch_config.h.

bool rosmon::launch::ParseContext::parseBool ( const std::string &  value,
int  line 
)

Definition at line 60 of file launch_config.cpp.

const std::string& rosmon::launch::ParseContext::prefix ( ) const
inline

Definition at line 60 of file launch_config.h.

const std::map<std::string, std::string>& rosmon::launch::ParseContext::remappings ( )
inline

Definition at line 107 of file launch_config.h.

void rosmon::launch::ParseContext::setArg ( const std::string &  name,
const std::string &  value,
bool  override 
)

Definition at line 102 of file launch_config.cpp.

void rosmon::launch::ParseContext::setCurrentElement ( TiXmlElement *  e)
inline

Definition at line 69 of file launch_config.h.

void rosmon::launch::ParseContext::setEnvironment ( const std::string &  name,
const std::string &  value 
)

Definition at line 111 of file launch_config.cpp.

void rosmon::launch::ParseContext::setFilename ( const std::string &  filename)
inline

Definition at line 66 of file launch_config.h.

void rosmon::launch::ParseContext::setRemap ( const std::string &  from,
const std::string &  to 
)

Definition at line 116 of file launch_config.cpp.

bool rosmon::launch::ParseContext::shouldSkip ( TiXmlElement *  e)

Definition at line 79 of file launch_config.cpp.

template<typename... Args>
void rosmon::launch::ParseContext::warning ( const char *  fmt,
const Args &...  args 
) const
inline

Definition at line 128 of file launch_config.h.

Member Data Documentation

std::map<std::string, std::string> rosmon::launch::ParseContext::m_args
private

Definition at line 147 of file launch_config.h.

LaunchConfig* rosmon::launch::ParseContext::m_config
private

Definition at line 142 of file launch_config.h.

int rosmon::launch::ParseContext::m_currentLine = -1
private

Definition at line 146 of file launch_config.h.

std::map<std::string, std::string> rosmon::launch::ParseContext::m_environment
private

Definition at line 148 of file launch_config.h.

std::string rosmon::launch::ParseContext::m_filename
private

Definition at line 145 of file launch_config.h.

std::string rosmon::launch::ParseContext::m_prefix
private

Definition at line 144 of file launch_config.h.

std::map<std::string, std::string> rosmon::launch::ParseContext::m_remappings
private

Definition at line 149 of file launch_config.h.


The documentation for this class was generated from the following files:


rosmon_core
Author(s): Max Schwarz
autogenerated on Wed Jul 10 2019 03:10:12