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
- Create copy for typed string
TypedString :: TypedString ( cTypedString ) - Create empty type string
TypedString :: TypedString (  ) - Create typed string from string
TypedString :: TypedString ( cString ) - - internal feature (not documented)
TypedString :: TypedString ( cString, eStringType ) - Create typed string with complex data type definition
TypedString :: TypedString ( cTypeDefinition ) - - internal feature (not documented)
TypedString :: TypedString ( cTypeDefinition, cString )
Implementation details
-
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.
to list
- cTypedString
- Typed string
-
Create empty type string
TypedString  :: TypedString (  )
The constructor creates an empty typed string.
to list
-
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).
to list
- cString
- Constant string object
-
- 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.
to list
- cString
- Constant string object
-
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.
to list
- cTypeDefinition
- Type definition
-
- 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).
to list
- cTypeDefinition
- Type definition