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

#include <launch_config.h>

Public Member Functions

std::string anonName (const std::string &base)
 
const std::map< std::string, std::string > & arguments () const
 
void clearArguments ()
 
LaunchConfigconfig ()
 
bool coredumpsEnabled () const
 
double cpuLimit () const
 
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
 
uint64_t memoryLimit () const
 
bool parseBool (const std::string &value, int line)
 
 ParseContext (LaunchConfig *config)
 
void parseScopeAttributes (TiXmlElement *e, ParseContext &attr_ctx)
 
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 setCoredumpsEnabled (bool enabled)
 
void setCPULimit (double limit)
 
void setCurrentElement (TiXmlElement *e)
 
void setEnvironment (const std::string &name, const std::string &value)
 
void setFilename (const std::string &filename)
 
void setMemoryLimit (uint64_t limit)
 
void setRemap (const std::string &from, const std::string &to)
 
void setStopTimeout (double timeout)
 
bool shouldSkip (TiXmlElement *e)
 
double stopTimeout () const
 
template<typename... Args>
void warning (const char *fmt, const Args &...args) const
 

Private Attributes

std::map< std::string, std::string > m_anonNames
 
std::map< std::string, std::string > m_args
 
LaunchConfigm_config
 
bool m_coredumpsEnabled = true
 
double m_cpuLimit = DEFAULT_CPU_LIMIT
 
int m_currentLine = -1
 
std::map< std::string, std::string > m_environment
 
std::string m_filename
 
uint64_t m_memoryLimit = DEFAULT_MEMORY_LIMIT
 
std::string m_prefix
 
std::map< std::string, std::string > m_remappings
 
double m_stopTimeout = DEFAULT_STOP_TIMEOUT
 

Detailed Description

Definition at line 56 of file launch_config.h.

Constructor & Destructor Documentation

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

Definition at line 59 of file launch_config.h.

Member Function Documentation

std::string rosmon::launch::ParseContext::anonName ( const std::string &  base)

Definition at line 177 of file launch_config.cpp.

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

Definition at line 96 of file launch_config.h.

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

Definition at line 91 of file launch_config.h.

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

Definition at line 108 of file launch_config.h.

bool rosmon::launch::ParseContext::coredumpsEnabled ( ) const
inline

Definition at line 153 of file launch_config.h.

double rosmon::launch::ParseContext::cpuLimit ( ) const
inline

Definition at line 138 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 103 of file launch_config.h.

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

Definition at line 118 of file launch_config.h.

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

Definition at line 98 of file launch_config.cpp.

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

Definition at line 67 of file launch_config.h.

uint64_t rosmon::launch::ParseContext::memoryLimit ( ) const
inline

Definition at line 143 of file launch_config.h.

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

Definition at line 116 of file launch_config.cpp.

void rosmon::launch::ParseContext::parseScopeAttributes ( TiXmlElement *  e,
ParseContext attr_ctx 
)

Definition at line 42 of file launch_config.cpp.

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

Definition at line 64 of file launch_config.h.

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

Definition at line 112 of file launch_config.h.

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

Definition at line 158 of file launch_config.cpp.

void rosmon::launch::ParseContext::setCoredumpsEnabled ( bool  enabled)
inline

Definition at line 155 of file launch_config.h.

void rosmon::launch::ParseContext::setCPULimit ( double  limit)
inline

Definition at line 140 of file launch_config.h.

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

Definition at line 73 of file launch_config.h.

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

Definition at line 167 of file launch_config.cpp.

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

Definition at line 70 of file launch_config.h.

void rosmon::launch::ParseContext::setMemoryLimit ( uint64_t  limit)
inline

Definition at line 145 of file launch_config.h.

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

Definition at line 172 of file launch_config.cpp.

void rosmon::launch::ParseContext::setStopTimeout ( double  timeout)
inline

Definition at line 150 of file launch_config.h.

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

Definition at line 135 of file launch_config.cpp.

double rosmon::launch::ParseContext::stopTimeout ( ) const
inline

Definition at line 148 of file launch_config.h.

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

Definition at line 280 of file launch_config.h.

Member Data Documentation

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

Definition at line 167 of file launch_config.h.

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

Definition at line 164 of file launch_config.h.

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

Definition at line 159 of file launch_config.h.

bool rosmon::launch::ParseContext::m_coredumpsEnabled = true
private

Definition at line 172 of file launch_config.h.

double rosmon::launch::ParseContext::m_cpuLimit = DEFAULT_CPU_LIMIT
private

Definition at line 169 of file launch_config.h.

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

Definition at line 163 of file launch_config.h.

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

Definition at line 165 of file launch_config.h.

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

Definition at line 162 of file launch_config.h.

uint64_t rosmon::launch::ParseContext::m_memoryLimit = DEFAULT_MEMORY_LIMIT
private

Definition at line 170 of file launch_config.h.

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

Definition at line 161 of file launch_config.h.

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

Definition at line 166 of file launch_config.h.

double rosmon::launch::ParseContext::m_stopTimeout = DEFAULT_STOP_TIMEOUT
private

Definition at line 171 of file launch_config.h.


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


rosmon_core
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:43