OpenMS
StringConversions.h File Reference
#include <OpenMS/CONCEPT/Types.h>
#include <OpenMS/DATASTRUCTURES/String.h>
#include <OpenMS/CONCEPT/Exception.h>
#include <OpenMS/DATASTRUCTURES/DataValue.h>
#include <OpenMS/CONCEPT/PrecisionWrapper.h>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/karma.hpp>
#include <boost/type_traits.hpp>
#include <string>
#include <vector>
Include dependency graph for StringConversions.h:

Go to the source code of this file.

Classes

class  BK_PrecPolicy< T >
 

Namespaces

 OpenMS
 Main OpenMS namespace.
 
 OpenMS::StringConversions
 

Typedefs

typedef boost::spirit::karma::real_generator< float, BK_PrecPolicy< float > > BK_PrecPolicyFloat_type
 
typedef boost::spirit::karma::real_generator< double, BK_PrecPolicy< double > > BK_PrecPolicyDouble_type
 
typedef boost::spirit::karma::real_generator< long double, BK_PrecPolicy< long double > > BK_PrecPolicyLongDouble_type
 

Functions

template<typename T >
void append (const T &i, String &target)
 
template<typename T >
String toString (const T &i)
 fallback template for general purpose using Boost::Karma; more specializations below More...
 
void appendLowP (float f, String &target)
 
String toStringLowP (float f)
 low precision (3 fractional digits) conversion to string (Karma default) More...
 
void appendLowP (double d, String &target)
 
String toStringLowP (double d)
 low precision (3 fractional digits) conversion to string (Karma default) More...
 
void appendLowP (long double ld, String &target)
 low precision (3 fractional digits) conversion to string (Karma default) More...
 
String toStringLowP (long double ld)
 low precision (3 fractional digits) conversion to string (Karma default) More...
 
void append (float f, String &target)
 high precision (6 fractional digits) conversion to String More...
 
String toString (float f)
 high precision (6 fractional digits) conversion to String More...
 
void append (double d, String &target)
 high precision (15 fractional digits) conversion to String More...
 
String toString (double d)
 high precision (15 fractional digits) conversion to String More...
 
void append (long double ld, String &target)
 high precision (15 fractional digits) conversion to String More...
 
String toString (long double ld)
 high precision (15 fractional digits) conversion to String More...
 
void append (const DataValue &d, bool full_precision, String &target)
 
String toString (const DataValue &d, bool full_precision)
 
String toString (const char c)
 
String toString (const std::string &s)
 
String toString (const char *s)
 
String toString ()
 Other toString functions (different number of arguments) More...
 

Variables

const BK_PrecPolicyFloat_type BK_PrecPolicyFloat
 
const BK_PrecPolicyDouble_type BK_PrecPolicyDouble
 
const BK_PrecPolicyLongDouble_type BK_PrecPolicyLongDouble