HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
STY_BindingDataInfo.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: STY_BindingDataInfo.h ( STY Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __STY_BindingDataInfo__
12 #define __STY_BindingDataInfo__
13 
14 #include "STY_API.h"
15 
16 // ===========================================================================
17 /// Provides information about binding data.
19 {
20 public:
22  : myDataType(TYPE_FLOAT),
23  myTupleSize(0),
24  myIsArray(false)
25  { }
26 
27  /// Encodes basic types for overide values.
28  enum DataType
29  {
33  };
34 
35  /// Sets data type used for overrided binding.
36  void setDataType( DataType data_type )
37  { myDataType = data_type; }
39  { return myDataType; }
40 
41  /// Size of the tuple.
42  /// If it's an array then the array element is a tuple of that size.
43  void setTupleSize( int tuple_size )
44  { myTupleSize = tuple_size; }
45  int getTupleSize() const
46  { return myTupleSize; }
47 
48  /// Checks if the binding data is an array.
49  void setIsArray( bool is_array )
50  { myIsArray = is_array; }
51  bool isArray() const
52  { return myIsArray; }
53 
54 private:
55  DataType myDataType;
56  int myTupleSize;
57  bool myIsArray;
58 };
59 
60 #endif
61 
void setTupleSize(int tuple_size)
Provides information about binding data.
void setIsArray(bool is_array)
Checks if the binding data is an array.
DataType getDataType() const
#define STY_API
Definition: STY_API.h:10
void setDataType(DataType data_type)
Sets data type used for overrided binding.
DataType
Encodes basic types for overide values.