Design Pattern Examples
Overview of object-oriented design patterns
uint32_to_binary.cpp File Reference

Implementation of the uint32_to_binary() function, that converts a 32-bit unsigned integer to a binary string. Need this since C++ does not normally provide a printf() converter to binary. More...

#include <sstream>
#include <vector>
#include "uint32_to_binary.h"
Include dependency graph for uint32_to_binary.cpp:

Go to the source code of this file.

Namespaces

namespace  Helpers
 The namespace containing all the "helper" functions in the C++ code.
 

Functions

std::string uint32_to_binary (uint32_t number)
 Function to convert a 32-bit unsigned integer into a string representation containing all 32 bits.
 

Detailed Description

Implementation of the uint32_to_binary() function, that converts a 32-bit unsigned integer to a binary string. Need this since C++ does not normally provide a printf() converter to binary.

Definition in file uint32_to_binary.cpp.