aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/boolean.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++-libbu++/src/boolean.cpp')
-rw-r--r--c++-libbu++/src/boolean.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/c++-libbu++/src/boolean.cpp b/c++-libbu++/src/boolean.cpp
index e442c2c..d4702a5 100644
--- a/c++-libbu++/src/boolean.cpp
+++ b/c++-libbu++/src/boolean.cpp
@@ -54,6 +54,30 @@ void Gats::Boolean::read( Bu::Stream &rIn, char cType )
54 } 54 }
55} 55}
56 56
57Gats::Boolean &Gats::Boolean::operator=( const Gats::Boolean &rhs )
58{
59 bVal = rhs.bVal;
60
61 return *this;
62}
63
64Gats::Boolean &Gats::Boolean::operator=( bool rhs )
65{
66 bVal = rhs;
67
68 return *this;
69}
70
71bool Gats::Boolean::operator==( const Gats::Boolean &rhs ) const
72{
73 return bVal == rhs.bVal;
74}
75
76bool Gats::Boolean::operator==( bool rhs ) const
77{
78 return bVal == rhs;
79}
80
57Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ) 81Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b )
58{ 82{
59 return f << "(bool) " << b.getValue(); 83 return f << "(bool) " << b.getValue();