29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#import "OFMessagePackRepresentation.h"
/*! @file */
/*!
* @brief The C type of a number stored in an OFNumber.
*/
typedef enum of_number_type_t {
/*! bool */
OF_NUMBER_BOOL = 0x01,
/*! unsigned char */
OF_NUMBER_UCHAR = 0x02,
/*! unsigned short */
OF_NUMBER_USHORT = 0x03,
/*! unsigned int */
|
|
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#import "OFMessagePackRepresentation.h"
/*! @file */
/*!
* @brief The C type of a number stored in an OFNumber.
*/
typedef enum {
/*! bool */
OF_NUMBER_BOOL = 0x01,
/*! unsigned char */
OF_NUMBER_UCHAR = 0x02,
/*! unsigned short */
OF_NUMBER_USHORT = 0x03,
/*! unsigned int */
|
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
/*! float */
OF_NUMBER_FLOAT = 0x20,
/*! double */
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, OFMessagePackRepresentation>
{
union of_number_value {
bool bool_;
|
>
>
|
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
/*! float */
OF_NUMBER_FLOAT = 0x20,
/*! double */
OF_NUMBER_DOUBLE = 0x40 | OF_NUMBER_FLOAT,
} of_number_type_t;
/*!
* @class OFNumber OFNumber.h ObjFW/OFNumber.h
*
* @brief Provides a way to store a number in an object.
*/
@interface OFNumber: OFObject <OFCopying, OFComparing, OFSerialization,
OFJSONRepresentation, OFMessagePackRepresentation>
{
union of_number_value {
bool bool_;
|