geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::BatchStatusServer Class Reference

#include <BatchStatus.hpp>

Inheritance diagram for geopm::BatchStatusServer:
Inheritance graph
[legend]
Collaboration diagram for geopm::BatchStatusServer:
Collaboration graph
[legend]

Public Member Functions

 BatchStatusServer (int other_pid, const std::string &server_key)
 
 BatchStatusServer (int other_pid, const std::string &server_key, const std::string &fifo_prefix)
 
 BatchStatusServer (const BatchStatusServer &other)=delete
 
BatchStatusServeroperator= (const BatchStatusServer &other)=delete
 
virtual ~BatchStatusServer ()
 
- Public Member Functions inherited from geopm::BatchStatusImp
 BatchStatusImp (int read_fd, int write_fd)
 
virtual ~BatchStatusImp ()=default
 
void send_message (char msg) override
 Send an integer to the other process. More...
 
char receive_message (void) override
 Receive any integer from the other process. More...
 
void receive_message (char expect) override
 Receive specified integer from the other process. More...
 
- Public Member Functions inherited from geopm::BatchStatus
 BatchStatus ()=default
 
virtual ~BatchStatus ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from geopm::BatchStatus
static std::unique_ptr< BatchStatusmake_unique_server (int client_pid, const std::string &server_key)
 
static std::unique_ptr< BatchStatusmake_unique_client (const std::string &server_key)
 
- Static Public Attributes inherited from geopm::BatchStatus
static constexpr char M_MESSAGE_READ = 'r'
 
static constexpr char M_MESSAGE_WRITE = 'w'
 
static constexpr char M_MESSAGE_CONTINUE = 'c'
 
static constexpr char M_MESSAGE_QUIT = 'q'
 
static constexpr char M_MESSAGE_TERMINATE = 't'
 
- Protected Member Functions inherited from geopm::BatchStatusImp
void check_return (int ret, const std::string &func_name)
 
- Protected Attributes inherited from geopm::BatchStatusImp
int m_read_fd
 
int m_write_fd
 
- Static Protected Attributes inherited from geopm::BatchStatusImp
static constexpr const char * M_DEFAULT_FIFO_PREFIX
 

Constructor & Destructor Documentation

◆ BatchStatusServer() [1/3]

geopm::BatchStatusServer::BatchStatusServer ( int  other_pid,
const std::string &  server_key 
)

The constructor which is called by the server.

◆ BatchStatusServer() [2/3]

geopm::BatchStatusServer::BatchStatusServer ( int  other_pid,
const std::string &  server_key,
const std::string &  fifo_prefix 
)

◆ BatchStatusServer() [3/3]

geopm::BatchStatusServer::BatchStatusServer ( const BatchStatusServer other)
delete

◆ ~BatchStatusServer()

geopm::BatchStatusServer::~BatchStatusServer ( )
virtual

Member Function Documentation

◆ operator=()

BatchStatusServer& geopm::BatchStatusServer::operator= ( const BatchStatusServer other)
delete

The documentation for this class was generated from the following files: