Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+47
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* MainHandler for SituationReplay
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Hanna E. Rathje, SLSE, 2016-01-13
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "dds_handler.h"
|
||||
#include "logger.h"
|
||||
#include <SituationReplay/srp_db.h>
|
||||
|
||||
namespace NGLDB
|
||||
{
|
||||
template <typename DB> class DbServiceHandler;
|
||||
}
|
||||
|
||||
namespace SituationReplay
|
||||
{
|
||||
class DbReader;
|
||||
class HandlerSituationReplay;
|
||||
using DbHandler = NGLDB::DbServiceHandler<DatabaseInterface>;
|
||||
|
||||
class MainHandler final
|
||||
{
|
||||
public:
|
||||
MainHandler();
|
||||
~MainHandler();
|
||||
|
||||
bool init(const ConnectionParams &input,
|
||||
const ConnectionParams &output);
|
||||
|
||||
private:
|
||||
bool initSrpHandler(int partitionIdIn, int partitionIdOut);
|
||||
|
||||
private:
|
||||
std::unique_ptr<HandlerSituationReplay> m_handlerSrp;
|
||||
std::shared_ptr<DdsHandler> m_ddsInterface;
|
||||
std::shared_ptr<DbHandler> m_dbHandler;
|
||||
std::shared_ptr<DbReader> m_dbReader;
|
||||
NGL::INGLLogger &m_logger;
|
||||
|
||||
};
|
||||
} // namespace SituationReplay
|
||||
Reference in new issue
Block a user