cisst-saw
Loading...
Searching...
No Matches
mtsCommandQueuedVoid.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3
4/*
5
6 Author(s): Ankur Kapoor, Peter Kazanzides, Anton Deguet
7 Created on: 2005-05-02
8
9 (C) Copyright 2005-2014 Johns Hopkins University (JHU), All Rights Reserved.
10
11--- begin cisst license - do not edit ---
12
13This software is provided "as is" under an open source license, with
14no warranty. The complete license can be found in license.txt and
15http://www.cisst.org/cisst/license.txt.
16
17--- end cisst license ---
18*/
19
20
25
26#ifndef _mtsCommandQueuedVoid_h
27#define _mtsCommandQueuedVoid_h
28
31
32// Always include last
34
36
37class CISST_EXPORT mtsCommandQueuedVoid: public mtsCommandVoid
38{
39 public:
41 typedef mtsCommandVoid BaseType;
42
44 typedef mtsCommandQueuedVoid ThisType;
45
46 protected:
52
55
56 private:
59
60 public:
62
64 const std::string & name,
65 mtsMailBox * mailBox,
66 size_t size);
67
68 inline virtual ~mtsCommandQueuedVoid() {}
69
70
71 virtual mtsCommandQueuedVoid * Clone(mtsMailBox * mailBox, size_t size) const;
72
73 inline virtual void Allocate(unsigned int CMN_UNUSED(size)) {}
74
85
90 mtsCommandWriteBase *finishedEventHandler);
91
93
95
96 std::string GetMailBoxName(void) const;
97
98 void ToStream(std::ostream & outputStream) const;
99};
100
101
102#endif // _mtsCommandQueuedVoid_h
Definition mtsCallableVoidBase.h:40
mtsExecutionResult Execute(mtsBlockingType blocking, mtsCommandWriteBase *finishedEventHandler)
mtsBlockingType BlockingFlagGet(void)
mtsCommandWriteBase * FinishedEventGet(void)
mtsQueue< mtsCommandWriteBase * > FinishedEventQueue
Definition mtsCommandQueuedVoid.h:54
mtsCommandQueuedVoid ThisType
Definition mtsCommandQueuedVoid.h:44
mtsMailBox * MailBox
Definition mtsCommandQueuedVoid.h:48
std::string GetMailBoxName(void) const
mtsCommandVoid BaseType
Definition mtsCommandQueuedVoid.h:41
virtual void Allocate(unsigned int CMN_UNUSED(size))
Definition mtsCommandQueuedVoid.h:73
virtual mtsCommandQueuedVoid * Clone(mtsMailBox *mailBox, size_t size) const
mtsExecutionResult Execute(mtsBlockingType blocking)
void ToStream(std::ostream &outputStream) const
virtual ~mtsCommandQueuedVoid()
Definition mtsCommandQueuedVoid.h:68
mtsQueue< mtsBlockingType > BlockingFlagQueue
Definition mtsCommandQueuedVoid.h:51
mtsCommandQueuedVoid(mtsCallableVoidBase *callable, const std::string &name, mtsMailBox *mailBox, size_t size)
Definition mtsCommandWriteBase.h:40
Definition mtsExecutionResult.h:34
Definition mtsMailBox.h:36
Definition mtsQueue.h:41
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_UNUSED(argument)
Definition cmnPortability.h:497
Defines a command with no argument.
Rules of exporting.
mtsBlockingType
Definition mtsForwardDeclarations.h:54
Defines a mailbox for communication between tasks.
size_type size(void) const
Definition vctDynamicConstMatrixBase.h:228