22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#endif
#include <sys/types.h>
#import "OFObject.h"
#import "OFSerialization.h"
#import "OFJSONRepresentation.h"
/*! @file */
/*!
* @brief The C type of a number stored in an OFNumber.
*/
typedef enum of_number_type_t {
|
>
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#endif
#include <sys/types.h>
#import "OFObject.h"
#import "OFSerialization.h"
#import "OFJSONRepresentation.h"
#import "OFBinaryPackRepresentation.h"
/*! @file */
/*!
* @brief The C type of a number stored in an OFNumber.
*/
typedef enum of_number_type_t {
|
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
OF_NUMBER_DOUBLE = 0x40 | OF_NUMBER_FLOAT,
} of_number_type_t;
/*!
* @brief Provides a way to store a number in an object.
*/
@interface OFNumber: OFObject <OFCopying, OFComparing, OFSerialization,
OFJSONRepresentation>
{
union of_number_value {
BOOL bool_;
signed char schar;
signed short sshort;
signed int sint;
signed long slong;
|
|
|
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
OF_NUMBER_DOUBLE = 0x40 | OF_NUMBER_FLOAT,
} of_number_type_t;
/*!
* @brief Provides a way to store a number in an object.
*/
@interface OFNumber: OFObject <OFCopying, OFComparing, OFSerialization,
OFJSONRepresentation, OFBinaryPackRepresentation>
{
union of_number_value {
BOOL bool_;
signed char schar;
signed short sshort;
signed int sint;
signed long slong;
|