Public Member Functions

xl7::errorcodes::ErrorCodeManager Class Reference

#include <ErrorCodeManager.h>

Inheritance diagram for xl7::errorcodes::ErrorCodeManager:
cl7::designpatterns::Singleton< ErrorCodeManager >

List of all members.

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_typeGetMessage (ErrorCode error_code) const
const cl7::string_typeoperator[] (ErrorCode error_code) const

Constructor & Destructor Documentation

xl7::errorcodes::ErrorCodeManager::ErrorCodeManager ( void   ) 

Default constructor.

xl7::errorcodes::ErrorCodeManager::~ErrorCodeManager ( void   ) 

Destructor.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines