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 <boost/spirit/home/karma/numeric/detail/real_utils.hpp>
#include <string>
#include <vector>
Include dependency graph for StringConversions.h:

Go to the source code of this file.

Classes

class  BK_PrecPolicyFull< T >
 
class  BK_PrecPolicyShort< T >
 

Namespaces

 OpenMS
 Main OpenMS namespace.
 
 OpenMS::StringConversions
 
 OpenMS::StringConversions::Detail
 

Typedefs

using BK_PrecPolicyFloatFull_type = boost::spirit::karma::real_generator< float, BK_PrecPolicyFull< float > >
 
using BK_PrecPolicyDoubleFull_type = boost::spirit::karma::real_generator< double, BK_PrecPolicyFull< double > >
 
using BK_PrecPolicyLongDoubleFull_type = boost::spirit::karma::real_generator< long double, BK_PrecPolicyFull< long double > >
 
using BK_PrecPolicyFloatShort_type = boost::spirit::karma::real_generator< float, BK_PrecPolicyShort< float > >
 
using BK_PrecPolicyDoubleShort_type = boost::spirit::karma::real_generator< double, BK_PrecPolicyShort< double > >
 
using BK_PrecPolicyLongDoubleShort_type = boost::spirit::karma::real_generator< long double, BK_PrecPolicyShort< long double > >
 

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_PrecPolicyFloatFull_type BK_PrecPolicyFloatFull
 
const BK_PrecPolicyDoubleFull_type BK_PrecPolicyDoubleFull
 
const BK_PrecPolicyLongDoubleFull_type BK_PrecPolicyLongDoubleFull
 
const BK_PrecPolicyFloatShort_type BK_PrecPolicyFloatShort
 
const BK_PrecPolicyDoubleShort_type BK_PrecPolicyDoubleShort
 
const BK_PrecPolicyLongDoubleShort_type BK_PrecPolicyLongDoubleShort