diff options
Diffstat (limited to 'src/stable/archivebase.cpp')
-rw-r--r-- | src/stable/archivebase.cpp | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/src/stable/archivebase.cpp b/src/stable/archivebase.cpp index dcf08f4..d0d22ce 100644 --- a/src/stable/archivebase.cpp +++ b/src/stable/archivebase.cpp | |||
@@ -17,181 +17,181 @@ Bu::ArchiveBase::~ArchiveBase() | |||
17 | 17 | ||
18 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, bool p) | 18 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, bool p) |
19 | { | 19 | { |
20 | ar.write( &p, sizeof(p) ); | 20 | ar.write( &p, sizeof(p) ); |
21 | return ar; | 21 | return ar; |
22 | } | 22 | } |
23 | 23 | ||
24 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, char p) | 24 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, char p) |
25 | { | 25 | { |
26 | ar.write( &p, sizeof(p) ); | 26 | ar.write( &p, sizeof(p) ); |
27 | return ar; | 27 | return ar; |
28 | } | 28 | } |
29 | 29 | ||
30 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed char p) | 30 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed char p) |
31 | { | 31 | { |
32 | ar.write( &p, sizeof(p) ); | 32 | ar.write( &p, sizeof(p) ); |
33 | return ar; | 33 | return ar; |
34 | } | 34 | } |
35 | 35 | ||
36 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned char p) | 36 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned char p) |
37 | { | 37 | { |
38 | ar.write( &p, sizeof(p) ); | 38 | ar.write( &p, sizeof(p) ); |
39 | return ar; | 39 | return ar; |
40 | } | 40 | } |
41 | 41 | ||
42 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed short p) | 42 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed short p) |
43 | { | 43 | { |
44 | ar.write( &p, sizeof(p) ); | 44 | ar.write( &p, sizeof(p) ); |
45 | return ar; | 45 | return ar; |
46 | } | 46 | } |
47 | 47 | ||
48 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned short p) | 48 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned short p) |
49 | { | 49 | { |
50 | ar.write( &p, sizeof(p) ); | 50 | ar.write( &p, sizeof(p) ); |
51 | return ar; | 51 | return ar; |
52 | } | 52 | } |
53 | 53 | ||
54 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed int p) | 54 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed int p) |
55 | { | 55 | { |
56 | ar.write( &p, sizeof(p) ); | 56 | ar.write( &p, sizeof(p) ); |
57 | return ar; | 57 | return ar; |
58 | } | 58 | } |
59 | 59 | ||
60 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned int p) | 60 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned int p) |
61 | { | 61 | { |
62 | ar.write( &p, sizeof(p) ); | 62 | ar.write( &p, sizeof(p) ); |
63 | return ar; | 63 | return ar; |
64 | } | 64 | } |
65 | 65 | ||
66 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed long p) | 66 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed long p) |
67 | { | 67 | { |
68 | ar.write( &p, sizeof(p) ); | 68 | ar.write( &p, sizeof(p) ); |
69 | return ar; | 69 | return ar; |
70 | } | 70 | } |
71 | 71 | ||
72 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned long p) | 72 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned long p) |
73 | { | 73 | { |
74 | ar.write( &p, sizeof(p) ); | 74 | ar.write( &p, sizeof(p) ); |
75 | return ar; | 75 | return ar; |
76 | } | 76 | } |
77 | 77 | ||
78 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed long long p) | 78 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed long long p) |
79 | { | 79 | { |
80 | ar.write( &p, sizeof(p) ); | 80 | ar.write( &p, sizeof(p) ); |
81 | return ar; | 81 | return ar; |
82 | } | 82 | } |
83 | 83 | ||
84 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned long long p) | 84 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned long long p) |
85 | { | 85 | { |
86 | ar.write( &p, sizeof(p) ); | 86 | ar.write( &p, sizeof(p) ); |
87 | return ar; | 87 | return ar; |
88 | } | 88 | } |
89 | 89 | ||
90 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, float p) | 90 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, float p) |
91 | { | 91 | { |
92 | ar.write( &p, sizeof(p) ); | 92 | ar.write( &p, sizeof(p) ); |
93 | return ar; | 93 | return ar; |
94 | } | 94 | } |
95 | 95 | ||
96 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, double p) | 96 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, double p) |
97 | { | 97 | { |
98 | ar.write( &p, sizeof(p) ); | 98 | ar.write( &p, sizeof(p) ); |
99 | return ar; | 99 | return ar; |
100 | } | 100 | } |
101 | 101 | ||
102 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, long double p) | 102 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, long double p) |
103 | { | 103 | { |
104 | ar.write( &p, sizeof(p) ); | 104 | ar.write( &p, sizeof(p) ); |
105 | return ar; | 105 | return ar; |
106 | } | 106 | } |
107 | 107 | ||
108 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, bool &p) | 108 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, bool &p) |
109 | { | 109 | { |
110 | ar.read( &p, sizeof(p) ); | 110 | ar.read( &p, sizeof(p) ); |
111 | return ar; | 111 | return ar; |
112 | } | 112 | } |
113 | 113 | ||
114 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, char &p) | 114 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, char &p) |
115 | { | 115 | { |
116 | ar.read( &p, sizeof(p) ); | 116 | ar.read( &p, sizeof(p) ); |
117 | return ar; | 117 | return ar; |
118 | } | 118 | } |
119 | 119 | ||
120 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed char &p) | 120 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed char &p) |
121 | { | 121 | { |
122 | ar.read( &p, sizeof(p) ); | 122 | ar.read( &p, sizeof(p) ); |
123 | return ar; | 123 | return ar; |
124 | } | 124 | } |
125 | 125 | ||
126 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned char &p) | 126 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned char &p) |
127 | { | 127 | { |
128 | ar.read( &p, sizeof(p) ); | 128 | ar.read( &p, sizeof(p) ); |
129 | return ar; | 129 | return ar; |
130 | } | 130 | } |
131 | 131 | ||
132 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed short &p) | 132 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed short &p) |
133 | { | 133 | { |
134 | ar.read( &p, sizeof(p) ); | 134 | ar.read( &p, sizeof(p) ); |
135 | return ar; | 135 | return ar; |
136 | } | 136 | } |
137 | 137 | ||
138 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned short &p) | 138 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned short &p) |
139 | { | 139 | { |
140 | ar.read( &p, sizeof(p) ); | 140 | ar.read( &p, sizeof(p) ); |
141 | return ar; | 141 | return ar; |
142 | } | 142 | } |
143 | 143 | ||
144 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed int &p) | 144 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed int &p) |
145 | { | 145 | { |
146 | ar.read( &p, sizeof(p) ); | 146 | ar.read( &p, sizeof(p) ); |
147 | return ar; | 147 | return ar; |
148 | } | 148 | } |
149 | 149 | ||
150 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned int &p) | 150 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned int &p) |
151 | { | 151 | { |
152 | ar.read( &p, sizeof(p) ); | 152 | ar.read( &p, sizeof(p) ); |
153 | return ar; | 153 | return ar; |
154 | } | 154 | } |
155 | 155 | ||
156 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed long &p) | 156 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed long &p) |
157 | { | 157 | { |
158 | ar.read( &p, sizeof(p) ); | 158 | ar.read( &p, sizeof(p) ); |
159 | return ar; | 159 | return ar; |
160 | } | 160 | } |
161 | 161 | ||
162 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned long &p) | 162 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned long &p) |
163 | { | 163 | { |
164 | ar.read( &p, sizeof(p) ); | 164 | ar.read( &p, sizeof(p) ); |
165 | return ar; | 165 | return ar; |
166 | } | 166 | } |
167 | 167 | ||
168 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed long long &p) | 168 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed long long &p) |
169 | { | 169 | { |
170 | ar.read( &p, sizeof(p) ); | 170 | ar.read( &p, sizeof(p) ); |
171 | return ar; | 171 | return ar; |
172 | } | 172 | } |
173 | 173 | ||
174 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned long long &p) | 174 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned long long &p) |
175 | { | 175 | { |
176 | ar.read( &p, sizeof(p) ); | 176 | ar.read( &p, sizeof(p) ); |
177 | return ar; | 177 | return ar; |
178 | } | 178 | } |
179 | 179 | ||
180 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, float &p) | 180 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, float &p) |
181 | { | 181 | { |
182 | ar.read( &p, sizeof(p) ); | 182 | ar.read( &p, sizeof(p) ); |
183 | return ar; | 183 | return ar; |
184 | } | 184 | } |
185 | 185 | ||
186 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, double &p) | 186 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, double &p) |
187 | { | 187 | { |
188 | ar.read( &p, sizeof(p) ); | 188 | ar.read( &p, sizeof(p) ); |
189 | return ar; | 189 | return ar; |
190 | } | 190 | } |
191 | 191 | ||
192 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, long double &p) | 192 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, long double &p) |
193 | { | 193 | { |
194 | ar.read( &p, sizeof(p) ); | 194 | ar.read( &p, sizeof(p) ); |
195 | return ar; | 195 | return ar; |
196 | } | 196 | } |
197 | 197 | ||