Setting an Object's Attribute Values

ostc_Object::setValue()

virtual void setValue(
      oscs_ConstString name, 
      oscs_Int32 value
) ; 

Sets the value of the attribute named name to value.

ostc_UnknownAttribute is thrown if there is no attribute with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_int32.

virtual void setValue(
      oscs_ConstString name, 
      oscs_Int64 value
) ; 

Sets the value of the attribute named name to value.

ostc_UnknownAttribute is thrown if there is no attribute with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_int64.

virtual void setValue(
      oscs_ConstString name, 
      oscs_ConstString value
);

Sets the value of the attribute named name to value.

ostc_UnknownAttribute is thrown if there is no attribute with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_string.

virtual void setValue(
      oscs_ConstString name, 
      oscs_Float value
) ;

Sets the value of the attribute named name to value.

ostc_UnknownAttribute is thrown if there is no attribute with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_float.

virtual void setValue(
      oscs_ConstString name, 
      oscs_Double value
) ;

Sets the value of the attribute named name to value.

ostc_UnknownAttribute is thrown if there is no attribute with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_double.

virtual void setValue(
      oscs_ConstString name, 
      ostc_OID* value
) ;

Sets the value of the attribute named name to value.

ostc_UnknownAttribute is thrown if there is no attribute with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_OID*.

virtual void setValue(
      oscs_ConstString name, 
      void* value, 
      oscs_Uint32 length
) ;

Sets the value of the attribute named name to the bit stream value.

length is the length of value.

ostc_UnknownAttribute is thrown if there is no attribute with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_binary.



[previous] [next]