Logo Search packages:      
Sourcecode: jaula version File versions

void JAULA::Value::set ( Value const &  origin  )  throw (Bad_Data_Type) [virtual, inherited]

Copies the contents of one instance into another.

origin Reference to the value to be copied.
Bad_Data_Type This exception is launched in case that origin and destination value types are different.

Reimplemented in JAULA::Value_Array, JAULA::Value_Boolean, JAULA::Value_Null, JAULA::Value_Number, JAULA::Value_Number_Int, JAULA::Value_Object, and JAULA::Value_String.

Definition at line 61 of file jaula_value.cc.

References JAULA::Value::Type_.

Referenced by JAULA::Value_String::set(), JAULA::Value_Object::set(), JAULA::Value_Number_Int::set(), JAULA::Value_Number::set(), JAULA::Value_Null::set(), JAULA::Value_Boolean::set(), and JAULA::Value_Array::set().

    if (Type_ != origin.getType())
      throw Bad_Data_Type("Origin and destination value types do not match"
        , "checking value types"
        , "Value::set(Value const &)");

Generated by  Doxygen 1.6.0   Back to index