TwiceAsNice  2019-02-18
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
Laos::BcuCameraCtrlDataServiceWorker< DataType > Class Template Reference

#include <LaosBcuCameraCtrlServiceWorker.h>

Inheritance diagram for Laos::BcuCameraCtrlDataServiceWorker< DataType >:
Inheritance graph
Collaboration diagram for Laos::BcuCameraCtrlDataServiceWorker< DataType >:
Collaboration graph

Public Member Functions

 BcuCameraCtrlDataServiceWorker (const Nice::JointPtr &_config)
 
virtual void startUp (int)
 
 BcuCameraCtrlDataServiceWorker (const Nice::JointPtr &_config)
 
virtual void startUp (int)
 
- Public Member Functions inherited from Basda::VinoCameraCtrlDataServiceWorker< DataType, Laos::WfcLoopData >
 VinoCameraCtrlDataServiceWorker (const Nice::JointPtr &_config)
 
 VinoCameraCtrlDataServiceWorker (const Nice::JointPtr &_config)
 
 VinoCameraCtrlDataServiceWorker (const Nice::JointPtr &_config)
 
virtual Basda::ImageBase readSingle ()
 
virtual Basda::ImageBase readSingle ()
 
virtual Basda::ImageBase readSingle ()
 
virtual void readEndless ()
 
virtual void readEndless ()
 
virtual void readEndless ()
 
virtual void readMulti (Nice::Int _num)
 
virtual void readMulti (Nice::Int _num)
 
virtual void readMulti (Nice::Int _num)
 
virtual Basda::ImageBase getImage (bool _start=false, Nice::Int _numimages=0)
 
virtual Basda::ImageBase getImage (bool _start=false, Nice::Int _numimages=0)
 
virtual Basda::ImageBase getImage (bool _start=false, Nice::Int _numimages=0)
 
virtual Basda::ImageBase getImageByIdx (Nice::Int _idx)
 
virtual Basda::ImageBase getImageByIdx (Nice::Int _idx)
 
virtual Basda::ImageBase getImageByIdx (Nice::Int _idx)
 
- Public Member Functions inherited from Basda::VinoCameraCtrlServiceWorkerSkeleton
 VinoCameraCtrlServiceWorkerSkeleton (const Nice::JointPtr &_config)
 
virtual ~VinoCameraCtrlServiceWorkerSkeleton ()
 
virtual void setProgram (Nice::Int _program)=0
 
virtual void setFramerate (double _framerate)=0
 
virtual void setBinning (Nice::U16 _bin)=0
 
virtual void setExposureTime (const Nice::Time &_expotime)=0
 
virtual void setExposureMode (Basda::ExpoModeType _expomode)=0
 
virtual void setGainMode (Nice::Int _gain)=0
 
virtual void setBias (Nice::Int _bias)=0
 
virtual void setBiasAll (Nice::SeqInt _bias)=0
 
virtual void setBiasIdx (Nice::Int _idx, Nice::Int _bias)=0
 
virtual Nice::Int biasIdx (Nice::Int _idx)=0
 
virtual Nice::SeqInt biasAll ()=0
 
virtual void setDarkIdx (Nice::Int _prg, Nice::Int _gain, const Basda::ImageBase &_dark)=0
 
virtual Basda::ImageBase darkIdx (Nice::Int _prg, Nice::Int _gain)=0
 
virtual void setWCS (const Nice::WMatrix &_wcs)=0
 
virtual void setWindow (const Nice::Rect &_win, int _bin)=0
 
virtual bool isReachable ()=0
 
virtual int getCurrentImageIdx ()=0
 
 VinoCameraCtrlServiceWorkerSkeleton (const Nice::JointPtr &_config)
 
virtual ~VinoCameraCtrlServiceWorkerSkeleton ()
 
virtual void setProgram (Nice::Int _program)=0
 
virtual void setFramerate (double _framerate)=0
 
virtual void setBinning (Nice::U16 _bin)=0
 
virtual void setExposureTime (const Nice::Time &_expotime)=0
 
virtual void setExposureMode (Basda::ExpoModeType _expomode)=0
 
virtual void setGainMode (Nice::Int _gain)=0
 
virtual void setBias (Nice::Int _bias)=0
 
virtual void setBiasAll (Nice::SeqInt _bias)=0
 
virtual void setBiasIdx (Nice::Int _idx, Nice::Int _bias)=0
 
virtual Nice::Int biasIdx (Nice::Int _idx)=0
 
virtual Nice::SeqInt biasAll ()=0
 
virtual void setDarkIdx (Nice::Int _prg, Nice::Int _gain, const Basda::ImageBase &_dark)=0
 
virtual Basda::ImageBase darkIdx (Nice::Int _prg, Nice::Int _gain)=0
 
