38 lines
829 B
C++
Executable File
38 lines
829 B
C++
Executable File
/**
|
|
* Exercise object
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
#pragma once
|
|
|
|
#include "logger.h"
|
|
#include "main_handler.h"
|
|
|
|
#include <DDS/Core/function_reply_object.h>
|
|
|
|
namespace WarehouseGuez
|
|
{
|
|
class ObjectInjuryModel final
|
|
{
|
|
public:
|
|
explicit ObjectInjuryModel(MainHandler *mainHandler);
|
|
~ObjectInjuryModel() = default;
|
|
|
|
Core::FunctionReplyObject createObject(const Database::InjuryModelAgdusWh &data);
|
|
Core::FunctionReplyObject updateObject(const Database::InjuryModelAgdusWh &data);
|
|
Core::FunctionReplyObject removeObject();
|
|
|
|
int getId() const { return m_data.id; }
|
|
Database::InjuryModelAgdusWh getData() const { return m_data; }
|
|
|
|
protected:
|
|
void onPublishData();
|
|
|
|
private:
|
|
MainHandler *m_mainHandler;
|
|
Database::InjuryModelAgdusWh m_data;
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
}
|