TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | List of all members
Basda::CoConCard::CoConCardEvent Struct Reference

This is the implementation of the handler for the incoming events and function errors. More...

Inheritance diagram for Basda::CoConCard::CoConCardEvent:
Inheritance graph
Collaboration diagram for Basda::CoConCard::CoConCardEvent:
Collaboration graph

Public Member Functions

 CoConCardEvent (Basda::CoConCard *_card, Nice::JointPtr _config)
 Constructor. More...
 
 ~CoConCardEvent ()
 
void eventHandler (const std::string &_event)
 implementation of the event handler More...
 
void functionErrorHandler (const std::string _ret)
 implementation of the function error handler More...
 
void setCollision (int _collision)
 
 CoConCardEvent (Basda::CoConCard *_card, Nice::JointPtr _config)
 Constructor. More...
 
 ~CoConCardEvent ()
 
void eventHandler (const std::string &_event)
 implementation of the event handler More...
 
void functionErrorHandler (const std::string _ret)
 implementation of the function error handler More...
 
void setCollision (int _collision)
 
- Public Member Functions inherited from Basda::HandlerImpl
 HandlerImpl (Nice::JointPtr _config)
 Constructor. More...
 
 HandlerImpl (Nice::JointPtr _config)
 Constructor. More...
 
- Public Member Functions inherited from Basda::Handler
virtual ~Handler ()
 Construstor. More...
 
virtual ~Handler ()
 Construstor. More...
 

Private Attributes

Basda::CoConCardm_card
 

Additional Inherited Members

- Protected Attributes inherited from Basda::HandlerImpl
Nice::JointPtr m_config
 member of the configuration tree More...
 

Detailed Description

This is the implementation of the handler for the incoming events and function errors.

Author
Frank Kittmann
Version
09.06.24
Date
2009.06.24

Constructor & Destructor Documentation

◆ CoConCardEvent() [1/2]

Basda::CoConCard::CoConCardEvent::CoConCardEvent ( Basda::CoConCard _card,
Nice::JointPtr  _config 
)
inline

Constructor.

Parameters
_configthe root of the configuration tree

◆ ~CoConCardEvent() [1/2]

Basda::CoConCard::CoConCardEvent::~CoConCardEvent ( )
inline

◆ CoConCardEvent() [2/2]

Basda::CoConCard::CoConCardEvent::CoConCardEvent ( Basda::CoConCard _card,
Nice::JointPtr  _config 
)
inline

Constructor.

Parameters
_configthe root of the configuration tree

◆ ~CoConCardEvent() [2/2]

Basda::CoConCard::CoConCardEvent::~CoConCardEvent ( )
inline

Member Function Documentation

◆ eventHandler() [1/2]

void Basda::CoConCard::CoConCardEvent::eventHandler ( const std::string &  _event)
inlinevirtual

implementation of the event handler

Parameters
_eventthe event message
Exceptions
Basda::CoCon::CollisionDetectedException

Reimplemented from Basda::HandlerImpl.

◆ eventHandler() [2/2]

void Basda::CoConCard::CoConCardEvent::eventHandler ( const std::string &  _event)
inlinevirtual

implementation of the event handler

Parameters
_eventthe event message
Exceptions
Basda::CoCon::CollisionDetectedException

Reimplemented from Basda::HandlerImpl.

◆ functionErrorHandler() [1/2]

void Basda::CoConCard::CoConCardEvent::functionErrorHandler ( const std::string  _ret)
inlinevirtual

implementation of the function error handler

It logs the function error and throws the corresponding error.

Parameters
_errorNothe error number
Exceptions
Basda::CoCon::CollisionStillExistException
Basda::CoCon::NoStribesDetectedException
Basda::CoCon::StribesBrokenException

Reimplemented from Basda::HandlerImpl.

◆ functionErrorHandler() [2/2]

void Basda::CoConCard::CoConCardEvent::functionErrorHandler ( const std::string  _ret)
inlinevirtual

implementation of the function error handler

It logs the function error and throws the corresponding error.

Parameters
_errorNothe error number
Exceptions
Basda::CoCon::CollisionStillExistException
Basda::CoCon::NoStribesDetectedException
Basda::CoCon::StribesBrokenException

Reimplemented from Basda::HandlerImpl.

◆ setCollision() [1/2]

void Basda::CoConCard::CoConCardEvent::setCollision ( int  _collision)
inline

◆ setCollision() [2/2]

void Basda::CoConCard::CoConCardEvent::setCollision ( int  _collision)
inline

Member Data Documentation

◆ m_card

Basda::CoConCard * Basda::CoConCard::CoConCardEvent::m_card
private

The documentation for this struct was generated from the following file: