|
cisst-saw
|
#include <mtsCommandQueuedVoid.h>
Public Types | |
| typedef mtsCommandVoid | BaseType |
| typedef mtsCommandQueuedVoid | ThisType |
Public Types inherited from mtsCommandVoid | |
| typedef mtsCommandBase | BaseType |
| typedef mtsCommandVoid | ThisType |
Public Member Functions | |
| mtsCommandQueuedVoid (void) | |
| mtsCommandQueuedVoid (mtsCallableVoidBase *callable, const std::string &name, mtsMailBox *mailBox, size_t size) | |
| virtual | ~mtsCommandQueuedVoid () |
| virtual mtsCommandQueuedVoid * | Clone (mtsMailBox *mailBox, size_t size) const |
| virtual void | Allocate (unsigned int CMN_UNUSED(size)) |
| mtsExecutionResult | Execute (mtsBlockingType blocking) |
| mtsExecutionResult | Execute (mtsBlockingType blocking, mtsCommandWriteBase *finishedEventHandler) |
| mtsBlockingType | BlockingFlagGet (void) |
| mtsCommandWriteBase * | FinishedEventGet (void) |
| std::string | GetMailBoxName (void) const |
| void | ToStream (std::ostream &outputStream) const |
Public Member Functions inherited from mtsCommandVoid | |
| mtsCommandVoid (void) | |
| mtsCommandVoid (mtsCallableVoidBase *callable, const std::string &name) | |
| virtual | ~mtsCommandVoid () |
| virtual mtsExecutionResult | Execute (mtsBlockingType CMN_UNUSED(blocking)) |
| virtual mtsExecutionResult | Execute (mtsBlockingType blocking, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler)) |
| mtsCallableVoidBase * | GetCallable (void) const |
| void | ToStream (std::ostream &outputStream) const |
| size_t | NumberOfArguments (void) const |
| bool | Returns (void) const |
Public Member Functions inherited from mtsCommandBase | |
| mtsCommandBase (void) | |
| mtsCommandBase (const std::string &name) | |
| virtual | ~mtsCommandBase () |
| const std::string & | GetName (void) const |
| virtual std::string | ToString (void) const |
| void | Enable (void) |
| void | Disable (void) |
| bool | IsEnabled (void) const |
| bool | IsDisabled (void) const |
Protected Attributes | |
| mtsMailBox * | MailBox |
| mtsQueue< mtsBlockingType > | BlockingFlagQueue |
| mtsQueue< mtsCommandWriteBase * > | FinishedEventQueue |
Protected Attributes inherited from mtsCommandVoid | |
| mtsCallableVoidBase * | Callable |
Protected Attributes inherited from mtsCommandBase | |
| std::string | Name |
| bool | EnableFlag |
Base type
This type.
| mtsCommandQueuedVoid::mtsCommandQueuedVoid | ( | void | ) |
| mtsCommandQueuedVoid::mtsCommandQueuedVoid | ( | mtsCallableVoidBase * | callable, |
| const std::string & | name, | ||
| mtsMailBox * | mailBox, | ||
| size_t | size | ||
| ) |
|
inlinevirtual |
|
inlinevirtual |
| mtsBlockingType mtsCommandQueuedVoid::BlockingFlagGet | ( | void | ) |
|
virtual |
| mtsExecutionResult mtsCommandQueuedVoid::Execute | ( | mtsBlockingType | blocking | ) |
For a queued command, Execute means queueing the command. This method will return mtsExecutionResult::COMMAND_QUEUED if the command has been queued; it doesn't mean that the actual has been executed yet. If the command has been disabled (see mtsCommandBase::Disable()), Execute will return mtsExecutionResult::COMMAND_DISABLED. Finally, if the mailbox is full, Execute() will return mtsExecutionResult::INTERFACE_COMMAND_MAILBOX_FULL. This can happen if the task receiving the command doesn't process/empty its mailboxes fast enough.
| mtsExecutionResult mtsCommandQueuedVoid::Execute | ( | mtsBlockingType | blocking, |
| mtsCommandWriteBase * | finishedEventHandler | ||
| ) |
This version of Execute includes a command pointer that the recipient can use to indicate when the command has been finished (e.g., for a blocking command)
| mtsCommandWriteBase* mtsCommandQueuedVoid::FinishedEventGet | ( | void | ) |
| std::string mtsCommandQueuedVoid::GetMailBoxName | ( | void | ) | const |
|
virtual |
Implements mtsCommandBase.
|
protected |
Queue of flags to indicate if the command is blocking or not
|
protected |
Queue for return events (to send result to caller)
|
protected |
Mailbox used to queue the commands
1.8.6