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

A collection of static methods to perform conversions between strings and byte values (represented as char). More...

#include <ByteWrapper.h>

Static Public Member Functions

static char parseByte (const std::string &s) throw (NumberFormatException)
 Parse a string supposed to represent a byte value and returns this value. More...
 
static std::string toString (char c)
 Encode a byte value into its string representation. More...
 

Static Public Attributes

static const char MIN_VALUE
 The minimum value for a Byte. More...
 
static const char MAX_VALUE
 The maximum value for a Byte. More...
 

Detailed Description

A collection of static methods to perform conversions between strings and byte values (represented as char).

Definition at line 37 of file ByteWrapper.h.

Member Function Documentation

static char asdm::Byte::parseByte ( const std::string &  s)
throw (NumberFormatException
)
static

Parse a string supposed to represent a byte value and returns this value.

Parameters
sthe string to parse
Returns
a char
Exceptions
NumberFormatException.
static std::string asdm::Byte::toString ( char  c)
static

Encode a byte value into its string representation.

Parameters
cthe byte value to be encoded.
Returns
the string representing the byte value passed as parameter.

Member Data Documentation

const char asdm::Byte::MAX_VALUE
static

The maximum value for a Byte.

Definition at line 64 of file ByteWrapper.h.

const char asdm::Byte::MIN_VALUE
static

The minimum value for a Byte.

Definition at line 59 of file ByteWrapper.h.


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