|
WXP C++ Library Version 6.74.9
|
This class prints text to the display based on priorities.
More...
#include "../include/Message.h"
Public Member Functions | |
| int | init () |
| Message (const char *str) | |
| Message () | |
| ~Message () | |
| int | destroy () |
| int | set (Messtype val) |
| int | set (const char *str) |
| Messtype | get () |
| int | getNum () |
| int | setPageLength (int val) |
| bool | check (Messtype type) |
| int | print (Messtype type, const char *mess,...) |
| int | hold (Messtype type, const char *mess) |
| int | printProgramInfo (const char *string) |
This class prints text to the display based on priorities.
| Message::Message | ( | const char * | str | ) |
| Message::Message | ( | ) |
Constructor. Initializes class values.
References init().
| Message::~Message | ( | ) |
Destructor. Closes files
References WXP::File::close(), and WXP::File::isOpen().
| bool Message::check | ( | Messtype | type | ) |
Checks the message level to see if particular type is set for printing
| type | Message type |
Referenced by hold(), print(), and printProgramInfo().
| Messtype Message::get | ( | ) |
Gets the message level
| int Message::getNum | ( | ) |
Gets the number of times message level has been changed
| int Message::hold | ( | Messtype | type, |
| const char * | mess | ||
| ) |
Pauses screen output depending on message level
References check(), and WXP::Wxp::pause().
Referenced by print().
| int Message::print | ( | Messtype | type, |
| const char * | mess, | ||
| ... | |||
| ) |
Prints string depending on whether its message level is to be displayed
| type | Strings message level |
| mess | Message format/string |
| ... | Additional parameters to use in format (see printf) |
References check(), WXP::File::close(), WXP::String::get(), WXP::DateTool::getCurrent(), hold(), WXP::File::isOpen(), WXP::File::open(), and WXP::File::printf().
| int Message::printProgramInfo | ( | const char * | string | ) |
Prints program information
| string | Program description |
References check(), and WXP::Wxp::getVersion().
| int Message::set | ( | const char * | str | ) |
Sets the message level from string
| str | String to decode to set message level |
References WXP::StrLib::getChar(), WXP::Strings::getInt(), WXP::Strings::getNum(), WXP::Strings::getString(), WXP::StrLib::iequal(), WXP::Strings::iequal(), WXP::File::open(), and WXP::String::set().
| int Message::set | ( | Messtype | val | ) |
| int Message::setPageLength | ( | int | val | ) |
Sets the page length for pausing output
| val | The length of a page in lines |