#include <ErrorCodeManager.h>
Public Member Functions | |
| ErrorCodeManager (void) | |
| ~ErrorCodeManager (void) | |
| size_t | GetNumber () const |
| bool | Contains (ErrorCode error_code) const |
| ErrorCode | Generate (const cl7::string_type &message) |
| void | Remove (ErrorCode error_code) |
| void | Clear () |
| const cl7::string_type & | GetMessage (ErrorCode error_code) const |
| const cl7::string_type & | operator[] (ErrorCode error_code) const |
| xl7::errorcodes::ErrorCodeManager::ErrorCodeManager | ( | void | ) |
Default constructor.
| xl7::errorcodes::ErrorCodeManager::~ErrorCodeManager | ( | void | ) |
Destructor.
| void xl7::errorcodes::ErrorCodeManager::Clear | ( | ) |
Removes all error codes from the registry.
| bool xl7::errorcodes::ErrorCodeManager::Contains | ( | ErrorCode | error_code | ) | const |
Checks whether a given error code has been registered.
| ErrorCode xl7::errorcodes::ErrorCodeManager::Generate | ( | const cl7::string_type & | message | ) |
Generates and registers a new error code with its corresponding message.
Registers a new error code with its corresponding message.
| const cl7::string_type & xl7::errorcodes::ErrorCodeManager::GetMessage | ( | ErrorCode | error_code | ) | const |
Returns the message associated with the given error code.
| size_t xl7::errorcodes::ErrorCodeManager::GetNumber | ( | ) | const [inline] |
Returns the number of registered error codes.
| const cl7::string_type& xl7::errorcodes::ErrorCodeManager::operator[] | ( | ErrorCode | error_code | ) | const [inline] |
Returns the message associated with the given error code.
| void xl7::errorcodes::ErrorCodeManager::Remove | ( | ErrorCode | error_code | ) |
Removes a given error code and its corresponding message from the registry.
1.7.1