mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 01:51:45 +00:00
Refactor TransportFactory to RAII
* Remove explicit Initialize and Terminate states, map them onto ctor/dtor * Remove no longer needed Shutdown state * Remove deprecated SetTransport()
This commit is contained in:
committed by
Mohammad Al-Turany
parent
733794657c
commit
8bc21675af
@@ -14,6 +14,7 @@
|
||||
#include "FairMQSocketSHM.h"
|
||||
#include "FairMQPollerSHM.h"
|
||||
#include "FairMQShmDeviceCounter.h"
|
||||
#include <options/FairMQProgOptions.h>
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@@ -26,9 +27,7 @@
|
||||
class FairMQTransportFactorySHM : public FairMQTransportFactory
|
||||
{
|
||||
public:
|
||||
FairMQTransportFactorySHM(const std::string& id = "");
|
||||
|
||||
void Initialize(const FairMQProgOptions* config) override;
|
||||
FairMQTransportFactorySHM(const std::string& id = "", const FairMQProgOptions* config = nullptr);
|
||||
|
||||
FairMQMessagePtr CreateMessage() const override;
|
||||
FairMQMessagePtr CreateMessage(const size_t size) const override;
|
||||
@@ -43,9 +42,6 @@ class FairMQTransportFactorySHM : public FairMQTransportFactory
|
||||
|
||||
FairMQ::Transport GetType() const override;
|
||||
|
||||
void Shutdown() override;
|
||||
void Terminate() override;
|
||||
|
||||
void SendHeartbeats();
|
||||
|
||||
~FairMQTransportFactorySHM() override;
|
||||
|
Reference in New Issue
Block a user