ObjFW  Check-in [be0af07922]

Overview
Comment:{} is not required for doxygen anymore.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: be0af07922dd0b82d3b49759489b6f7f2c93a8c9ed99e781f775481b34591272
User & Date: js on 2011-01-30 12:00:41
Other Links: manifest | tags
Context
2011-01-31
18:53
Fix ObjC++. check-in: c8a9dd6194 user: js tags: trunk
2011-01-30
12:00
{} is not required for doxygen anymore. check-in: be0af07922 user: js tags: trunk
00:24
Allow nil for %@. check-in: e9c2c2c599 user: js tags: trunk
Changes

Modified src/OFConstantString.h from [f48771824d] to [a1a961b40a].

19
20
21
22
23
24
25
26

27
19
20
21
22
23
24
25

26
27







-
+

#ifdef OF_APPLE_RUNTIME
extern void *_OFConstantStringClassReference;
#endif

/**
 * \brief A class for storing constant strings using the \@"" literal.
 */
@interface OFConstantString: OFString {}
@interface OFConstantString: OFString
@end

Modified src/OFEnumerator.h from [0b27107191] to [ce902d7cb6].

15
16
17
18
19
20
21
22

23
24
25
26
27
28
29
15
16
17
18
19
20
21

22
23
24
25
26
27
28
29







-
+







 */

#import "OFObject.h"

/**
 * \brief A class which provides methods to enumerate through collections.
 */
@interface OFEnumerator: OFObject {}
@interface OFEnumerator: OFObject
/**
 * \return The next object
 */
- (id)nextObject;

/**
 * Resets the enumerator, so the next call to nextObject returns the first

Modified src/OFExceptions.h from [3d68b9c6ab] to [5e9c974d2d].

122
123
124
125
126
127
128
129

130
131
132
133
134
135
136
122
123
124
125
126
127
128

129
130
131
132
133
134
135
136







-
+







- (size_t)requestedSize;
@end

/**
 * \brief An exception indicating that a mutation was detected during
 *        enumeration.
 */
@interface OFEnumerationMutationException: OFException {}
@interface OFEnumerationMutationException: OFException
@end

/**
 * \brief An exception indicating the given memory is not part of the object.
 */
@interface OFMemoryNotPartOfObjectException: OFException
{
201
202
203
204
205
206
207
208

209
210
211
212
213
214
215
201
202
203
204
205
206
207

208
209
210
211
212
213
214
215







-
+







 */
- (SEL)selector;
@end

/**
 * \brief An exception indicating the given value is out of range.
 */
@interface OFOutOfRangeException: OFException {}
@interface OFOutOfRangeException: OFException
@end

/**
 * \brief An exception indicating that the argument is invalid for this method.
 */
@interface OFInvalidArgumentException: OFException
{
243
244
245
246
247
248
249
250

251
252
253
254
255
256

257
258
259
260
261
262
263

264
265
266
267
268
269

270
271
272
273
274
275
276
243
244
245
246
247
248
249

250
251
252
253
254
255

256
257
258
259
260
261
262

263
264
265
266
267
268

269
270
271
272
273
274
275
276







-
+





-
+






-
+





-
+







 */
- (SEL)selector;
@end

/**
 * \brief An exception indicating that the encoding is invalid for this object.
 */
@interface OFInvalidEncodingException: OFException {}
@interface OFInvalidEncodingException: OFException
@end

/**
 * \brief An exception indicating that the format is invalid.
 */
@interface OFInvalidFormatException: OFException {}
@interface OFInvalidFormatException: OFException
@end

/**
 * \brief An exception indicating that a parser encountered malformed or
 *        invalid XML.
 */
@interface OFMalformedXMLException: OFException {}
@interface OFMalformedXMLException: OFException
@end

/**
 * \brief An exception indicating that initializing something failed.
 */
@interface OFInitializationFailedException: OFException {}
@interface OFInitializationFailedException: OFException
@end

/**
 * \brief An exception indicating a file couldn't be opened.
 */
@interface OFOpenFileFailedException: OFException
{
366
367
368
369
370
371
372
373

374
375
376
377
378
379

380
381
382
383
384
385
386
366
367
368
369
370
371
372

373
374
375
376
377
378

379
380
381
382
383
384
385
386







-
+





-
+







