From d534a56d95bca7bdd812be024d9eacba4734e2b7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2012 17:20:11 +0000 Subject: Many changes: tabconv'd the C++ code, added a license, BSD, and docs. --- c++-libbu++/src/integer.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'c++-libbu++/src/integer.cpp') diff --git a/c++-libbu++/src/integer.cpp b/c++-libbu++/src/integer.cpp index e89ac1d..40fc609 100644 --- a/c++-libbu++/src/integer.cpp +++ b/c++-libbu++/src/integer.cpp @@ -1,14 +1,21 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libgats library and is released under the + * terms of the license contained in the file LICENSE. + */ + #include "gats/integer.h" #include Gats::Integer::Integer() : - iVal( 0 ) + iVal( 0 ) { } Gats::Integer::Integer( int64_t iVal ) : - iVal( iVal ) + iVal( iVal ) { } @@ -18,22 +25,22 @@ Gats::Integer::~Integer() Gats::Object *Gats::Integer::clone() const { - return new Gats::Integer( iVal ); + return new Gats::Integer( iVal ); } void Gats::Integer::write( Bu::Stream &rOut ) const { - rOut.write("i", 1 ); - writePackedInt( rOut, iVal ); + rOut.write("i", 1 ); + writePackedInt( rOut, iVal ); } void Gats::Integer::read( Bu::Stream &rIn, char cType ) { - readPackedInt( rIn, iVal ); + readPackedInt( rIn, iVal ); } Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Integer &i ) { - return f << "(int) " << i.getValue(); + return f << "(int) " << i.getValue(); } -- cgit v1.2.3