OpenWareLaboratory
PatchParameter.h
Go to the documentation of this file.
1 #ifndef __PatchParameter_h__
2 #define __PatchParameter_h__
3 
4 template<typename T>
6 private:
7  int pid;
8  T value;
9 public:
11  PatchParameter(int parameterId) : pid(parameterId){}
12  /* assignment operator */
14  void update(T newValue){
15  value = newValue;
16  }
17  T getValue(){
18  return value;
19  }
20  operator T(){
21  return getValue();
22  }
23 };
24 
27 
28 #endif /* __PatchParameter_h__ */
PatchParameter< int > IntParameter
PatchParameter< float > FloatParameter
PatchParameter(int parameterId)
PatchParameter< T > & operator=(const PatchParameter< T > &other)
void update(T newValue)