13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include <unistd.h>
#import "OFObject.h"
/**
* \brief The type of a number.
*/
typedef enum of_number_type_t {
OF_NUMBER_BOOL,
OF_NUMBER_CHAR,
|
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include <unistd.h>
#import "OFObject.h"
#import "OFSerialization.h"
/**
* \brief The type of a number.
*/
typedef enum of_number_type_t {
OF_NUMBER_BOOL,
OF_NUMBER_CHAR,
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
OF_NUMBER_FLOAT,
OF_NUMBER_DOUBLE,
} of_number_type_t;
/**
* \brief Provides a way to store a number in an object.
*/
@interface OFNumber: OFObject <OFCopying>
{
union of_number_value {
BOOL bool_;
signed char char_;
signed short short_;
signed int int_;
signed long long_;
|
|
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
OF_NUMBER_FLOAT,
OF_NUMBER_DOUBLE,
} of_number_type_t;
/**
* \brief Provides a way to store a number in an object.
*/
@interface OFNumber: OFObject <OFCopying, OFSerialization>
{
union of_number_value {
BOOL bool_;
signed char char_;
signed short short_;
signed int int_;
signed long long_;
|