TwiceAsNice  2019-02-18
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Basda::VinoImagePushServiceWorker< Type, RingBufferDataType > Class Template Reference

#include <CameraImagePushServiceWorkerImpl.h>

Inheritance diagram for Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >:
Inheritance graph
Collaboration diagram for Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >:
Collaboration graph

Classes

struct  DeviceAsyncImpl
 

Public Member Functions

 VinoImagePushServiceWorker (const Nice::JointPtr &_config)
 
virtual ~VinoImagePushServiceWorker ()
 
virtual void init ()
 
virtual void deinit ()
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual void work ()
 
virtual void idleOffline ()
 wait for a state change. More...
 
virtual void idleOnline ()
 wait for a state change. More...
 
 VinoImagePushServiceWorker (const Nice::JointPtr &_config)
 
virtual ~VinoImagePushServiceWorker ()
 
virtual void init ()
 
virtual void deinit ()
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual void work ()
 
virtual void idleOffline ()
 wait for a state change. More...
 
virtual void idleOnline ()
 wait for a state change. More...
 
 VinoImagePushServiceWorker (const Nice::JointPtr &_config)
 
virtual ~VinoImagePushServiceWorker ()
 
virtual void init ()
 
virtual void deinit ()
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual void work ()
 
virtual void idleOffline ()
 wait for a state change. More...
 
virtual void idleOnline ()
 wait for a state change. More...
 
- Public Member Functions inherited from Basda::ServiceWorker
const Nice::JointPtrconfig ()
 
Nice::JointPtr cfg ()
 
Nice::JointPtr var ()
 
virtual const std::string & name ()
 
virtual WorkerThreadPtr worker ()
 
virtual Nice::Monitormonitor ()
 
virtual void lock ()
 
virtual void unlock ()
 
bool stateIsSettled ()
 
bool stateHasChanged ()
 
void changeState (Basda::ServiceState _state)
 change state to a new state If the state is the current state, or a negative state, do nothing. Otherwise change the "next" state in the state machine and notify all threads. More...
 
bool tryChangeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time::seconds(0.0))
 change state to a new state More...
 
void waitForState (Basda::ServiceState _state)
 wait (indefinitely) until the worker has reached a spcifici state More...
 
bool timedWaitForState (Basda::ServiceState _state, const Nice::Time &_timeout)
 wait (indefinitely) until the worker has reached a specific state More...
 
bool changeStateOnlyFromTo (Basda::ServiceState _from, Basda::ServiceState _to)
 wait (indefinitely) until the worker has reached a spcifici state More...
 
Basda::ServiceState state ()
 
Basda::ServiceState stateNow ()
 
Basda::ServiceState stateNext ()
 
Basda::ServiceState stateLast ()
 
bool isTransit ()
 
bool isTerminated ()
 
const Nice::JointPtrconfig ()
 
Nice::JointPtr cfg ()
 
Nice::JointPtr var ()
 
virtual const std::string & name ()
 
virtual WorkerThreadPtr worker ()
 
virtual Nice::Monitormonitor ()
 
virtual void lock ()
 
virtual void unlock ()
 
bool stateIsSettled ()
 
bool stateHasChanged ()
 
void changeState (Basda::ServiceState _state)
 
bool tryChangeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time::seconds(0.0))
 
void waitForState (Basda::ServiceState _state)
 
bool timedWaitForState (Basda::ServiceState _state, const Nice::Time &_timeout)
 
bool changeStateOnlyFromTo (Basda::ServiceState _from, Basda::ServiceState _to)
 
Basda::ServiceState state ()
 
Basda::ServiceState stateNow ()
 
Basda::ServiceState stateNext ()
 
Basda::ServiceState stateLast ()
 
bool isTransit ()
 
bool isTerminated ()
 

Private Types

typedef IceUtil::Handle< RingBufferDataType > RingBufferDataTypePtr
 
typedef VinoDevice< Type, RingBufferDataType > VinoDeviceType
 
typedef IceUtil::Handle< VinoDeviceTypeVinoDeviceTypePtr
 
typedef std::vector< Basda::ServiceLitePtrSeqServiceLitePtr
 
typedef IceUtil::Handle< RingBufferDataType > RingBufferDataTypePtr
 
typedef VinoDevice< Type, RingBufferDataType > VinoDeviceType
 
