source: orbit/iOS/Orbit/Orbit/CorePlotHeaders/CPTNumericDataType.h @ e5b8e57

ServoTab_Interfacepyramid
Last change on this file since e5b8e57 was a9059a5, checked in by Steve Castellotti <sc@…>, 10 years ago

Arduino:

  • updated to permit custom setting of Throttle, Yaw, and Pitch

Android:

  • Minor tweak to Configuration location

iOS:

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#import <Foundation/Foundation.h>
2
3/// @file
4
5/**
6 *  @brief Enumeration of data formats for numeric data.
7 **/
8typedef enum _CPTDataTypeFormat {
9    CPTUndefinedDataType = 0,        ///< Undefined
10    CPTIntegerDataType,              ///< Integer
11    CPTUnsignedIntegerDataType,      ///< Unsigned integer
12    CPTFloatingPointDataType,        ///< Floating point
13    CPTComplexFloatingPointDataType, ///< Complex floating point
14    CPTDecimalDataType               ///< NSDecimal
15}
16CPTDataTypeFormat;
17
18/**
19 *  @brief Enumeration of memory arrangements for multi-dimensional data arrays.
20 *  @see See <a href="http://en.wikipedia.org/wiki/Row-major_order">Wikipedia</a> for more information.
21 **/
22typedef enum _CPTDataOrder {
23    CPTDataOrderRowsFirst,   ///< Numeric data is arranged in row-major order.
24    CPTDataOrderColumnsFirst ///< Numeric data is arranged in column-major order.
25}
26CPTDataOrder;
27
28/**
29 *  @brief Struct that describes the encoding of numeric data samples.
30 **/
31typedef struct _CPTNumericDataType {
32    CPTDataTypeFormat dataTypeFormat; ///< Data type format
33    size_t sampleBytes;               ///< Number of bytes in each sample
34    CFByteOrder byteOrder;            ///< Byte order
35}
36CPTNumericDataType;
37
38#if __cplusplus
39extern "C" {
40#endif
41
42/// @name Data Type Utilities
43/// @{
44CPTNumericDataType CPTDataType(CPTDataTypeFormat format, size_t sampleBytes, CFByteOrder byteOrder);
45CPTNumericDataType CPTDataTypeWithDataTypeString(NSString *dataTypeString);
46NSString *CPTDataTypeStringFromDataType(CPTNumericDataType dataType);
47BOOL CPTDataTypeIsSupported(CPTNumericDataType format);
48BOOL CPTDataTypeEqualToDataType(CPTNumericDataType dataType1, CPTNumericDataType dataType2);
49
50/// @}
51
52#if __cplusplus
53}
54#endif
Note: See TracBrowser for help on using the repository browser.