DDS  ver. 3.4
Classes | Namespaces | Functions
MiscUtils.h File Reference
#include "wordexp.h"
#include <algorithm>
#include <iostream>
#include <boost/filesystem.hpp>
#include <boost/process.hpp>

Go to the source code of this file.

Classes

class  MiscCommon::NONCopyable
 Class which makes child to be non-copyable object. More...
 
class  MiscCommon::NullType
 
class  MiscCommon::auto_setenv
 A helper class. Helps to automatically track environment variables. More...
 
struct  MiscCommon::ToLower
 
struct  MiscCommon::ToUpper
 
struct  MiscCommon::IsDigit
 

Namespaces

 MiscCommon
 Miscellaneous functions and helpers are located here.
 

Functions

template<typename _T >
_TMiscCommon::smart_append (_T *_pString, const typename _T::value_type _ItemToAdd)
 appends character _ItemToAdd to the string _pString if there is no such suffix on the end of _pString. More...
 
template<typename _T >
_TMiscCommon::trim_right (_T *_pString, const typename _T::value_type &_chWhat)
 trims trailing characters from the string. More...
 
template<typename _T >
_TMiscCommon::trim_left (_T *_pString, const typename _T::value_type &_chWhat)
 trims leading characters from the string. More...
 
template<typename _T >
_TMiscCommon::trim (_T *_pString, const typename _T::value_type &_chWhat)
 trims trailing and leading characters from the string. More...
 
template<typename _T >
_TMiscCommon::replace (_T *_pString, const _T &_what, const _T &_with)
 finds elements in a string match a specified string and replaces it. More...
 
template<typename _T >
_TMiscCommon::to_upper (_T &_str)
 convert string to upper case. More...
 
template<typename _T >
_TMiscCommon::to_lower (_T &_str)
 convert string to lower case. More...
 
void MiscCommon::parseExe (const std::string &_exeStr, const std::string &_exePrefix, std::string &_filePath, std::string &_filename, std::string &_cmdStr)