HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CH_LocalVariable.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: Channel library (C++)
7  *
8  * COMMENTS: Local variable definition
9  *
10  */
11 
12 #ifndef __CH_LocalVariable_h__
13 #define __CH_LocalVariable_h__
14 
15 #include "CH_API.h"
16 #define CH_VARIABLE_NONE 0x0000 //
17 #define CH_VARIABLE_TIME 0x0001 // $T, $F
18 #define CH_VARIABLE_VALUE 0x0002 // $IV, $OV
19 #define CH_VARIABLE_SLOPE 0x0004 // $IM, $OM
20 #define CH_VARIABLE_ACCEL 0x0008 // $IA, $OA
21 #define CH_VARIABLE_CHANNEL 0x0010 // another channel
22 #define CH_VARIABLE_INTVAL 0x0020 // By default, an integer value
23 #define CH_VARIABLE_STRVAL 0x1000 // By default, a string value
24 #define CH_VARIABLE_VOIDVAL 0x2000 // By default, a void * value
25 #define CH_VARIABLE_VECTORVAL 0x4000 // By default, a vector value
26 #define CH_VARIABLE_MATRIXVAL 0x8000 // By default, a matrix value
27 
29 public:
30  const char *name; // name of the variable
31  unsigned id; // unique ID in the table
32  unsigned flag; // dependency flags
33 
34  unsigned isTimeDependent() const { return flag & CH_VARIABLE_TIME; }
35  unsigned isSegmentValue() const { return flag & CH_VARIABLE_VALUE; }
36  unsigned isSegmentSlope() const { return flag & CH_VARIABLE_SLOPE; }
37  unsigned isSegmentAccel() const { return flag & CH_VARIABLE_ACCEL; }
38 };
39 
40 #endif
#define CH_VARIABLE_SLOPE
const char * name
unsigned isTimeDependent() const
#define CH_VARIABLE_TIME
#define CH_VARIABLE_VALUE
#define CH_API
Definition: CH_API.h:10
#define CH_VARIABLE_ACCEL
unsigned isSegmentSlope() const
unsigned isSegmentAccel() const
png_infop png_uint_32 flag
Definition: png.h:2242
unsigned isSegmentValue() const