typedef IceUtil::Handle< VinoDeviceTypeVinoDeviceTypePtr
 
typedef std::vector< Basda::ServiceLitePtrSeqServiceLitePtr
 
typedef IceUtil::Handle< RingBufferDataType > RingBufferDataTypePtr
 
typedef VinoDevice< Type, RingBufferDataType > VinoDeviceType
 
typedef IceUtil::Handle< VinoDeviceTypeVinoDeviceTypePtr
 
typedef std::vector< Basda::ServiceLitePtrSeqServiceLitePtr
 

Private Member Functions

void loadAllOverlay ()
 
void loadAllOverlay ()
 
void loadAllOverlay ()
 

Private Attributes

VinoDeviceTypePtr m_device
 
DeviceAsyncImpl m_deviceAsync
 
SeqServiceLitePtr m_overlays
 

Additional Inherited Members

- Protected Types inherited from Basda::ServiceWorker
typedef void(ServiceWorker::* ServiceWorkerMemFn) ()
 
typedef Branch BranchTable[6][6]
 
typedef IceUtil::Handle< WorkerThreadWorkerThreadPtr
 
typedef void(ServiceWorker::* ServiceWorkerMemFn) ()
 
typedef Branch BranchTable[6][6]
 
typedef IceUtil::Handle< WorkerThreadWorkerThreadPtr
 
- Protected Member Functions inherited from Basda::ServiceWorker
 ServiceWorker (const Nice::JointPtr &_jointPtr)
 ctor More...
 
virtual ~ServiceWorker ()
 dtor Does nothing (in this base class) More...
 
void triggerState (const Basda::ServiceStateMachine &_state)
 change state to a new state More...
 
void sendStateStatus (const std::string &_action, int _percent)
 
void setState (Basda::ServiceState _next)
 
virtual void waitForNewState ()
 
virtual bool timedWaitForNewState (const Nice::Time &_timeout)
 
virtual void preinit ()
 
virtual void abort ()
 does nothing. More...
 
virtual void stop ()
 does nothing. More...
 
virtual void packin ()
 schedule ONLINE as the next target state. More...
 
virtual void terminate ()
 schedule EXIT as the next target state. More...
 
virtual void errorOffline ()
 set the target state to OFFLINE. More...
 
virtual void errorStandby ()
 set the target state to OFFLINE. More...
 
virtual void errorOnline ()
 set the target state to OFFLINE. More...
 
virtual void errorWorking ()
 set the target state to OFFLINE. More...
 
virtual void idleStandby ()
 wait for a state change. More...
 
 ServiceWorker (const Nice::JointPtr &_jointPtr)
 
virtual ~ServiceWorker ()
 
void triggerState (const Basda::ServiceStateMachine &_state)
 
void sendStateStatus (const std::string &_action, int _percent)
 
void setState (Basda::ServiceState _next)
 
virtual void waitForNewState ()
 
virtual bool timedWaitForNewState (const Nice::Time &_timeout)
 
virtual void preinit ()
 
virtual void abort ()
 
virtual void stop ()
 
virtual void packin ()
 
virtual void terminate ()
 
virtual void errorOffline ()
 
virtual void errorStandby ()
 
virtual void errorOnline ()
 
virtual void errorWorking ()
 
virtual void idleStandby ()
 
- Protected Attributes inherited from Basda::ServiceWorker
Nice::JointPtr m_config
 
Nice::PropertyPtr m_state
 
std::string m_name
 
- Static Protected Attributes inherited from Basda::ServiceWorker
static BranchTable s_stateTable
 A table which tells which state should go via which intermediate state to a target state. The 6 states are SHUTDOWN, OFFLINE, STANDBY, ONLINE, WORKING and ERROR. The principles are that. More...
 

Member Typedef Documentation

