FastLED 3.9.15
Loading...
Searching...
No Matches
ios.h
Go to the documentation of this file.
1#pragma once
2#include "fl/stl/noexcept.h"
3
4namespace fl {
5
6// Forward declarations
7class ostream;
8class sstream;
9
10//-----------------------------------------------------------------------------
11// I/O Formatting Flags
12//-----------------------------------------------------------------------------
13enum class fmtflags {
14 dec = 0, // decimal base
15 hex = 1, // hexadecimal base
16 oct = 2 // octal base
17};
18
19//-----------------------------------------------------------------------------
20// I/O Manipulators for Stream Formatting
21//-----------------------------------------------------------------------------
22
23// Hexadecimal manipulator
24struct hex_t {};
25extern const hex_t hex;
26
29
30// Decimal manipulator
31struct dec_t {};
32extern const dec_t dec;
33
36
37// Octal manipulator (for completeness)
38struct oct_t {};
39extern const oct_t oct;
40
43
44} // namespace fl
const dec_t dec
Definition ios.cpp.hpp:7
ostream & operator<<(ostream &os, const hex_t &) FL_NOEXCEPT
const hex_t hex
Definition ios.cpp.hpp:6
const oct_t oct
Definition ios.cpp.hpp:8
fmtflags
Definition ios.h:13
Base definition for an LED controller.
Definition crgb.hpp:179
#define FL_NOEXCEPT