![]() |
Functions | |
MLPIRESULT | utilLogicGetSymbolList (MLPIHANDLE connection, const std::wstring &application, SymbolList &symbolList) |
MLPIRESULT | utilLogicInflateSymbol (MLPIHANDLE connection, const std::wstring &symbol, SymbolList &symbolList, MlpiLogicSymbolInformation &symbolInfo) |
MLPIRESULT | utilLogicGetSymbolListExtended (MLPIHANDLE connection, const std::wstring &application, SymbolList &symbolList) |
This module contains some useful functions and macros for logic handling.
Please note that this piece of source code is not directly part of the MLPI. You do not need this file to program against the MLPI. Nevertheless, at least parts of this file have been considered to be somewhat useful when using or learning to use MLPI functionality. It is therefore included without any support, but to act as sample code and source of inspiration.
|
inline |
This functions reads the list of variables of a given application and returns it as as a SymbolList container.
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[out] | symbolList | Container of strings which receives all symbols. Note that the container doesn't get cleared. New symbols only get added. |
Definition at line 136 of file mlpiLogicHelper.h.
References MLPI_FAILED, MLPI_S_OK, mlpiLogicGetSymbolsOfApplication(), and wcstok_r16().
Referenced by utilLogicGetSymbolListExtended().
|
inline |
Recursive function which checks if a symbol is an array or user defined structure and adds all array elements or struct elements also to the list of symbols.
[in] | connection | Handle for multiple connections. |
[in] | symbol | Name of application. |
[out] | symbolList | Container of strings which receives all symbols. Note that the container doesn't get cleared. New symbols only get added. |
[in,out] | symbolInfo | Used as optimization to minimize MLPI function calls and to reuse information from previous recursions. |
Definition at line 175 of file mlpiLogicHelper.h.
References MLPI_FAILED, MLPI_LOGIC_TYPE_ARRAY, MLPI_LOGIC_TYPE_UNSUPPORTED, MLPI_LOGIC_TYPE_USERDEF, MLPI_S_OK, mlpiLogicGetInformationOfSymbol(), and mlpiLogicGetInformationOfUserType().
Referenced by utilLogicGetSymbolListExtended().
|
inline |
This functions reads the extended list of variables of a given application and returns it as as a SymbolList container. The extended list includes each array element as well as all elements of user defines structs. Please note, that this list might get very long in case of massive use of arrays!
[in] | connection | Handle for multiple connections. |
[in] | application | Name of application. |
[out] | symbolList | Container of strings which receives all symbols. Note, that the container doesn't get cleared. New symbols only get added. |
Definition at line 267 of file mlpiLogicHelper.h.
References MLPI_FAILED, MLPI_LOGIC_TYPE_UNSUPPORTED, MLPI_S_OK, mlpiLogicReadMemoryAreaArrayChar(), mlpiLogicReadMemoryAreaArrayDouble(), mlpiLogicReadMemoryAreaArrayFloat(), mlpiLogicReadMemoryAreaArrayLlong(), mlpiLogicReadMemoryAreaArrayLong(), mlpiLogicReadMemoryAreaArrayShort(), mlpiLogicReadMemoryAreaArrayUchar(), mlpiLogicReadMemoryAreaArrayUllong(), mlpiLogicReadMemoryAreaArrayUlong(), mlpiLogicReadMemoryAreaArrayUshort(), mlpiLogicReadMemoryAreaBool8(), mlpiLogicReadMemoryAreaChar(), mlpiLogicReadMemoryAreaDouble(), mlpiLogicReadMemoryAreaFloat(), mlpiLogicReadMemoryAreaLlong(), mlpiLogicReadMemoryAreaLong(), mlpiLogicReadMemoryAreaShort(), mlpiLogicReadMemoryAreaUchar(), mlpiLogicReadMemoryAreaUllong(), mlpiLogicReadMemoryAreaUlong(), mlpiLogicReadMemoryAreaUshort(), mlpiLogicReadVariableBySymbolArrayBool8(), mlpiLogicReadVariableBySymbolArrayChar(), mlpiLogicReadVariableBySymbolArrayDouble(), mlpiLogicReadVariableBySymbolArrayFloat(), mlpiLogicReadVariableBySymbolArrayLlong(), mlpiLogicReadVariableBySymbolArrayLong(), mlpiLogicReadVariableBySymbolArrayShort(), mlpiLogicReadVariableBySymbolArrayUchar(), mlpiLogicReadVariableBySymbolArrayUllong(), mlpiLogicReadVariableBySymbolArrayUlong(), mlpiLogicReadVariableBySymbolArrayUshort(), mlpiLogicReadVariableBySymbolBool8(), mlpiLogicReadVariableBySymbolChar(), mlpiLogicReadVariableBySymbolDouble(), mlpiLogicReadVariableBySymbolFloat(), mlpiLogicReadVariableBySymbolLlong(), mlpiLogicReadVariableBySymbolLong(), mlpiLogicReadVariableBySymbolShort(), mlpiLogicReadVariableBySymbolString(), mlpiLogicReadVariableBySymbolUchar(), mlpiLogicReadVariableBySymbolUllong(), mlpiLogicReadVariableBySymbolUlong(), mlpiLogicReadVariableBySymbolUshort(), mlpiLogicWriteMemoryAreaArrayChar(), mlpiLogicWriteMemoryAreaArrayDouble(), mlpiLogicWriteMemoryAreaArrayFloat(), mlpiLogicWriteMemoryAreaArrayLlong(), mlpiLogicWriteMemoryAreaArrayLong(), mlpiLogicWriteMemoryAreaArrayShort(), mlpiLogicWriteMemoryAreaArrayUchar(), mlpiLogicWriteMemoryAreaArrayUllong(), mlpiLogicWriteMemoryAreaArrayUlong(), mlpiLogicWriteMemoryAreaArrayUshort(), mlpiLogicWriteMemoryAreaBool8(), mlpiLogicWriteMemoryAreaChar(), mlpiLogicWriteMemoryAreaDouble(), mlpiLogicWriteMemoryAreaFloat(), mlpiLogicWriteMemoryAreaLlong(), mlpiLogicWriteMemoryAreaLong(), mlpiLogicWriteMemoryAreaShort(), mlpiLogicWriteMemoryAreaUchar(), mlpiLogicWriteMemoryAreaUllong(), mlpiLogicWriteMemoryAreaUlong(), mlpiLogicWriteMemoryAreaUshort(), mlpiLogicWriteVariableBySymbolArrayBool8(), mlpiLogicWriteVariableBySymbolArrayChar(), mlpiLogicWriteVariableBySymbolArrayDouble(), mlpiLogicWriteVariableBySymbolArrayFloat(), mlpiLogicWriteVariableBySymbolArrayLlong(), mlpiLogicWriteVariableBySymbolArrayLong(), mlpiLogicWriteVariableBySymbolArrayShort(), mlpiLogicWriteVariableBySymbolArrayUchar(), mlpiLogicWriteVariableBySymbolArrayUllong(), mlpiLogicWriteVariableBySymbolArrayUlong(), mlpiLogicWriteVariableBySymbolArrayUshort(), mlpiLogicWriteVariableBySymbolBool8(), mlpiLogicWriteVariableBySymbolChar(), mlpiLogicWriteVariableBySymbolDouble(), mlpiLogicWriteVariableBySymbolFloat(), mlpiLogicWriteVariableBySymbolLlong(), mlpiLogicWriteVariableBySymbolLong(), mlpiLogicWriteVariableBySymbolShort(), mlpiLogicWriteVariableBySymbolString(), mlpiLogicWriteVariableBySymbolUchar(), mlpiLogicWriteVariableBySymbolUllong(), mlpiLogicWriteVariableBySymbolUlong(), mlpiLogicWriteVariableBySymbolUshort(), utilLogicGetSymbolList(), and utilLogicInflateSymbol().