casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
asdm::Boolean Class Reference

A collection of static classes to perform conversions between strings and bool values. More...

#include <BooleanWrapper.h>

Static Public Member Functions

static bool parseBoolean (const std::string &s)
 Static method which returns a c++ bool value from a string. More...
 
static std::string toString (bool b)
 Static method returning a string equals to "true" (resp "false") if the parameter is equal to true (resp. More...
 

Detailed Description

A collection of static classes to perform conversions between strings and bool values.

Definition at line 38 of file BooleanWrapper.h.

Member Function Documentation

static bool asdm::Boolean::parseBoolean ( const std::string &  s)
static

Static method which returns a c++ bool value from a string.

returns true if the string is equal to "TRUE" or "true" and false otherwise.

Parameters
sa string.
Returns
a bool value.
static std::string asdm::Boolean::toString ( bool  b)
static

Static method returning a string equals to "true" (resp "false") if the parameter is equal to true (resp.

false).

Parameters
ba boolean.
Returns
a string.

The documentation for this class was generated from the following file: