MIRA
Public Member Functions | Public Attributes | Friends | List of all members
FromHex< T > Class Template Reference

Can be used with fromString to convert hex strings into numbers. More...

#include <utils/ToString.h>

Public Member Functions

 operator T () const
 

Public Attributes

value
 

Friends

std::istream & operator>> (std::istream &iStream, FromHex< T > &oValue)
 

Detailed Description

template<typename T>
class mira::FromHex< T >

Can be used with fromString to convert hex strings into numbers.

This is necessary since std streams and boost lexical_cast can not deal with hex strings.

uint32 i = fromString<FromHex<uint32>>("0x010203");

Member Function Documentation

◆ operator T()

operator T ( ) const
inline

Friends And Related Function Documentation

◆ operator>>

std::istream& operator>> ( std::istream &  iStream,
FromHex< T > &  oValue 
)
friend

Member Data Documentation

◆ value

T value

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