aboutsummaryrefslogtreecommitdiff
path: root/src/stable/archivebase.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-03-25 20:00:08 +0000
committerMike Buland <eichlan@xagasoft.com>2012-03-25 20:00:08 +0000
commit469bbcf0701e1eb8a6670c23145b0da87357e178 (patch)
treeb5b062a16e46a6c5d3410b4e574cd0cc09057211 /src/stable/archivebase.cpp
parentee1b79396076edc4e30aefb285fada03bb45e80d (diff)
downloadlibbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.gz
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.bz2
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.xz
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.zip
Code is all reorganized. We're about ready to release. I should write up a
little explenation of the arrangement.
Diffstat (limited to 'src/stable/archivebase.cpp')
-rw-r--r--src/stable/archivebase.cpp197
1 files changed, 197 insertions, 0 deletions
diff --git a/src/stable/archivebase.cpp b/src/stable/archivebase.cpp
new file mode 100644
index 0000000..d00b1a5
--- /dev/null
+++ b/src/stable/archivebase.cpp
@@ -0,0 +1,197 @@
1/*
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#include "bu/archivebase.h"
9
10Bu::ArchiveBase::ArchiveBase()
11{
12}
13
14Bu::ArchiveBase::~ArchiveBase()
15{
16}
17
18Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, bool p)
19{
20 ar.write( &p, sizeof(p) );
21 return ar;
22}
23
24Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, char p)
25{
26 ar.write( &p, sizeof(p) );
27 return ar;
28}
29
30Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed char p)
31{
32 ar.write( &p, sizeof(p) );
33 return ar;
34}
35
36Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned char p)
37{
38 ar.write( &p, sizeof(p) );
39 return ar;
40}
41
42Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed short p)
43{
44 ar.write( &p, sizeof(p) );
45 return ar;
46}
47
48Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned short p)
49{
50 ar.write( &p, sizeof(p) );
51 return ar;
52}
53
54Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed int p)
55{
56 ar.write( &p, sizeof(p) );
57 return ar;
58}
59
60Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned int p)
61{
62 ar.write( &p, sizeof(p) );
63 return ar;
64}
65
66Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed long p)
67{
68 ar.write( &p, sizeof(p) );
69 return ar;
70}
71
72Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned long p)
73{
74 ar.write( &p, sizeof(p) );
75 return ar;
76}
77
78Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed long long p)
79{
80 ar.write( &p, sizeof(p) );
81 return ar;
82}
83
84Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned long long p)
85{
86 ar.write( &p, sizeof(p) );
87 return ar;
88}
89
90Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, float p)
91{
92 ar.write( &p, sizeof(p) );
93 return ar;
94}
95
96Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, double p)
97{
98 ar.write( &p, sizeof(p) );
99 return ar;
100}
101
102Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, long double p)
103{
104 ar.write( &p, sizeof(p) );
105 return ar;
106}
107
108Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, bool &p)
109{
110 ar.read( &p, sizeof(p) );
111 return ar;
112}
113
114Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, char &p)
115{
116 ar.read( &p, sizeof(p) );
117 return ar;
118}
119
120Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed char &p)
121{
122 ar.read( &p, sizeof(p) );
123 return ar;
124}
125
126Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned char &p)
127{
128 ar.read( &p, sizeof(p) );
129 return ar;
130}
131
132Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed short &p)
133{
134 ar.read( &p, sizeof(p) );
135 return ar;
136}
137
138Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned short &p)
139{
140 ar.read( &p, sizeof(p) );
141 return ar;
142}
143
144Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed int &p)
145{
146 ar.read( &p, sizeof(p) );
147 return ar;
148}
149
150Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned int &p)
151{
152 ar.read( &p, sizeof(p) );
153 return ar;
154}
155
156Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed long &p)
157{
158 ar.read( &p, sizeof(p) );
159 return ar;
160}
161
162Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned long &p)
163{
164 ar.read( &p, sizeof(p) );
165 return ar;
166}
167
168Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed long long &p)
169{
170 ar.read( &p, sizeof(p) );
171 return ar;
172}
173
174Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned long long &p)
175{
176 ar.read( &p, sizeof(p) );
177 return ar;
178}
179
180Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, float &p)
181{
182 ar.read( &p, sizeof(p) );
183 return ar;
184}
185
186Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, double &p)
187{
188 ar.read( &p, sizeof(p) );
189 return ar;
190}
191
192Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, long double &p)
193{
194 ar.read( &p, sizeof(p) );
195 return ar;
196}
197