unCPC6
6.6.8
WinCC-OA implementation of UNICOS CPC
|
Utilities for Stepper Diagnostics panels. More...
Functions | |
dyn_string | unStepperInfo_getDiagnosticsInfo (const string &sAlias, const string &sApplicationName, const int iExpectedLength) |
Get diagnostics information for given alias. More... | |
dyn_string | unStepperInfo_getFileInfo (const string &sFileName, const string &sApplicationName, const int iExpectedLength) |
Reads stepper information data from files in "panels/vision/diagnostic/appname/*". More... | |
void | unStepperInfo_validateColumnsNumber (const dyn_string &dsLines, const int iExpectedLength) |
Checks if each line has expected number of columns and raises fwException in case this doesn't happen. More... | |
void | unStepperInfo_raiseAndDisplayError (const string &errorMsg) |
Raises error and displays message in pop up window. More... | |
string | unStepperInfo_getFileName (const string &sAliasName) |
Get name of the file where states or transitions data of a given alias is stored. More... | |
bool | unStepperInfo_isDigit (const char c) |
Checks if a character is a digit. More... | |
string | unStepperInfo_HTMLWrap (const string &sInput) |
Adds HTML code such that input string gets word-wrapping. More... | |
Variables | |
const char | CSV_FILE_DELIMITER = "@" |
Utilities for Stepper Diagnostics panels.
dyn_string unStepperInfo_getDiagnosticsInfo | ( | const string & | sAlias, |
const string & | sApplicationName, | ||
const int | iExpectedLength | ||
) |
Get diagnostics information for given alias.
[in] | sAlias | Alias name |
[in] | sApplicationName | Name of the application |
[in] | expectedLength | Expected number of columns |
References unStepperInfo_getFileInfo(), and unStepperInfo_getFileName().
dyn_string unStepperInfo_getFileInfo | ( | const string & | sFileName, |
const string & | sApplicationName, | ||
const int | iExpectedLength | ||
) |
Reads stepper information data from files in "panels/vision/diagnostic/appname/*".
[in] | sFileName | Name of the file |
[in] | sApplicationName | Name of the application |
[in] | expectedLength | Expected length of each row |
References unStepperInfo_raiseAndDisplayError(), and unStepperInfo_validateColumnsNumber().
Referenced by unStepperInfo_getDiagnosticsInfo().
void unStepperInfo_validateColumnsNumber | ( | const dyn_string & | dsLines, |
const int | iExpectedLength | ||
) |
Checks if each line has expected number of columns and raises fwException in case this doesn't happen.
[in] | dsLines | List of lines to be validated |
[in] | expectedLength | Expected length of each row |
References unStepperInfo_raiseAndDisplayError().
Referenced by unStepperInfo_getFileInfo().
void unStepperInfo_raiseAndDisplayError | ( | const string & | errorMsg | ) |
Raises error and displays message in pop up window.
[in] | errorMsg | Error message to display |
Referenced by unStepperInfo_getFileInfo(), and unStepperInfo_validateColumnsNumber().
string unStepperInfo_getFileName | ( | const string & | sAliasName | ) |
Get name of the file where states or transitions data of a given alias is stored.
Computes .csv file name as given by alias name without trailing digits
[in] | Alias | name |
References unStepperInfo_isDigit().
Referenced by unStepperInfo_getDiagnosticsInfo().
bool unStepperInfo_isDigit | ( | const char | c | ) |
Checks if a character is a digit.
[in] | char | Character to be checked |
Referenced by unStepperInfo_getFileName().
string unStepperInfo_HTMLWrap | ( | const string & | sInput | ) |
Adds HTML code such that input string gets word-wrapping.
[in] | sInput | Alias name |