INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
orcaifaceimpl::ConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType > Class Template Reference
Inherits orcaifaceimpl::ConsumerSubscriber, and orcaifaceimpl::AbstractConsumer< ObjectType >. Inherited by orcalog::GenericAutoLogger< orca::DriveBicycle, orca::DriveBicycleConsumer, orca::DriveBicycleData, DriveBicycleLogWriter >, orcalog::GenericAutoLogger< orca::Gps, orca::GpsConsumer, orca::GpsData, GpsLogWriter >, orcalog::GenericAutoLogger< orca::Image, orca::ImageConsumer, orca::ImageDataPtr, ImageLogWriter >, orcalog::GenericAutoLogger< orca::Localise2d, orca::Localise2dConsumer, orca::Localise2dData, Localise2dLogWriter >, orcalog::GenericAutoLogger< orca::Localise3d, orca::Localise3dConsumer, orca::Localise3dData, Localise3dLogWriter >, orcalog::GenericAutoLogger< orca::MultiCamera, orca::MultiCameraConsumer, orca::MultiCameraDataPtr, MultiCameraLogWriter >, orcalog::GenericAutoLogger< orca::Odometry2d, orca::Odometry2dConsumer, orca::Odometry2dData, Odometry2dLogWriter >, orcalog::GenericAutoLogger< orca::Odometry3d, orca::Odometry3dConsumer, orca::Odometry3dData, Odometry3dLogWriter >, orcalog::GenericSnapshotLogger< orca::DriveBicycle, orca::DriveBicycleConsumer, orca::DriveBicycleData, DriveBicycleLogWriter >, orcalog::GenericSnapshotLogger< orca::Gps, orca::GpsConsumer, orca::GpsData, GpsLogWriter >, orcalog::GenericSnapshotLogger< orca::Localise2d, orca::Localise2dConsumer, orca::Localise2dData, Localise2dLogWriter >, orcalog::GenericSnapshotLogger< orca::Localise3d, orca::Localise3dConsumer, orca::Localise3dData, Localise3dLogWriter >, orcalog::GenericSnapshotLogger< orca::Odometry2d, orca::Odometry2dConsumer, orca::Odometry2dData, Odometry2dLogWriter >, orcalog::GenericSnapshotLogger< orca::Odometry3d, orca::Odometry3dConsumer, orca::Odometry3dData, Odometry3dLogWriter >, orcaifaceimpl::BufferedConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >, orcaifaceimpl::NotifyingConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >, orcaifaceimpl::StoringConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >, and orcalogfactory::PathFollower2dAutoLogger.
Detailed Descriptiontemplate<class ProviderType, class ConsumerType, class ObjectType, class ConsumerTypeIType = ConsumerTypeI<ConsumerType,ObjectType>>
|
virtual void orcaifaceimpl::ConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >::dataEvent | ( | const ObjectType & | data | ) | [inline, virtual] |
This function is called when new data arrives to the consumer. Default implementation does nothing. Re-implement this callback in the derived class.
Reimplemented in orcaifaceimpl::BufferedConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >, orcaifaceimpl::PrintingConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >, orcaifaceimpl::StoringConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >, orcalog::GenericAutoLogger< ProviderType, ConsumerType, ObjectType, LogWriterType >, orcalog::GenericSnapshotLogger< ProviderType, ConsumerType, ObjectType, LogWriterType >, and orcasystemstatusutil::StatusConsumerImpl.
virtual bool orcaifaceimpl::ConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >::subscribeWithString | ( | const std::string & | proxyString, | |
gbxutilacfr::Stoppable * | activity, | |||
const std::string & | subsysName = "" , |
|||
int | retryIntervalSec = 2 , |
|||
int | retryNumber = -1 | |||
) | [inline, virtual] |
Tries to connect to remote interface with stringified proxy proxyString
. Will try to connect retryNumber
number of times (-1 means infinite), waiting for retryIntervalSec
[s] after each attempt. If succesful, tries to subscribe for data using the internal consumer interface. Catches appropriate exceptions. DOCUMENT!
Returns TRUE if subscribed succesfully, FALSE otherwise.
Implements orcaifaceimpl::ConsumerSubscriber.
virtual void orcaifaceimpl::ConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >::subscribeWithString | ( | const std::string & | proxyString | ) | [inline, virtual] |
Tries to connect to remote interface with stringified proxy proxyString
. If succesful, tries to subscribe for data using the internal consumer interface. Does not catch any exceptions.
Implements orcaifaceimpl::ConsumerSubscriber.
virtual void orcaifaceimpl::ConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >::unsubscribe | ( | ) | [inline, virtual] |
When previously subscribed, tries to connect to the internally-stored topic proxy and unsubscribes. When not currently subscribed, quietly returns.
Implements orcaifaceimpl::ConsumerSubscriber.
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)