|
degate 0.1.1
|
This is the base class for exporter classes. More...
#include <Exporter.h>

Public Member Functions | |
| Exporter () | |
| The ctor for an exporter object. | |
| virtual | ~Exporter () |
| The dtor for an exporter object. | |
Protected Member Functions | |
| template<typename T > | |
| std::string | number_to_string (T num) |
| Convert a number type to a human readable string. | |
| std::string | to_color_string (color_t col) const |
| Convert a RGBA color value into the common format of "#%2x%2x%2x%2x". | |
This is the base class for exporter classes.
Definition at line 36 of file Exporter.h.
| degate::Exporter::Exporter | ( | ) | [inline] |
| virtual degate::Exporter::~Exporter | ( | ) | [inline, virtual] |
| std::string degate::Exporter::number_to_string | ( | T | num | ) | [inline, protected] |
Convert a number type to a human readable string.
Definition at line 43 of file Exporter.h.
{
std::ostringstream stm;
stm << num;
return stm.str();
}
| std::string degate::Exporter::to_color_string | ( | color_t | col | ) | const [inline, protected] |
Convert a RGBA color value into the common format of "#%2x%2x%2x%2x".
Definition at line 52 of file Exporter.h.
1.7.4