company logo

Key :: operator= - Assignment operator

In order to assign key values by assignment operator (=), this operator has been provided.

In an environment not supporting operator overloading, use the assign() function instead.

Implementation details

odaba::Key & Key  :: operator= ( odaba::String &cString )

The function creates a key from the string passed in cString . The string is copied to the key. The string type is determined for the string value. When the string does not correspond to any type, the function throws an exception.

The string value is not validated when creating the type string, but will be validated later on, when applying to a complex data type.

  • cString - Constant string object

    When iPosition exceeds the string length or when the string is empty, the the function returns -1 (lower).