Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
basic::mpi::DbMoverMessageListener Class Reference

#include <DbMoverMessageListener.hh>

Inheritance diagram for basic::mpi::DbMoverMessageListener:
Inheritance graph
[legend]

Public Member Functions

 DbMoverMessageListener ()
 
void receive (std::string const &data) override
 receive the protocol id and batch id from the slave More...
 
bool request (std::string const &identifier, std::string &return_data) override
 check to see if we have a protocol id and batch id. If we have them then tell them to the slave. If we don't have them then tell the slave to make them More...
 
void deserialize_data (std::string const &data)
 
- Public Member Functions inherited from utility::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
 
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 
 VirtualBase (VirtualBase const &)=default
 
 VirtualBase (VirtualBase &&)=default
 
VirtualBaseoperator= (VirtualBase const &)=default
 
VirtualBaseoperator= (VirtualBase &&)=default
 

Private Attributes

numeric::Size protocol_id_
 
std::map< std::string,
numeric::Size
batch_ids_
 

Constructor & Destructor Documentation

basic::mpi::DbMoverMessageListener::DbMoverMessageListener ( )

Member Function Documentation

void basic::mpi::DbMoverMessageListener::deserialize_data ( std::string const &  data)
void basic::mpi::DbMoverMessageListener::receive ( std::string const &  data)
overridevirtual

receive the protocol id and batch id from the slave

Implements basic::mpi::MessageListener.

References deserialize_data().

bool basic::mpi::DbMoverMessageListener::request ( std::string const &  identifier,
std::string &  return_data 
)
overridevirtual

check to see if we have a protocol id and batch id. If we have them then tell them to the slave. If we don't have them then tell the slave to make them

Implements basic::mpi::MessageListener.

References batch_ids_, protocol_id_, and utility::to_string().

Member Data Documentation

std::map<std::string, numeric::Size> basic::mpi::DbMoverMessageListener::batch_ids_
private

Referenced by deserialize_data(), and request().

numeric::Size basic::mpi::DbMoverMessageListener::protocol_id_
private

Referenced by deserialize_data(), and request().


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