Open Lighting Architecture  Latest Git
Namespaces | Functions
Format.h File Reference

Detailed Description

Formatting functions for basic types.

Include dependency graph for Format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ola
 The namespace containing all OLA symbols.
 
 ola::strings
 String helper and formatting functions.
 

Functions

string ola::strings::IntToString (int i)
 Convert an int to a string. More...
 
string ola::strings::IntToString (unsigned int i)
 Convert an unsigned int to a string. More...
 
template<typename T >
_ToHex< T > ola::strings::ToHex (T v, bool prefix=true)
 Convert a value to a hex string. More...
 
template<typename T >
std::ostream & ola::strings::operator<< (std::ostream &out, const ola::strings::_ToHex< T > &i)
 Output the _ToHex type to an ostream.
 
void ola::strings::FormatData (std::ostream *out, const uint8_t *data, unsigned int length, unsigned int indent=0, unsigned int byte_per_line=8)
 Write binary data to an ostream in a human readable form. More...