AREthGetValueString
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
This function can be used to read out a string from the object specified in the objectHandle parameter. For Enum data types, the function returns the symbolic value. Note:- At present, only the basic A_ASCIISTRING data type is supported.
- A corresponding syntax must be adhered to for specifying the access paths. The access path results from the database description of the value to be read (see also Syntax for Database-based Access Paths).
- The content of a Service Discovery message can also be read out with this function. Here, the value is accessed via a predefined access path (see also Syntax for Predefined SD Access Paths).
Parameters
-
objectHandle: Handle to a AUTOSAR Eth IL object, which must be completely described in the FIBEX database. The following objects are supported:
- Messages
- Fields
- Method calls: Handle to a method call that was created with AREthCreateMethodCall.
- valuePath: Path of the value to be read out. For specification of complex paths, a corresponding syntax must be adhered to.
- bufferLength: Length of the buffer parameter in bytes. If the selected buffer length is too small, the function copies only the number of characters (including null termination) that fit in the buffer.
- buffer: After execution, this parameter contains the null-terminated string. See BOM in SOME/IP UTF8 and UTF16 strings.
Return Values
- Number of copied bytes: In case of an error, the function returns 0, and the exact Error code can be queried with AREthGetLastError. See BOM in SOME/IP UTF8 and UTF16 strings.
Example
In this example, it is assumed that the created method is contained in the FIBEX database that is assigned to the CANoe configuration. The method has the Method ID 31, two input parameters Member_value1 and Member_value2, and a return parameter Result.- AREthFillValues
- AREthGetDestinationAddress
- AREthGetDestinationPort
- AREthGetInterfaceVersion
- AREthGetLength
- AREthGetMessageId
- AREthGetMessageType
- AREthGetProtocol
- AREthGetProtocolVersion
- AREthGetRequestId
- AREthGetReturnCode
- AREthGetSourceAddress
- AREthGetSourcePort
- AREthGetValue
- AREthGetValueDWord
- AREthGetValueFloat
- AREthGetValueInt64
- AREthGetValueLong
- AREthGetValuePhys
- AREthGetValueQWord
- AREthGetValueString
- AREthSetRequestId
- AREthSetReturnCode
- AREthSetValue
- AREthSetValueDWord
- AREthSetValueFloat
- AREthSetValueInt64
- AREthSetValueLong
- AREthSetValuePhys
- AREthSetValueQWord
- AREthSetValueString
- Syntax for Database-based Access Paths
- Syntax for Predefined Service Discovery (SD) Access Paths