Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+49
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* Handler for all marker objects
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by hjl, SLSE, 2016-04-12
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "dds_handler.h"
|
||||
#include <MarkerManagement/mrk_db.h>
|
||||
|
||||
namespace MarkerManagement
|
||||
{
|
||||
// Forwarddeclarations
|
||||
class DdsHandler;
|
||||
class ObjectSnapshot;
|
||||
|
||||
class HandlerSnapshot final
|
||||
: protected Interface::Fts::SnapshotModifyRequestHandler
|
||||
, protected Interface::Fts::SnapshotRemoveRequestHandler
|
||||
{
|
||||
public:
|
||||
explicit HandlerSnapshot(const std::shared_ptr<DdsHandler> &ddsHandler,
|
||||
const std::shared_ptr<DatabaseInterface> &db);
|
||||
|
||||
~HandlerSnapshot();
|
||||
|
||||
bool init();
|
||||
|
||||
private: // methods
|
||||
void onSnapshotModifyRequest(const rti::core::SampleIdentity &cookie,
|
||||
const Snapshot &request) override final;
|
||||
Core::FunctionReplyObject snapshotCreateRequest(const Snapshot &request);
|
||||
Core::FunctionReplyObject snapshotModifyRequest(const Snapshot &request);
|
||||
void onSnapshotRemoveRequest(const rti::core::SampleIdentity &cookie,
|
||||
const Core::RemoveElementRequest &request) override final;
|
||||
|
||||
|
||||
private: // attributes
|
||||
std::shared_ptr<DdsHandler> m_ddsHandler;
|
||||
std::shared_ptr<DatabaseInterface> m_db;
|
||||
NGL::INGLLogger &m_logger;
|
||||
|
||||
QHash<int, ObjectSnapshot *> m_objectSnapshotMap;
|
||||
};
|
||||
|
||||
|
||||
} // namespace MarkerManagement
|
||||
Reference in new issue
Block a user