activemq-cpp-3.6.0
decaf::internal::util::HexStringParser Class Reference

#include <src/main/decaf/internal/util/HexStringParser.h>

Public Member Functions

 HexStringParser (int exponentWidth, int mantissaWidth)
 Create a new HexParser.
virtual ~HexStringParser ()
long long parse (const std::string &hexString)
 Parses a hex string using the specs given in the constructor and returns a long long with the bits of the parsed string, the caller can then convert those to a float or doulbe as needed.

Static Public Member Functions

static double parseDouble (const std::string &hexString)
static float parseFloat (const std::string &hexString)

Constructor & Destructor Documentation

decaf::internal::util::HexStringParser::HexStringParser ( int  exponentWidth,
int  mantissaWidth 
)

Create a new HexParser.

Parameters
exponentWidth- Width of the exponent for the type to parse
mantissaWidth- Width of the mantissa for the type to parse
virtual decaf::internal::util::HexStringParser::~HexStringParser ( )
inlinevirtual

Member Function Documentation

long long decaf::internal::util::HexStringParser::parse ( const std::string &  hexString)

Parses a hex string using the specs given in the constructor and returns a long long with the bits of the parsed string, the caller can then convert those to a float or doulbe as needed.

Parameters
hexString- string to parse
Returns
the bits parsed from the string
static double decaf::internal::util::HexStringParser::parseDouble ( const std::string &  hexString)
static
static float decaf::internal::util::HexStringParser::parseFloat ( const std::string &  hexString)
static

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