virtual void setWCS (const Nice::WMatrix &_wcs)=0
 
virtual void setWindow (const Nice::Rect &_win, int _bin)=0
 
virtual bool isReachable ()=0
 
virtual int getCurrentImageIdx ()=0
 
- Public Member Functions inherited from Basda::ServiceWorkerSkeleton
const Nice::PropertyPtrcmd ()
 
void setCompletion (const Nice::Completion &_c)
 
void cmdStart (const std::string &_action="")
 
void cmdDone ()
 
void cmdWarning (const std::string &_l)
 
void cmdWarning (const Nice::LoggerObject &_o)
 
void cmdError (const std::string &_l)
 
void cmdError (const Nice::LoggerObject &_o)
 
void cmdError (const Nice::SeqLoggerObject &_oo)
 
void cmdPercent (Nice::Int _v)
 
void cmdAction (Nice::Int _v, const std::string &_s)
 
virtual void cmd (const Nice::Completion &_c)
 
virtual void abort ()
 does nothing. More...
 
virtual void stop ()
 does nothing. More...
 
template<typename DataType >
Nice::Completion exec (const Nice::Completion &_c, DataType &_localdata, const DataType &_indata=DataType())
 if currently online, push the state into WORKING More...
 
template<typename DataType >
void execCommand (DataType _cmd)
 
const Nice::PropertyPtrcmd ()
 
void setCompletion (const Nice::Completion &_c)
 
void cmdStart (const std::string &_action="")
 
void cmdDone ()
 
void cmdWarning (const std::string &_l)
 
void cmdWarning (const Nice::LoggerObject &_o)
 
void cmdError (const std::string &_l)
 
void cmdError (const Nice::LoggerObject &_o)
 
void cmdError (const Nice::SeqLoggerObject &_oo)
 
void cmdPercent (Nice::Int _v)
 
void cmdAction (Nice::Int _v, const std::string &_s)
 
virtual void cmd (const Nice::Completion &_c)
 
virtual void abort ()
 does nothing. More...
 
virtual void stop ()
 does nothing. More...
 
template<typename DataType >
Nice::Completion exec (const Nice::Completion &_c, DataType &_localdata, const DataType &_indata=DataType())
 
template<typename DataType >
void execCommand (DataType _cmd)
 
- 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 ()
 

Protected Member Functions

virtual void validateDarkImage ()
 
virtual void validateDarkImage ()
 
- Protected Member Functions inherited from Basda::VinoCameraCtrlServiceWorkerSkeleton
const char * setProgramNode ()
 
void setProgramInit (Nice::Int _program)
 
const char * setFramerateNode ()
 
void setFramerateInit (double _framerate)
 
const char * setBinningNode ()
 
void setBinningInit (Nice::U16 _bin)
 
const char * setExposureTimeNode ()
 
void setExposureTimeInit (const Nice::Time &_expotime)
 
const char * setExposureModeNode ()
 
void setExposureModeInit (Basda::ExpoModeType _expomode)
 
const char * setGainModeNode ()
 
void setGainModeInit (Nice::Int _gain)
 
const char * setBiasNode ()
 
void setBiasInit (Nice::Int _bias)
 
const char * setBiasAllNode ()
 
void setBiasAllInit (Nice::SeqInt _bias)
 
const char * setBiasIdxNode ()
 
void setBiasIdxInit (Nice::Int _idx, Nice::Int _bias)
 
const char * biasIdxNode ()
 
void biasIdxInit (Nice::Int _idx)
 
const char * biasAllNode ()
 
const char * setDarkIdxNode ()
 
void setDarkIdxInit (Nice::Int _prg, Nice::Int _gain, const Basda::ImageBase &_dark)
 
const char * darkIdxNode ()
 
void darkIdxInit (Nice::Int _prg, Nice::Int _gain)
 
const char * setWCSNode ()
 
void setWCSInit (const Nice::WMatrix &_wcs)
 
const char * setWindowNode ()
 
void setWindowInit (const Nice::Rect &_win, int _bin)
 
const char * isReachableNode ()
 
const char * readSingleNode ()
 
const char * readEndlessNode ()
 
const char * readMultiNode ()
 
void readMultiInit (Nice::Int _numimages)
 
const char * getImageNode ()
 
void getImageInit (bool _start, Nice::Int _numimages)
 
const char * getCurrentImageIdxNode ()
 
const char * getImageByIdxNode ()
 
void getImageByIdxInit (Nice::Int _idx)
 
virtual void work ()
 
const char * setProgramNode ()
 
void setProgramInit (Nice::Int _program)
 
const char * setFramerateNode ()
 
void setFramerateInit (double _framerate)
 
const char * setBinningNode ()
 
void setBinningInit (Nice::U16 _bin)
 
const char * setExposureTimeNode ()
 