◆ RingBufferDataTypePtr [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef IceUtil::Handle<RingBufferDataType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::RingBufferDataTypePtr
private

◆ RingBufferDataTypePtr [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef IceUtil::Handle<RingBufferDataType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::RingBufferDataTypePtr
private

◆ RingBufferDataTypePtr [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef IceUtil::Handle<RingBufferDataType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::RingBufferDataTypePtr
private

◆ SeqServiceLitePtr [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef std::vector<Basda::ServiceLitePtr> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::SeqServiceLitePtr
private

◆ SeqServiceLitePtr [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef std::vector<Basda::ServiceLitePtr> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::SeqServiceLitePtr
private

◆ SeqServiceLitePtr [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef std::vector<Basda::ServiceLitePtr> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::SeqServiceLitePtr
private

◆ VinoDeviceType [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef VinoDevice<Type, RingBufferDataType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoDeviceType
private

◆ VinoDeviceType [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef VinoDevice<Type, RingBufferDataType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoDeviceType
private

◆ VinoDeviceType [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef VinoDevice<Type, RingBufferDataType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoDeviceType
private

◆ VinoDeviceTypePtr [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef IceUtil::Handle<VinoDeviceType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoDeviceTypePtr
private

◆ VinoDeviceTypePtr [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef IceUtil::Handle<VinoDeviceType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoDeviceTypePtr
private

◆ VinoDeviceTypePtr [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
typedef IceUtil::Handle<VinoDeviceType> Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoDeviceTypePtr
private

Constructor & Destructor Documentation

◆ VinoImagePushServiceWorker() [1/3]

template<typename Type , typename RingBufferDataType >
Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoImagePushServiceWorker ( const Nice::JointPtr _config)

◆ ~VinoImagePushServiceWorker() [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::~VinoImagePushServiceWorker ( )
inlinevirtual

◆ VinoImagePushServiceWorker() [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoImagePushServiceWorker ( const Nice::JointPtr _config)

◆ ~VinoImagePushServiceWorker() [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::~VinoImagePushServiceWorker ( )
inlinevirtual

◆ VinoImagePushServiceWorker() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::VinoImagePushServiceWorker ( const Nice::JointPtr _config)

◆ ~VinoImagePushServiceWorker() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::~VinoImagePushServiceWorker ( )
inlinevirtual

Member Function Documentation

◆ activate() [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::activate ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ activate() [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::activate ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ activate() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::activate ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ deactivate() [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::deactivate ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ deactivate() [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::deactivate ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ deactivate() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::deactivate ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ deinit() [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::deinit ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ deinit() [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::deinit ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ deinit() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::deinit ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ idleOffline() [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::idleOffline ( )
virtual

wait for a state change.


Reimplemented from Basda::ServiceWorker.

◆ idleOffline() [2/3]

template<typename Type , typename RingBufferDataType >
void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::idleOffline ( )
virtual

wait for a state change.


Reimplemented from Basda::ServiceWorker.

◆ idleOffline() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::idleOffline ( )
virtual

wait for a state change.


Reimplemented from Basda::ServiceWorker.

◆ idleOnline() [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::idleOnline ( )
virtual

wait for a state change.


Reimplemented from Basda::ServiceWorker.

◆ idleOnline() [2/3]

template<typename Type , typename RingBufferDataType >
void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::idleOnline ( )
virtual

wait for a state change.


Reimplemented from Basda::ServiceWorker.

◆ idleOnline() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::idleOnline ( )
virtual

wait for a state change.


Reimplemented from Basda::ServiceWorker.

◆ init() [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::init ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ init() [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::init ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ init() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::init ( )
inlinevirtual

Implements Basda::ServiceWorker.

◆ loadAllOverlay() [1/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::loadAllOverlay ( )
private

◆ loadAllOverlay() [2/3]

template<typename Type , typename RingBufferDataType >
void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::loadAllOverlay ( )
private

◆ loadAllOverlay() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::loadAllOverlay ( )
private

◆ work() [1/3]

template<typename Type , typename RingBufferDataType >
void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::work ( )
virtual

Implements Basda::ServiceWorker.

◆ work() [2/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::work ( )
virtual

Implements Basda::ServiceWorker.

◆ work() [3/3]

template<typename Type , typename RingBufferDataType = Image<Type>>
virtual void Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::work ( )
virtual

Implements Basda::ServiceWorker.

Member Data Documentation

◆ m_device

template<typename Type , typename RingBufferDataType = Image<Type>>
VinoDeviceTypePtr Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::m_device
private

◆ m_deviceAsync

template<typename Type , typename RingBufferDataType = Image<Type>>
DeviceAsyncImpl Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::m_deviceAsync
private

◆ m_overlays

template<typename Type , typename RingBufferDataType = Image<Type>>
SeqServiceLitePtr Basda::VinoImagePushServiceWorker< Type, RingBufferDataType >::m_overlays
private

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