company logo

Instance :: Instance - Instance constructor

The instance constructor provides several conversion functions in order to convert different string formats into instance values. When creating an instance by passing a string value, the string type is determined from the string value.

Implementation overview

Implementation details

  1. Copy instance
    Instance  :: Instance ( odaba::Instance &cInstance )

    The function duplicates the string value and the type definition from the typed string passed in cInstance. When the type definition is valid, the string will be converted into an internal instance.

    • cInstance - Instance

      The instance is passed as String, which is structured as ESDF data (object interchange format).

  2. to list
  3. Create empty instance
    Instance  :: Instance (  )
  4. to list
  5. Create instance from string value
    Instance  :: Instance ( odaba::String &cString )

    The function creates an instance from the string passed in cString. The string is copied to the instance. 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).

  6. to list
  7. - internal feature (not documented)
    Instance  :: Instance ( odaba::TypeDefinition &cTypeDefinition )
    • cTypeDefinition - Type definition

      Type definition refers to a type descriptor for a complex data type (structure), view or enumeration.

  8. to list
  9. - internal feature (not documented)
    Instance  :: Instance ( odaba::TypeDefinition &cTypeDefinition, odaba::String &cString )
    • cTypeDefinition - Type definition

      Type definition refers to a type descriptor for a complex data type (structure), view or enumeration.

    • cString - Constant string object

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

  10. to list