FastLED 3.10.8
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
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
const dec_t dec
Definition ios.cpp.hpp:13
ostream & operator<<(ostream &os, const hex_t &) FL_NO_EXCEPT
const hex_t hex
Definition ios.cpp.hpp:11
const oct_t oct
Definition ios.cpp.hpp:15
fmtflags
Definition ios.h:13
Base definition for an LED controller.