diff options
Diffstat (limited to '')
-rw-r--r-- | c++-libbu++/src/null.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/c++-libbu++/src/null.cpp b/c++-libbu++/src/null.cpp index 13a61ed..37c9e6a 100644 --- a/c++-libbu++/src/null.cpp +++ b/c++-libbu++/src/null.cpp | |||
@@ -1,3 +1,10 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libgats library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
1 | #include "gats/null.h" | 8 | #include "gats/null.h" |
2 | 9 | ||
3 | #include <bu/formatter.h> | 10 | #include <bu/formatter.h> |
@@ -13,21 +20,21 @@ Gats::Null::~Null() | |||
13 | 20 | ||
14 | Gats::Object *Gats::Null::clone() const | 21 | Gats::Object *Gats::Null::clone() const |
15 | { | 22 | { |
16 | return new Gats::Null(); | 23 | return new Gats::Null(); |
17 | } | 24 | } |
18 | 25 | ||
19 | void Gats::Null::write( Bu::Stream &rOut ) const | 26 | void Gats::Null::write( Bu::Stream &rOut ) const |
20 | { | 27 | { |
21 | rOut.write("n", 1 ); | 28 | rOut.write("n", 1 ); |
22 | } | 29 | } |
23 | 30 | ||
24 | void Gats::Null::read( Bu::Stream &rIn, char cType ) | 31 | void Gats::Null::read( Bu::Stream &rIn, char cType ) |
25 | { | 32 | { |
26 | // Nothing to do... | 33 | // Nothing to do... |
27 | } | 34 | } |
28 | 35 | ||
29 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Null &b ) | 36 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Null &b ) |
30 | { | 37 | { |
31 | return f << "(null)"; | 38 | return f << "(null)"; |
32 | } | 39 | } |
33 | 40 | ||