|
(Note that these are not member functions.)
|
|
PICout | operator<< (PICout s, const PISystemMonitor::ThreadStats &v) |
| | Output operator to PICout.
|
| |
|
template<typename T > |
| PICout | operator<< (PICout s, const PIDeque< T > &v) |
| | Output operator to PICout.
|
| |
|
template<typename Key , typename Type > |
| PICout | operator<< (PICout s, const PIMap< Key, Type > &v) |
| | Output operator to PICout.
|
| |
|
template<typename Type0 , typename Type1 > |
| PICout | operator<< (PICout s, const PIPair< Type0, Type1 > &v) |
| | Output operator to PICout.
|
| |
|
template<typename T > |
| PICout | operator<< (PICout s, const PIVector< T > &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIBinaryLog::BinLogInfo &bi) |
| | Output operator PIBinaryLog::BinLogInfo to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIDir &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIFile::FileInfo &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PISerial::DeviceInfo &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIJSON &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PISystemInfo::MountInfo &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIConstChars &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIStringList &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PITime &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIDate &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIDateTime &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PINetworkAddress &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PISystemTime &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PISystemTime::Frequency &f) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIValueTree &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIVariant &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIVariantTypes::Enumerator &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIVariantTypes::Enum &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIVariantTypes::File &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIVariantTypes::Dir &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIVariantTypes::Color &v) |
| | Output operator to PICout.
|
| |
|
PICout | operator<< (PICout s, const PIVariantTypes::IODevice &v) |
| | Output operator to PICout.
|
| |
Universal output to console class.
Synopsis
This class provide many stream operators for output with some features. Output to PICout is thread-sequential, i.e. doesn`t mixed from parallel threads.
Features
- support text formatting (color, style)
- insertion spaces between entries
- insertion new line at the end of output
- strings are quoted
- custom output operator can be easily written
- can outpur to console, internal buffer or both
Usage
int a = 10, b = 32, c = 11;
<< "is" << Green << "green" << Default << "word";
<< "quotes";
PICout(int controls=PICoutManipulators::DefaultControls, PICoutStdStream stream=PICoutStdStream::StdOut)
Default constructor with default features (AddSpaces and AddNewLine)
Definition: picout.cpp:180
Namespace contains enums that controls PICout.
Definition: picout.h:69
@ Bin
Definition: picout.h:114
@ Hex
Definition: picout.h:117
@ Tab
Definition: picout.h:77
@ AddNewLine
Definition: picout.h:103
@ AddQuotes
Definition: picout.h:104
@ AddSpaces
Definition: picout.h:102
#define piCout
Macro used for conditional (piDebug) output to PICout(StdOut)
Definition: picout.h:35
Writing your own output operator
for (uint i = 0; i < ba.
size(); ++i)
s << ba[i];
return s;
}
The PIByteArray class provides an array of bytes.
Definition: pibytearray.h:42
size_t size() const
Number of elements in the container.
Definition: pibytearray.h:150
Universal output to console class.
Definition: picout.h:160
PICout & operator<<(const char *v)
Output operator for strings with "const char * " type.
Definition: picout.cpp:448
PICout & space()
Conditional put space character to output.
Definition: picout.cpp:575
PICout & restoreControls()
Restore control flags from internal stack.
Definition: picout.cpp:559
PICout & quote()
Conditional put quote character to output.
Definition: picout.cpp:590
PICout & saveAndSetControls(PICoutManipulators::PICoutControls c)
Exec saveControls() and set control flags to "c".
Definition: picout.cpp:316