Example #1
0
  /** 
      Adds a parameter of type double to a parameter box. 

      @param name the name of the parameter
      @param value the value of the parameter
   */
  void ParameterBox::Put(std::string name, double value)  
  { 
    ValueType tmp;
    tmp.real = value;
    parameters.push_back(ParameterData(name,"double",tmp)); 
  }
Example #2
0
  /** 
      Adds a parameter of type unsigned int to a parameter box. 

      @param name the name of the parameter
      @param value the value of the parameter
   */
  void ParameterBox::Put(std::string name, unsigned int value)
  { 
    ValueType tmp;
    tmp.short_natural = value;
    parameters.push_back(ParameterData(name,"uint",tmp)); 
  }
Example #3
0
 /** 
     Adds a parameter of a given type to a parameter box. 
     
     @param name the name of the parameter
     @param type the type of the parameter
     @param value the value of the parameter
  */  
 void ParameterBox::Put(std::string name, std::string type, ValueType value) 
 { parameters.push_back(ParameterData(name,type,value)); }
Example #4
0
  /** 
      Adds a parameter of type unsigned long to a parameter box. 

      @param name the name of the parameter
      @param value the value of the parameter
   */
  void ParameterBox::Put(std::string name, unsigned long value)
  { 
    ValueType tmp;
    tmp.natural = value;
    parameters.push_back(ParameterData(name,"ulong",tmp)); 
  }
 virtual ParameterData getValueAsParameterData(const Time &time) const
 {
     return ParameterData(getValue(time));
 }