Back to index

nordugrid-arc-nox  1.1.0~rc6
Namespaces | Defines | Functions | Variables
StringConv.h File Reference
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include "Logger.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


namespace  Arc
 ARCJSDLParser The ARCJSDLParser class, derived from the JobDescriptionParser class, is primarily a job description parser for the consolidated job description language (ARCJSDL), derived from JSDL, described in the following document


#define stringtoi(A)   stringto < int > ((A))
#define stringtoui(A)   stringto < unsigned int > ((A))
#define stringtol(A)   stringto < long > ((A))
#define stringtoll(A)   stringto < long long > ((A))
#define stringtoul(A)   stringto < unsigned long > ((A))
#define stringtoull(A)   stringto < unsigned long long > ((A))
#define stringtof(A)   stringto < float > ((A))
#define stringtod(A)   stringto < double > ((A))
#define stringtold(A)   stringto < long double > ((A))


template<typename T >
Arc::stringto (const std::string &s)
 This method converts a string to any type.
template<typename T >
bool Arc::stringto (const std::string &s, T &t)
 This method converts a string to any type but lets calling function process errors.
template<typename T >
std::string Arc::tostring (T t, const int width=0, const int precision=0)
 This method converts any type to a string of the width given.
std::string Arc::lower (const std::string &s)
 This method converts to lower case of the string.
std::string Arc::upper (const std::string &s)
 This method converts to upper case of the string.
void Arc::tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
 This method tokenizes string.
void Arc::tokenize (const std::string &str, std::list< std::string > &tokens, const std::string &delimiters=" ")
std::string Arc::trim (const std::string &str, const char *sep=NULL)
 This method removes given separators from the beginning and the end of the string.
std::string Arc::strip (const std::string &str)
 This method removes blank lines from the passed text string. Lines with only space on them are considered blank.
std::string Arc::uri_unescape (const std::string &str)
 This method unescape the URI encoded string.
std::string Arc::convert_to_rdn (const std::string &dn)
 Convert dn to rdn: /O=Grid/OU=Knowarc/CN=abc ---> CN=abc,OU=Knowarc,O=Grid.


Logger Arc::stringLogger

Define Documentation

#define stringtod (   A)    stringto < double > ((A))

Definition at line 58 of file StringConv.h.

#define stringtof (   A)    stringto < float > ((A))

Definition at line 57 of file StringConv.h.

#define stringtoi (   A)    stringto < int > ((A))

Definition at line 51 of file StringConv.h.

#define stringtol (   A)    stringto < long > ((A))

Definition at line 53 of file StringConv.h.

#define stringtold (   A)    stringto < long double > ((A))

Definition at line 59 of file StringConv.h.

#define stringtoll (   A)    stringto < long long > ((A))

Definition at line 54 of file StringConv.h.

#define stringtoui (   A)    stringto < unsigned int > ((A))

Definition at line 52 of file StringConv.h.

#define stringtoul (   A)    stringto < unsigned long > ((A))

Definition at line 55 of file StringConv.h.

#define stringtoull (   A)    stringto < unsigned long long > ((A))

Definition at line 56 of file StringConv.h.