otsdaq  v2_05_02_indev
ots::StringMacros Struct Reference

Classes

struct  IgnoreCaseCompareStruct
 

Static Public Member Functions

static bool wildCardMatch (const std::string &needle, const std::string &haystack, unsigned int *priorityIndex=0)
 
static bool inWildCardSet (const std::string &needle, const std::set< std::string > &haystack)
 
template<class T >
static T & getWildCardMatchFromMap (const std::string &needle, std::map< std::string, T > &haystack, std::string *foundKey=0)
 
static std::string decodeURIComponent (const std::string &data)
 
static std::string encodeURIComponent (const std::string &data)
 
static std::string convertEnvironmentVariables (const std::string &data)
 
static bool isNumber (const std::string &stringToCheck)
 
static std::string getNumberType (const std::string &stringToCheck)
 
template<class T >
static bool getNumber (const std::string &s, T &retValue)
 
static bool getNumber (const std::string &s, bool &retValue)
 
static std::string getTimestampString (const std::string &linuxTimeInSeconds)
 
static std::string getTimestampString (const time_t &linuxTimeInSeconds=time(0))
 
template<class T >
static T validateValueForDefaultStringDataType (const std::string &value, bool doConvertEnvironmentVariables=true)
 
static std::string validateValueForDefaultStringDataType (const std::string &value, bool doConvertEnvironmentVariables=true)
 
static void getSetFromString (const std::string &inputString, std::set< std::string > &setToReturn, const std::set< char > &delimiter={',', '|', '&'}, const std::set< char > &whitespace={' ', '\t', '\n', '\r'})
 
template<class T , class S = std::string>
static void getMapFromString (const std::string &inputString, std::map< S, T > &mapToReturn, const std::set< char > &pairPairDelimiter={',', '|', '&'}, const std::set< char > &nameValueDelimiter={'=', ':'}, const std::set< char > &whitespace={' ', '\t', '\n', '\r'})
 
static void getMapFromString (const std::string &inputString, std::map< std::string, std::string > &mapToReturn, const std::set< char > &pairPairDelimiter={',', '|', '&'}, const std::set< char > &nameValueDelimiter={'=', ':'}, const std::set< char > &whitespace={' ', '\t', '\n', '\r'})
 
static void getVectorFromString (const std::string &inputString, std::vector< std::string > &listToReturn, const std::set< char > &delimiter={',', '|', '&'}, const std::set< char > &whitespace={' ', '\t', '\n', '\r'}, std::vector< char > *listOfDelimiters=0)
 
static std::vector< std::string > getVectorFromString (const std::string &inputString, const std::set< char > &delimiter={',', '|', '&'}, const std::set< char > &whitespace={' ', '\t', '\n', '\r'}, std::vector< char > *listOfDelimiters=0)
 
template<class T >
static std::string mapToString (const std::map< std::string, T > &mapToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=": ")
 
template<class T >
static std::string mapToString (const std::map< std::pair< std::string, std::string >, T > &mapToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=": ")
 
template<class T >
static std::string mapToString (const std::map< std::pair< std::string, std::pair< std::string, std::string >>, T > &mapToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=": ")
 
template<class T >
static std::string mapToString (const std::map< std::string, std::pair< std::string, T >> &mapToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=": ")
 
template<class T >
static std::string mapToString (const std::map< std::string, std::map< std::string, T >> &mapToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=": ")
 
template<class T >
static std::string mapToString (const std::map< std::string, std::set< T >> &mapToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=": ")
 
template<class T >
static std::string mapToString (const std::map< std::string, std::vector< T >> &mapToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=": ")
 
static std::string mapToString (const std::map< std::string, uint8_t > &mapToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=": ")
 
template<class T >
static std::string setToString (const std::set< T > &setToReturn, const std::string &delimeter=", ")
 
static std::string setToString (const std::set< uint8_t > &setToReturn, const std::string &delimeter=", ")
 
template<class S , class T >
static std::string setToString (const std::set< std::pair< S, T >> &setToReturn, const std::string &primaryDelimeter=", ", const std::string &secondaryDelimeter=":")
 
template<class T >
static std::string vectorToString (const std::vector< T > &setToReturn, const std::string &delimeter=", ")
 
static std::string vectorToString (const std::vector< uint8_t > &setToReturn, const std::string &delimeter=", ")
 
template<class S , class T >
static std::string vectorToString (const std::vector< std::pair< S, T >> &setToReturn, const std::string &primaryDelimeter="; ", const std::string &secondaryDelimeter=":")
 
static bool extractCommonChunks (const std::vector< std::string > &haystack, std::vector< std::string > &commonChunksToReturn, std::vector< std::string > &wildcardStrings, unsigned int &fixedWildcardLength)
 
static std::string demangleTypeName (const char *name)
 
template<class T >
static std::string getTypeName (void)
 
static std::string stackTrace (void)
 
static std::string exec (const char *cmd)
 
static char * otsGetEnvironmentVarable (const char *name, const std::string &location, const unsigned int &line)
 

Detailed Description

Definition at line 14 of file StringMacros.h.


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