|
From: Christian S. <sch...@so...> - 2004-06-30 09:26:15
|
Es geschah am Mittwoch, 30. Juni 2004 09:48 als Rui Nuno Capela schrieb: > Another thing, probably unrelated, is that OnSetValue() only gets called > when we set the parameter value as a string, with SetValue(String val) but > not with SetValue(int i). Is this intentional? Originally, my intention was that the parser just supplies a string for a parameter value, so the parser does not have to know what type the respective parameter is (bool, int, string,...), so it would always call SetValue(String s) which has to be implemented by all Parameter classes and they implement the conversion from string to their own type (e.g string -> int) and then they call OnSetValue(<their_type> val) to let the device driver react on parameter value changes. CU Christian |