Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
strconvert.cpp File Reference
#include "gmxpre.h"
#include "strconvert.h"
#include <cerrno>
#include <cstdlib>
#include <limits>
#include <string>
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/exceptions.h"
+ Include dependency graph for strconvert.cpp:

Description

Implements functions in strconvert.h.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Functions

bool gmx::boolFromString (const char *str)
 Parses a boolean from a string. More...
 
int gmx::intFromString (const char *str)
 Parses an integer from a string. More...
 
int64_t gmx::int64FromString (const char *str)
 Parses a 64-bit integer from a string. More...
 
float gmx::floatFromString (const char *str)
 Parses a float value from a string. More...
 
double gmx::doubleFromString (const char *str)
 Parses a double value from a string. More...