37 lines
748 B
C++
37 lines
748 B
C++
/*
|
|
* FailureLogger.hh
|
|
*
|
|
* Created on: 15 èþí. 2020 ã.
|
|
* Author: LeonidTitov
|
|
*/
|
|
|
|
#ifndef UMLIBRARY_PROCESSING_FAILURE_FAILURELOGGER_HH_
|
|
|
|
#define UMLIBRARY_PROCESSING_FAILURE_FAILURELOGGER_HH_
|
|
|
|
#include "FailureManager.hh"
|
|
|
|
#include "../../logging/ILoggable.hh"
|
|
#include "../../systemic/Process.hpp"
|
|
#include "../../units/LogicalEntities.hpp"
|
|
|
|
namespace processing { namespace failure {
|
|
|
|
class FailureLogger : public logging::ILoggable, public systemic::IProcess {
|
|
public:
|
|
|
|
void process();
|
|
FailureLogger( const FailureManager & manager );
|
|
|
|
struct ErrorMessage {
|
|
units::ErrorCode error; //!<Êîä îøèáêè.
|
|
};
|
|
private:
|
|
const FailureManager & fm;
|
|
|
|
};
|
|
|
|
}}
|
|
|
|
#endif /* UMLIBRARY_PROCESSING_FAILURE_FAILURELOGGER_HH_ */
|