Rosetta Utilities  2014.35
Public Member Functions | Private Attributes | List of all members
basic::message_listening::DbMoverMessageListener Class Reference

#include <DbMoverMessageListener.hh>

Public Member Functions

 DbMoverMessageListener ()
 
virtual void receive (std::string const &data)
 receive the protocol id and batch id from the slave More...
 
virtual bool request (std::string const &identifier, std::string &return_data)
 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::pointer::ReferenceCount
void ctor ()
 
virtual ~ReferenceCount ()
 Destructor. More...
 
Size ref_count () const
 Reference count. More...
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from utility::pointer::ReferenceCount
typedef platform::Size Size
 
typedef platform::Size size_type
 
- Protected Member Functions inherited from utility::pointer::ReferenceCount
 ReferenceCount ()
 Default constructor. More...
 
 ReferenceCount (ReferenceCount const &)
 Copy constructor. More...
 
ReferenceCountoperator= (ReferenceCount const &)
 Copy assignment. More...
 

Constructor & Destructor Documentation

basic::message_listening::DbMoverMessageListener::DbMoverMessageListener ( )

Member Function Documentation

void basic::message_listening::DbMoverMessageListener::deserialize_data ( std::string const &  data)
void basic::message_listening::DbMoverMessageListener::receive ( std::string const &  data)
virtual

receive the protocol id and batch id from the slave

Implements basic::message_listening::MessageListener.

References deserialize_data().

bool basic::message_listening::DbMoverMessageListener::request ( std::string const &  identifier,
std::string &  return_data 
)
virtual

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::message_listening::MessageListener.

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

Member Data Documentation

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

Referenced by deserialize_data(), and request().

numeric::Size basic::message_listening::DbMoverMessageListener::protocol_id_
private

Referenced by deserialize_data(), and request().


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