6 #ifndef BATCHCLIENT_HPP_INCLUDE
7 #define BATCHCLIENT_HPP_INCLUDE
49 static std::unique_ptr<BatchClient>
make_unique(
const std::string &server_key,
83 int num_signal,
int num_control);
85 std::shared_ptr<BatchStatus> batch_status,
86 std::shared_ptr<SharedMemory> signal_shmem,
87 std::shared_ptr<SharedMemory> control_shmem);
90 void write_batch(std::vector<double> settings)
override;
95 std::shared_ptr<BatchStatus> m_batch_status;
96 std::shared_ptr<SharedMemory> m_signal_shmem;
97 std::shared_ptr<SharedMemory> m_control_shmem;
Interface that will attach to a batch server. The batch server that it connects to is typically creat...
Definition: BatchClient.hpp:24
virtual void write_batch(std::vector< double > settings)=0
Ask batch server to write all of the control values.
virtual ~BatchClient()=default
virtual void stop_batch(void)=0
Send message to batch server asking it to quit.
virtual std::vector< double > read_batch(void)=0
Ask batch server to read all signal values and return result.
static std::unique_ptr< BatchClient > make_unique(const std::string &server_key, double timeout, int num_signal, int num_control)
Factory method to create a pointer to a BatchClient object.
Definition: BatchClient.cpp:21
Definition: BatchClient.hpp:80
virtual ~BatchClientImp()=default
void stop_batch(void) override
Send message to batch server asking it to quit.
Definition: BatchClient.cpp:99
std::vector< double > read_batch(void) override
Ask batch server to read all signal values and return result.
Definition: BatchClient.cpp:60
void write_batch(std::vector< double > settings) override
Ask batch server to write all of the control values.
Definition: BatchClient.cpp:78
BatchClientImp(const std::string &server_key, double timeout, int num_signal, int num_control)
Definition: BatchClient.cpp:30
Definition: geopm_pio.h:387