vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
OSCValue.h
1 
2 #if IPHONE
3 #import <UIKit/UIKit.h>
4 #else
5 #import <Cocoa/Cocoa.h>
6 #endif
7 #import "OSCConstants.h"
8 
9 
10 
11 
13 
21 @interface OSCValue : NSObject <NSCopying> {
23  void *value;
24 }
25 
27 + (id) createWithInt:(int)n;
29 + (id) createWithFloat:(float)n;
31 + (id) createWithString:(NSString *)n;
33 + (id) createWithTimeSeconds:(long)s microSeconds:(long)ms;
35 + (id) createWithLongLong:(long long)n;
37 + (id) createWithDouble:(double)n;
39 + (id) createWithChar:(char)n;
41 + (id) createWithColor:(id)n;
43 + (id) createWithMIDIChannel:(Byte)c status:(Byte)s data1:(Byte)d1 data2:(Byte)d2;
45 + (id) createWithBool:(BOOL)n;
47 + (id) createWithNil;
49 + (id) createWithInfinity;
51 + (id) createArray;
53 + (id) createWithNSDataBlob:(NSData *)d;
55 + (id) createWithSMPTEVals:(OSCSMPTEFPS)fps :(int)d :(int)h :(int)m :(int)s :(int)f;
56 + (id) createWithSMPTEChunk:(int)n;
57 
58 - (NSString *) lengthyDescription;
59 
60 - (id) initWithInt:(int)n;
61 - (id) initWithFloat:(float)n;
62 - (id) initWithString:(NSString *)n;
63 - (id) initWithTimeSeconds:(long)s microSeconds:(long)ms;
64 - (id) initWithLongLong:(long long)n;
65 - (id) initWithDouble:(double)n;
66 - (id) initWithChar:(char)n;
67 - (id) initWithColor:(id)n;
68 - (id) initWithMIDIChannel:(Byte)c status:(Byte)s data1:(Byte)d1 data2:(Byte)d2;
69 - (id) initWithBool:(BOOL)n;
70 - (id) initWithNil;
71 - (id) initWithInfinity;
72 - (id) initArray;
73 - (id) initWithNSDataBlob:(NSData *)d;
74 - (id) initWithSMPTEVals:(OSCSMPTEFPS)fps :(int)d :(int)h :(int)m :(int)s :(int)f;
75 - (id) initWithSMPTEChunk:(int)n;
76 
78 - (int) intValue;
80 - (float) floatValue;
82 - (NSString *) stringValue;
84 - (struct timeval) timeValue;
86 - (NSDate *) dateValue;
88 - (long long) longLongValue;
90 - (double) doubleValue;
92 - (char) charValue;
94 - (id) colorValue;
96 - (Byte) midiPort;
98 - (OSCMIDIType) midiStatus;
100 - (Byte) midiData1;
102 - (Byte) midiData2;
104 - (BOOL) boolValue;
106 - (void) addValue:(OSCValue *)n;
108 - (NSMutableArray *) valueArray;
110 - (NSData *) blobNSData;
112 - (int) SMPTEValue;
113 - (NSString *) SMPTEString;
114 
116 - (float) calculateFloatValue;
118 - (double) calculateDoubleValue;
119 
120 @property (nonatomic, readonly) OSCValueType type;
121 
122 - (long) bufferLength;
123 - (long) typeSignatureLength;
124 - (void) writeToBuffer:(unsigned char *)b typeOffset:(int *)t dataOffset:(int *)d;
125 
126 @end
OSCSMPTEFPS
OSCSMPTEFPS.
Definition: OSCConstants.h:36
void * value
The actual value is stored here; this memory is allocated dynamically, and the size of this pointer v...
Definition: OSCValue.h:23
OSCValueType type
The type of the OSCValue.
Definition: OSCValue.h:22
OSCValue encapsulates any value you can send or receive via OSC. It is NOT mutable at this time...
Definition: OSCValue.h:21
OSCMIDIType
OSCMIDIType.
Definition: OSCConstants.h:53
Constants and Macros used by one or more of the OSC classes in this framework.
OSCValueType
OSCValueType.
Definition: OSCConstants.h:12