company logo

TypedString :: TypedString - Constructor

In order to create typed strings, several constructors are supported. When creating a typed string by passing a string value, the string type is determined from the string value.

Implementation overview

Implementation details

  1. Create copy for typed string
    TypedString  :: TypedString ( odaba::TypedString &cTypedString )

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

    • cTypedString - Typed string

      A typed string string contains data in the object interchange format (OIF). Typed strings are used for passing key or instance values.

  2. to list
  3. Create empty type string
    TypedString  :: TypedString (  )

    The constructor creates an empty typed string.

  4. to list
  5. Create typed string from string
    TypedString  :: TypedString ( odaba::String &cString )

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

  6. to list
  7. - internal feature (not documented)
    TypedString  :: TypedString ( odaba::String &cString, odaba::StringTypes eStringType )
    • cString - Constant string object

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

    • eStringType - String type

      The stringtype provides the syntax format for coding complex data strings.

  8. to list
  9. Create typed string with complex data type definition
    TypedString  :: TypedString ( odaba::TypeDefinition &cTypeDefinition )

    The function creates an empty typed string for the data type passed in cTypeDefinition. The string type is set to ESDFString.

    • cTypeDefinition - Type definition

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

  10. to list
  11. - internal feature (not documented)
    TypedString  :: TypedString ( 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).

  12. to list