StringConversions.C File Reference

#include "Util/StringConversions.H"
#include "Util/log.H"
#include "Util/sformat.H"
#include "rutz/demangle.h"
#include "rutz/error_context.h"
#include <iomanip>
#include <limits>
#include <netinet/in.h>
#include <sstream>
Include dependency graph for StringConversions.C:

Go to the source code of this file.

Functions

std::string convertToString (const int &val)
 int -> string via stringstream
void convertFromString (const std::string &str, int &val)
 string -> int via stringstream
std::string convertToString (const long int &val)
 long int -> string via stringstream
void convertFromString (const std::string &str, long int &val)
 string -> long int via stringstream
std::string convertToString (const long long int &val)
 long long int -> string via stringstream
void convertFromString (const std::string &str, long long int &val)
 string -> long long int via stringstream
std::string convertToString (const short int &val)
 short int -> string via stringstream
void convertFromString (const std::string &str, short int &val)
 string -> short int via stringstream
std::string convertToString (const unsigned int &val)
 unsigned int -> string via stringstream
void convertFromString (const std::string &str, unsigned int &val)
 string -> unsigned int via stringstream
std::string convertToString (const unsigned long int &val)
 unsigned long int -> string via stringstream
void convertFromString (const std::string &str, unsigned long int &val)
 string -> unsigned long int via stringstream
std::string convertToString (const unsigned long long int &val)
 unsigned long long int -> string via stringstream
void convertFromString (const std::string &str, unsigned long long int &val)
 string -> unsigned long long int via stringstream
std::string convertToString (const unsigned short int &val)
 unsigned short int -> string via stringstream
void convertFromString (const std::string &str, unsigned short int &val)
 string -> unsigned short int via stringstream
std::string convertToString (const unsigned char &val)
 unsigned char -> string via stringstream
void convertFromString (const std::string &str, unsigned char &val)
 string -> unsigned char via stringstream
std::string convertToString (const float &val)
 float -> string via stringstream
void convertFromString (const std::string &str, float &val)
 string -> float via stringstream
std::string convertToString (const double &val)
 double -> string via stringstream
void convertFromString (const std::string &str, double &val)
 string -> double stringstream
std::string convertToString (const std::string &val)
 std::string overload
void convertFromString (const std::string &str, std::string &val)
 std::string overload
std::string convertToString (const bool &val)
 bool overload: format is "true|false"
void convertFromString (const std::string &str, bool &val)
 bool overload
std::string convertToString (const in_addr &val)
 in_addr overload: format is "<int>.<int>.<int>.<int>"
void convertFromString (const std::string &str, in_addr &val)
 in_addr overload: format is "<int>.<int>.<int>.<int>"
std::string convertToString (const rutz::time &val)
 rutz::time overload: format is "<h>:<m>:<s>.<ms>"
void convertFromString (const std::string &str, rutz::time &val)
 rutz::time overload: format is "<h>:<m>:<s>.<ms>"

Detailed Description

Convert to and from std::string

Definition in file StringConversions.C.

Generated on Sun May 8 08:42:52 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3