void setExposureTimeInit (const Nice::Time &_expotime)
 
const char * setExposureModeNode ()
 
void setExposureModeInit (Basda::ExpoModeType _expomode)
 
const char * setGainModeNode ()
 
void setGainModeInit (Nice::Int _gain)
 
const char * setBiasNode ()
 
void setBiasInit (Nice::Int _bias)
 
const char * setBiasAllNode ()
 
void setBiasAllInit (Nice::SeqInt _bias)
 
const char * setBiasIdxNode ()
 
void setBiasIdxInit (Nice::Int _idx, Nice::Int _bias)
 
const char * biasIdxNode ()
 
void biasIdxInit (Nice::Int _idx)
 
const char * biasAllNode ()
 
const char * setDarkIdxNode ()
 
void setDarkIdxInit (Nice::Int _prg, Nice::Int _gain, const Basda::ImageBase &_dark)
 
const char * darkIdxNode ()
 
void darkIdxInit (Nice::Int _prg, Nice::Int _gain)
 
const char * setWCSNode ()
 
void setWCSInit (const Nice::WMatrix &_wcs)
 
const char * setWindowNode ()
 
void setWindowInit (const Nice::Rect &_win, int _bin)
 
const char * isReachableNode ()
 
const char * readSingleNode ()
 
const char * readEndlessNode ()
 
const char * readMultiNode ()
 
void readMultiInit (Nice::Int _numimages)
 
const char * getImageNode ()
 
void getImageInit (bool _start, Nice::Int _numimages)
 
const char * getCurrentImageIdxNode ()
 
const char * getImageByIdxNode ()
 
void getImageByIdxInit (Nice::Int _idx)
 
virtual void work ()
 
- Protected Member Functions inherited from Basda::ServiceWorkerSkeleton
 ServiceWorkerSkeleton (const Nice::JointPtr &_config)
 
 ServiceWorkerSkeleton (const Nice::JointPtr &_config)
 
- 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 init ()=0
 
virtual void deinit ()=0
 
virtual void activate ()=0
 
virtual void deactivate ()=0
 
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 idleOffline ()
 wait for a state change. More...
 
virtual void idleStandby ()
 wait for a state change. More...
 
virtual void idleOnline ()
 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 init ()=0
 
virtual void deinit ()=0
 
virtual void activate ()=0
 
virtual void deactivate ()=0
 
virtual void packin ()
 
virtual void terminate ()
 
virtual void errorOffline ()
 
virtual void errorStandby ()
 
virtual void errorOnline ()
 
virtual void errorWorking ()
 
virtual void idleOffline ()
 
virtual void idleStandby ()
 
virtual void idleOnline ()
 

Protected Attributes

WfcCommonsServiceWorkerInterfacePtr m_wfc
 
BCUExtraTypePtr m_bcuIf
 
- Protected Attributes inherited from Basda::VinoCameraCtrlDataServiceWorker< DataType, Laos::WfcLoopData >
VinoDeviceTypePtr m_device
 
- Protected Attributes inherited from Basda::ServiceWorkerSkeleton
Nice::Completion m_completion
 
Nice::I64 m_id
 
Nice::PropertyPtr m_cmd
 
- Protected Attributes inherited from Basda::ServiceWorker
Nice::JointPtr m_config
 
Nice::PropertyPtr m_state
 
std::string m_name
 

Private Types

typedef Laos::WfcLoopData WfcDataType
 
typedef IceUtil::Handle< WfcDataTypeWfcDataTypePtr
 
typedef Basda::VinoCameraCtrlDataServiceWorker< DataType, Laos::WfcLoopDataVinoCameraCtrlDataServiceWorkerType
 
typedef IceUtil::Handle< VinoCameraCtrlDataServiceWorkerTypeVinoDeviceTypePtr
 
typedef Laos::BCUExtra< DataType >::BCUExtraType BCUExtraType
 
typedef Laos::BCUExtra< DataType >::BCUExtraTypePtr BCUExtraTypePtr
 
typedef Laos::WfcLoopData WfcDataType
 
typedef IceUtil::Handle< WfcDataTypeWfcDataTypePtr
 
typedef Basda::VinoCameraCtrlDataServiceWorker< DataType, Laos::WfcLoopDataVinoCameraCtrlDataServiceWorkerType
 
typedef IceUtil::Handle< VinoCameraCtrlDataServiceWorkerTypeVinoDeviceTypePtr
 
typedef Laos::BCUExtra< DataType >::BCUExtraType BCUExtraType
 
typedef Laos::BCUExtra< DataType >::BCUExtraTypePtr BCUExtraTypePtr
 

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
 
- 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

◆ BCUExtraType [1/2]

template<typename DataType = Nice::U16>
typedef Laos::BCUExtra< DataType >::BCUExtraType Laos::BcuCameraCtrlDataServiceWorker< DataType >::BCUExtraType
private

