47 lines
1.1 KiB
C++
Executable File
47 lines
1.1 KiB
C++
Executable File
/**
|
|
* Exercise object
|
|
* $Id$
|
|
* $HeadURL$
|
|
* Philipp Last
|
|
*/
|
|
#pragma once
|
|
|
|
#include "dds_handler.h"
|
|
#include "logger.h"
|
|
|
|
#include <DDS/Core/function_reply_object.h>
|
|
|
|
// Generated
|
|
#include <Evaluations/evl_db.h>
|
|
|
|
|
|
namespace Evaluations
|
|
{
|
|
class ObjectSanNineLiner final
|
|
{
|
|
public:
|
|
ObjectSanNineLiner(const std::shared_ptr<DdsHandler> &ddsHandler,
|
|
const std::shared_ptr<DatabaseInterface> &db);
|
|
~ObjectSanNineLiner() = default;
|
|
|
|
Core::FunctionReplyObject createObject(const Database::SanNineLiner &data);
|
|
Core::FunctionReplyObject updateObject(const Database::SanNineLiner &data);
|
|
Core::FunctionReplyObject removeObject();
|
|
|
|
int getId() const { return m_data.id; }
|
|
void addLineCategory(const Database::SanCategoryLine &data);
|
|
void removeCategoryLines();
|
|
|
|
void onPublishData();
|
|
protected:
|
|
|
|
private:
|
|
std::shared_ptr<DdsHandler> m_ddsHandler;
|
|
std::shared_ptr<DatabaseInterface> m_db;
|
|
Database::SanNineLiner m_data;
|
|
std::vector<Database::SanCategoryLine> m_lines;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
}
|