RSB  0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::spread::SpreadGroup Class Reference

#include <SpreadGroup.h>

Collaboration diagram for rsb::spread::SpreadGroup:
Collaboration graph

Public Member Functions

 SpreadGroup (const std::string &n)
virtual ~SpreadGroup ()
std::string getName () const
virtual void join (SpreadConnectionPtr con)
 Joins it's group on the given connection.
virtual void leave (SpreadConnectionPtr con)
 Leaves it's group on the given connection.

Private Member Functions

void handleRetCode (const int &code, const std::string &actionName)

Private Attributes

std::string name
rsc::logging::LoggerPtr logger
SpreadConnectionPtr con

Detailed Description

Author
swrede

Definition at line 43 of file SpreadGroup.h.

Constructor & Destructor Documentation

rsb::spread::SpreadGroup::SpreadGroup ( const std::string &  n)

Definition at line 43 of file SpreadGroup.cpp.

References logger.

rsb::spread::SpreadGroup::~SpreadGroup ( )
virtual

Definition at line 48 of file SpreadGroup.cpp.

References logger, and name.

Member Function Documentation

string rsb::spread::SpreadGroup::getName ( ) const

Definition at line 52 of file SpreadGroup.cpp.

References name.

void rsb::spread::SpreadGroup::handleRetCode ( const int &  code,
const std::string &  actionName 
)
private

Definition at line 78 of file SpreadGroup.cpp.

References logger, and name.

Referenced by join(), and leave().

Here is the caller graph for this function:

void rsb::spread::SpreadGroup::join ( SpreadConnectionPtr  con)
virtual

Joins it's group on the given connection.

Parameters
conthe connection to join on
Exceptions
CommExceptionspread error joining

Definition at line 56 of file SpreadGroup.cpp.

References handleRetCode(), and name.

Here is the call graph for this function:

void rsb::spread::SpreadGroup::leave ( SpreadConnectionPtr  con)
virtual

Leaves it's group on the given connection.

Parameters
conthe connection to leave on
Exceptions
CommExceptionspread error leaving

Definition at line 67 of file SpreadGroup.cpp.

References handleRetCode(), and name.

Here is the call graph for this function:

Member Data Documentation

SpreadConnectionPtr rsb::spread::SpreadGroup::con
private

Definition at line 72 of file SpreadGroup.h.

rsc::logging::LoggerPtr rsb::spread::SpreadGroup::logger
private

Definition at line 71 of file SpreadGroup.h.

Referenced by handleRetCode(), SpreadGroup(), and ~SpreadGroup().

std::string rsb::spread::SpreadGroup::name
private

Definition at line 70 of file SpreadGroup.h.

Referenced by getName(), handleRetCode(), join(), leave(), and ~SpreadGroup().


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