Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
VisionMasterAspectIniFin () | |
Constructor. More... | |
virtual void | init (Thread *thread) |
virtual void | finalize (Thread *thread) |
virtual bool | prepare_finalize (Thread *thread) |
Default finalize preparation. More... | |
firevision::VisionMaster * | vision_master () |
Get vision master. More... | |
void | add_vision_thread (VisionAspect *thread) |
Add a vision thread. More... | |
void | remove_vision_thread (VisionAspect *thread) |
Remove a vision thread. More... | |
bool | can_remove_vision_thread (VisionAspect *thread) |
Query if vision thread can be removed. More... | |
![]() | |
AspectIniFin (const char *aspect_name) __attribute__((nonnull)) | |
Constructor. More... | |
virtual | ~AspectIniFin () |
Virtual empty destructor. More... | |
const char * | get_aspect_name () const |
Get aspect name. More... | |
Initializer/finalizer for the VisionMasterAspect.
Definition at line 38 of file vision_master.h.
fawkes::VisionMasterAspectIniFin::VisionMasterAspectIniFin | ( | ) |
Constructor.
Definition at line 43 of file vision_master.cpp.
void fawkes::VisionMasterAspectIniFin::add_vision_thread | ( | VisionAspect * | thread | ) |
Add a vision thread.
thread | thread to add |
Definition at line 122 of file vision_master.cpp.
bool fawkes::VisionMasterAspectIniFin::can_remove_vision_thread | ( | VisionAspect * | thread | ) |
Query if vision thread can be removed.
thread | thread to query for |
Definition at line 141 of file vision_master.cpp.
|
virtual |
Finalize thread. The aspect for the given thread must be initialized. Use dynamic_cast to cast the thread into the expected aspect class. An exception must be thrown if this fails. If anything fails during initialization of the aspect an Exception must be thrown. This will not prevent the thread from being removed. Use prepare_finalize() to report problems that should prevent the thread from being unloaded.
thread | thread to finalize |
Implements fawkes::AspectIniFin.
Definition at line 88 of file vision_master.cpp.
|
virtual |
Initialize thread. The aspect for the given thread must be initialized. Use dynamic_cast to cast the thread into the expected aspect class. An exception must be thrown if this fails. If anything fails during initialization of the aspect an Exception must be thrown.
thread | thread to initialize |
Implements fawkes::AspectIniFin.
Definition at line 48 of file vision_master.cpp.
|
virtual |
Default finalize preparation.
This is a default implementation that assumes that finalization is always safe. Override it if you need to make more fine-grained decisions.
thread | thread to prepare for finalization |
Reimplemented from fawkes::AspectIniFin.
Definition at line 70 of file vision_master.cpp.
void fawkes::VisionMasterAspectIniFin::remove_vision_thread | ( | VisionAspect * | thread | ) |
Remove a vision thread.
thread | thread to remove |
Definition at line 131 of file vision_master.cpp.
firevision::VisionMaster * fawkes::VisionMasterAspectIniFin::vision_master | ( | ) |