MIRA
Namespaces | Functions
ResolveVariable.h File Reference

Functions for replacing/resolving variables in strings. More...

#include <string>
#include <boost/function.hpp>
#include <platform/Types.h>
Include dependency graph for ResolveVariable.h:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Functions

MIRA_BASE_EXPORT std::string resolveVariables (std::string s, boost::function< std::string(const std::string &)> functor, bool ignoreErrors=true)
 Resolves all variables in a string: It replaces

  1. $VARIABLE
  2. ${VARIABLE}
  3. VARIABLE% by calling the given functor for each found variable.
More...
 
MIRA_BASE_EXPORT std::string resolveSpecialVariables (std::string s, boost::function< std::string(const std::string &, const std::string &)> functor, bool ignoreErrors=true)
 Resolves all occurrences of ${PATTERN variable} in a string by calling the given functor for each found pattern - variable combination. More...
 
MIRA_BASE_EXPORT std::string resolveSpecialVariables (const std::string &pattern, std::string s, boost::function< std::string(const std::string &)> functor, bool ignoreErrors=true)
 Like resolveSpecialVariables above but only resolves a special pattern. More...
 

Detailed Description

Functions for replacing/resolving variables in strings.

Author
Tim Langner
Date
2011/11/18