vbl_bool_ostream.cxx
Go to the documentation of this file.
1 // This is core/vbl/vbl_bool_ostream.cxx
2 
3 #include <iostream>
4 #include "vbl_bool_ostream.h"
5 #ifdef _MSC_VER
6 # include <vcl_msvc_warnings.h>
7 #endif
8 
9 std::ostream& operator<<(std::ostream& s, const vbl_bool_ostream::on_off& proxy)
10 {
11  if (*(proxy.truth))
12  s << "on";
13  else
14  s << "off";
15  return s;
16 }
17 
18 std::ostream& operator<<(std::ostream& s, const vbl_bool_ostream::high_low& proxy)
19 {
20  if (*(proxy.truth))
21  s << "high";
22  else
23  s << "low";
24  return s;
25 }
26 
27 std::ostream& operator<<(std::ostream& s, const vbl_bool_ostream::true_false& proxy)
28 {
29  if (*(proxy.truth))
30  s << "true";
31  else
32  s << "false";
33  return s;
34 }
std::ostream & operator<<(std::ostream &s, const vbl_bool_ostream::on_off &proxy)