Output stream operators

 

ITLogMsg& operator << (const char Data);

ITLogMsg& operator << (const char* Data);

 

ITLogMsg& operator << (const int& Data);

ITLogMsg& operator << (const double& Data);

ITLogMsg& operator << (const float& Data);

 

Purpose:

§      These operators are used to add text to the logmessage. Non-text types are converted to text before adding.

 

Note:

§      The operators are similar to the ostream output operators of the Standard C++ library, but note that ITLogLib currently doesn’t provide support for the corresponding manipulators (like dec()/hex()/oct(), setw()/setprecision() and endl()) don’t work.
Instead of

m << endl();

(m of type ITLogMsg or ITLogMsg&) you can write

m << "\n";

 or

  m << '\n';

 

See also:

§      How to define your own output operators