Aimsun Next API Functions Log Window ( Meso)¶
Functions related to Displaying information to the Log Window¶
Print string to the Log Window¶
In C++ and Python¶
Explanation¶
Print a string in the Log window.
Format¶
int AMesoPrintString (void * simhandler, const char *string);
Parameters¶
- simhandler: simulator handler
- string: string to print
Output¶
- ≥ 0: No Error
- < 0: Error
Convert to ASCII string from unsigned short¶
In C++ and Python¶
Explanation¶
Convert to ASCII string from unsigned short. Aimsun uses unsigned short format to support languages that need UTF-16.
Format¶
const char * AMesoConvertToAsciiString (const unsigned short *string);
Parameters¶
- string: string to convert
Output¶
- Converted string to UTF-8
Convert to unsigned short from const char¶
In C++ and Python¶
Explanation¶
Convert to unsigned short from const char. Remember to delete[] the const unsigned short * in C APIS.
Format¶
const unsigned short * AMesoConvertFromAsciiString (const char *string);
Parameters¶
- string: string to convert
Output¶
- Converted string to UTF-16