 */
- (size_t)requestedSize;
@end

/**
 * \brief An exception indicating a read on a stream failed.
 */
@interface OFReadFailedException: OFReadOrWriteFailedException {}
@interface OFReadFailedException: OFReadOrWriteFailedException
@end

/**
 * \brief An exception indicating a write to a stream failed.
 */
@interface OFWriteFailedException: OFReadOrWriteFailedException {}
@interface OFWriteFailedException: OFReadOrWriteFailedException
@end

/**
 * \brief An exception indicating that seeking in a stream failed.
 */
@interface OFSeekFailedException: OFException
{
909
910
911
912
913
914
915
916

917
918
919
920
921
922

923
924
925
926
927
928
929

930
931
932
933
934
935
936
909
910
911
912
913
914
915

916
917
918
919
920
921

922
923
924
925
926
927
928

929
930
931
932
933
934
935
936







-
+





-
+






-
+







- (OFString*)destinationPath;
@end
#endif

/**
 * \brief An exception indicating that setting an option failed.
 */
@interface OFSetOptionFailedException: OFException {}
@interface OFSetOptionFailedException: OFException
@end

/**
 * \brief An exception indicating a socket is not connected or bound.
 */
@interface OFNotConnectedException: OFException {}
@interface OFNotConnectedException: OFException
@end

/**
 * \brief An exception indicating an attempt to connect or bind an already
 *        connected or bound socket.
 */
@interface OFAlreadyConnectedException: OFException {}
@interface OFAlreadyConnectedException: OFException
@end

/**
 * \brief An exception indicating the translation of an address failed.
 */
@interface OFAddressTranslationFailedException: OFException
{
1151
1152
1153
1154
1155
1156
1157
1158

1159
1160
1161
1162
1163
1164

1165
1166
1167
1168
1169
1170

1171
1172
1173
1174
1175
1176

1177
1178
1179
1180
1181
1182

1183
1184
1185
1186
1187
1188

1189
1190
1191
1192
1193
1194
1195
1151
1152
1153
1154
1155
1156
1157

1158
1159
1160
1161
1162
1163

1164
1165
1166
1167
1168
1169

1170
1171
1172
1173
1174
1175

1176
1177
1178
1179
1180
1181

1182
1183
1184
1185
1186
1187

1188
1189
1190
1191
1192
1193
1194
1195







-
+





-
+





-
+





-
+





-
+





-
+







 */
- (int)errNo;
@end

/**
 * \brief An exception indicating that starting a thread failed.
 */
@interface OFThreadStartFailedException: OFException {}
@interface OFThreadStartFailedException: OFException
@end

/**
 * \brief An exception indicating that joining a thread failed.
 */
@interface OFThreadJoinFailedException: OFException {}
@interface OFThreadJoinFailedException: OFException
@end

/**
 * \brief An exception indicating that a thread is still running.
 */
@interface OFThreadStillRunningException: OFException {}
@interface OFThreadStillRunningException: OFException
@end

/**
 * \brief An exception indicating that locking a mutex failed.
 */
@interface OFMutexLockFailedException: OFException {}
@interface OFMutexLockFailedException: OFException
@end

/**
 * \brief An exception indicating that unlocking a mutex failed.
 */
@interface OFMutexUnlockFailedException: OFException {}
@interface OFMutexUnlockFailedException: OFException
@end

/**
 * \brief An exception indicating that the hash has already been calculated.
 */
@interface OFHashAlreadyCalculatedException: OFException {}
@interface OFHashAlreadyCalculatedException: OFException
@end

/**
 * \brief An exception indicating an attempt to use an unbound namespace.
 */
@interface OFUnboundNamespaceException: OFException
{

Modified src/OFMutableString.h from [4414f73650] to [6eba86e901].

18
19
20
21
22
23
24
25

26
27
28
29
30
31
32
18
19
20
21
22
23
24

25
26
27
28
29
30
31
32







-
+







#include <stdarg.h>

#import "OFString.h"

/**
 * \brief A class for storing and modifying strings.
 */
@interface OFMutableString: OFString {}
@interface OFMutableString: OFString
/**
 * Sets the OFString to the specified UTF-8 encoded C string.
 *
 * \param str A UTF-8 encoded C string to set the OFString to.
 */
- (void)setToCString: (const char*)str;

Modified src/OFSeekableStream.h from [5c3003760b] to [9a400a86be].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+







 * IMPORTANT: If you want to subclass this, override _seekToOffset:,
 * _seekForwardWithOffset: and _seekToOffsetRelativeToEnd:, but nothing else.
 * Those are not defined in the headers, but do the actual work.
 * OFSeekableStream uses those and makes them work together with the caching of
 * OFStream. If you override these methods without the _ prefix, you *WILL*
 * break caching, get broken results and seek to the wrong position!
 */
@interface OFSeekableStream: OFStream {}
@interface OFSeekableStream: OFStream
/**
 * Seeks to the specified absolute offset.
 *
 * \param offset The offset in bytes
 */
- (void)seekToOffset: (off_t)offset;