rogue
Loading...
Searching...
No Matches
include
rogue
protocols
rssi
Transport.h
Go to the documentation of this file.
1
17
#ifndef __ROGUE_PROTOCOLS_RSSI_TRANSPORT_H__
18
#define __ROGUE_PROTOCOLS_RSSI_TRANSPORT_H__
19
#include "
rogue/Directives.h
"
20
21
#include <stdint.h>
22
23
#include <memory>
24
25
#include "
rogue/Queue.h
"
26
#include "
rogue/interfaces/stream/Master.h
"
27
#include "
rogue/interfaces/stream/Slave.h
"
28
29
namespace
rogue
{
30
namespace
protocols {
31
namespace
rssi {
32
33
class
Controller;
34
45
class
Transport
:
public
rogue::interfaces::stream::Master
,
public
rogue::interfaces::stream::Slave
{
46
// RSSI controller backend.
47
std::shared_ptr<rogue::protocols::rssi::Controller> cntl_;
48
49
public
:
60
static
std::shared_ptr<rogue::protocols::rssi::Transport>
create
();
61
63
static
void
setup_python
();
64
72
Transport
();
73
75
~Transport
();
76
81
void
setController
(std::shared_ptr<rogue::protocols::rssi::Controller> cntl);
82
87
void
acceptFrame
(std::shared_ptr<rogue::interfaces::stream::Frame> frame);
88
};
89
90
// Convienence
91
typedef
std::shared_ptr<rogue::protocols::rssi::Transport>
TransportPtr
;
92
93
}
// namespace rssi
94
}
// namespace protocols
95
};
// namespace rogue
96
97
#endif
Directives.h
Queue.h
rogue::interfaces::stream::Master
Stream master endpoint.
Definition
Master.h:65
rogue::interfaces::stream::Slave
Stream slave endpoint and default frame pool.
Definition
Slave.h:72
rogue::protocols::rssi::Transport
RSSI transport endpoint.
Definition
Transport.h:45
rogue::protocols::rssi::Transport::acceptFrame
void acceptFrame(std::shared_ptr< rogue::interfaces::stream::Frame > frame)
Accepts a frame from the upstream stream interface.
Definition
Transport.cpp:67
rogue::protocols::rssi::Transport::create
static std::shared_ptr< rogue::protocols::rssi::Transport > create()
Creates a new transport endpoint instance.
Definition
Transport.cpp:39
rogue::protocols::rssi::Transport::Transport
Transport()
Constructs a transport endpoint.
Definition
Transport.cpp:56
rogue::protocols::rssi::Transport::setup_python
static void setup_python()
Registers Python bindings for this class.
Definition
Transport.cpp:44
rogue::protocols::rssi::Transport::~Transport
~Transport()
Destroys the transport endpoint.
Definition
Transport.cpp:59
rogue::protocols::rssi::Transport::setController
void setController(std::shared_ptr< rogue::protocols::rssi::Controller > cntl)
Attaches the RSSI controller.
Definition
Transport.cpp:62
rogue::protocols::rssi::TransportPtr
std::shared_ptr< rogue::protocols::rssi::Transport > TransportPtr
Definition
Transport.h:91
rogue
Definition
EnableSharedFromThis.h:25
Master.h
Slave.h
Generated by
1.9.8