cgv
|
#include <string>
#include <sstream>
#include <iomanip>
#include "lib_begin.h"
#include <cgv/config/lib_end.h>
Go to the source code of this file.
Namespaces | |
cgv | |
the cgv namespace | |
cgv::utils | |
namespace that holds tools that dont fit any other namespace | |
Functions | |
template<typename T > | |
std::string | cgv::utils::to_string (const T &v, unsigned int w=-1, unsigned int p=-1) |
convert a numeric type T into string of width w and precision p | |
template<typename T > | |
std::string | cgv::utils::to_string (const T &v, unsigned int w, char fill_char) |
convert an integer type T into string of width w with given fill character | |
template<> | |
std::string | cgv::utils::to_string (const std::string &v, unsigned int w, unsigned int p) |
specialization of conversion from string to strings | |
template<typename T > | |
bool | cgv::utils::from_string (T &v, const std::string &s) |
extract value from string | |
template<> | |
bool | cgv::utils::from_string (std::string &v, const std::string &s) |
specialization to extract string value from string | |
Helper functions to convert numeric types into strings using std streams.