◆ BCUExtraType [2/2]

template<typename DataType = Nice::U16>
typedef Laos::BCUExtra< DataType >::BCUExtraType Laos::BcuCameraCtrlDataServiceWorker< DataType >::BCUExtraType
private

◆ BCUExtraTypePtr [1/2]

template<typename DataType = Nice::U16>
typedef Laos::BCUExtra< DataType >::BCUExtraTypePtr Laos::BcuCameraCtrlDataServiceWorker< DataType >::BCUExtraTypePtr
private

◆ BCUExtraTypePtr [2/2]

template<typename DataType = Nice::U16>
typedef Laos::BCUExtra< DataType >::BCUExtraTypePtr Laos::BcuCameraCtrlDataServiceWorker< DataType >::BCUExtraTypePtr
private

◆ VinoCameraCtrlDataServiceWorkerType [1/2]

template<typename DataType = Nice::U16>
typedef Basda::VinoCameraCtrlDataServiceWorker< DataType, Laos::WfcLoopData > Laos::BcuCameraCtrlDataServiceWorker< DataType >::VinoCameraCtrlDataServiceWorkerType
private

◆ VinoCameraCtrlDataServiceWorkerType [2/2]

template<typename DataType = Nice::U16>
typedef Basda::VinoCameraCtrlDataServiceWorker< DataType, Laos::WfcLoopData > Laos::BcuCameraCtrlDataServiceWorker< DataType >::VinoCameraCtrlDataServiceWorkerType
private

◆ VinoDeviceTypePtr [1/2]

template<typename DataType = Nice::U16>
typedef IceUtil::Handle< VinoCameraCtrlDataServiceWorkerType > Laos::BcuCameraCtrlDataServiceWorker< DataType >::VinoDeviceTypePtr
private

◆ VinoDeviceTypePtr [2/2]

template<typename DataType = Nice::U16>
typedef IceUtil::Handle< VinoCameraCtrlDataServiceWorkerType > Laos::BcuCameraCtrlDataServiceWorker< DataType >::VinoDeviceTypePtr
private

◆ WfcDataType [1/2]

template<typename DataType = Nice::U16>
typedef Laos::WfcLoopData Laos::BcuCameraCtrlDataServiceWorker< DataType >::WfcDataType
private

◆ WfcDataType [2/2]

template<typename DataType = Nice::U16>
typedef Laos::WfcLoopData Laos::BcuCameraCtrlDataServiceWorker< DataType >::WfcDataType
private

◆ WfcDataTypePtr [1/2]

template<typename DataType = Nice::U16>
typedef IceUtil::Handle< WfcDataType > Laos::BcuCameraCtrlDataServiceWorker< DataType >::WfcDataTypePtr
private

◆ WfcDataTypePtr [2/2]

template<typename DataType = Nice::U16>
typedef IceUtil::Handle< WfcDataType > Laos::BcuCameraCtrlDataServiceWorker< DataType >::WfcDataTypePtr
private

Constructor & Destructor Documentation

◆ BcuCameraCtrlDataServiceWorker() [1/2]

template<typename DataType >
Laos::BcuCameraCtrlDataServiceWorker< DataType >::BcuCameraCtrlDataServiceWorker ( const Nice::JointPtr _config)

◆ BcuCameraCtrlDataServiceWorker() [2/2]

template<typename DataType = Nice::U16>
Laos::BcuCameraCtrlDataServiceWorker< DataType >::BcuCameraCtrlDataServiceWorker ( const Nice::JointPtr _config)

Member Function Documentation

◆ startUp() [1/2]

template<typename DataType >
void Laos::BcuCameraCtrlDataServiceWorker< DataType >::startUp ( int  _numImages)
virtual

◆ startUp() [2/2]

template<typename DataType = Nice::U16>
virtual void Laos::BcuCameraCtrlDataServiceWorker< DataType >::startUp ( int  )
virtual

◆ validateDarkImage() [1/2]

template<typename DataType = Nice::U16>
virtual void Laos::BcuCameraCtrlDataServiceWorker< DataType >::validateDarkImage ( )
protectedvirtual

◆ validateDarkImage() [2/2]

template<typename DataType >
void Laos::BcuCameraCtrlDataServiceWorker< DataType >::validateDarkImage ( )
protectedvirtual

Member Data Documentation

◆ m_bcuIf

template<typename DataType = Nice::U16>
BCUExtraTypePtr Laos::BcuCameraCtrlDataServiceWorker< DataType >::m_bcuIf
protected

◆ m_wfc

template<typename DataType = Nice::U16>
WfcCommonsServiceWorkerInterfacePtr Laos::BcuCameraCtrlDataServiceWorker< DataType >::m_wfc
protected

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