60 osyncstream&
operator<<(std::ios_base& (*func)(std::ios_base&)) { std::ostream::operator<<(func );
return *
this; }
61 osyncstream&
operator<<(std::ostream& (*func)(std::ostream&)) { std::ostream::operator<<(func );
return *
this; }
64 std::ostream &getOStream()
const {
return str; }
101 #define FMATVEC_ATOM_MSGTYPE_SIZE 6
103 static_assert(SIZE==FMATVEC_ATOM_MSGTYPE_SIZE,
"The proprocessor define FMATVEC_ATOM_MSGTYPE_SIZE must be equal Atom::SIZE.");
116 Atom& operator=(const Atom &);
124 static void setCurrentMessageStream(
MsgType type,
129 void setMessageStreamActive(
MsgType type,
bool activeFlag);
132 void getMessageStream(
MsgType type,
139 void adoptMessageStreams(
const Atom *src=
nullptr);
151 return *_msgAct[type];
157 return *_msgStatic[type];
162 return *_msgActStatic[type];
172 static std::array<std::shared_ptr<bool >, SIZE> _msgActStatic;
173 static std::array<std::shared_ptr<std::ostream>, SIZE> _msgSavedStatic;
174 static std::array<std::shared_ptr<std::ostream>, SIZE> _msgStatic;
178 std::array<std::shared_ptr<bool >, SIZE> _msgAct;
179 std::array<std::shared_ptr<std::ostream>, SIZE> _msgSaved;
180 std::array<std::shared_ptr<std::ostream>, SIZE> _msg;
243 start = std::chrono::steady_clock::now();
246 auto end = std::chrono::steady_clock::now();
247 auto delta = std::chrono::duration<double>(end - start);
252 std::chrono::time_point<std::chrono::steady_clock> start;
253 std::chrono::duration<double> ∑
PrePostfixedStream(const std::string &prefix_, const std::string &postfix_, const std::function< void(const std::string &)> &outputFunc, const std::function< void(std::string &)> &escapingFunc=nullptr)
Call f with every message of the stream, prefixed/postfixed.
PrePostfixedStream(const std::string &prefix_, const std::string &postfix_, std::ostream &outstr_, const std::function< void(std::string &)> &escapingFunc=nullptr)
Convinence function to print to outstr_.