cisst-saw
Loading...
Searching...
No Matches
mtsCommandVoid.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, Anton Deguet
7 Created on: 2004-04-30
8
9 (C) Copyright 2004-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 _mtsCommandVoid_h
27#define _mtsCommandVoid_h
28
29
31
32// Always include last
34
44class CISST_EXPORT mtsCommandVoid: public mtsCommandBase {
45
46public:
47 typedef mtsCommandBase BaseType;
48
50 typedef mtsCommandVoid ThisType;
51
52private:
54 mtsCommandVoid(const ThisType & CMN_UNUSED(other));
55
56protected:
60
61public:
64
70 mtsCommandVoid(mtsCallableVoidBase * callable, const std::string & name);
71
73 virtual ~mtsCommandVoid();
74
79
83 mtsCommandWriteBase * CMN_UNUSED(finishedEventHandler))
84 { return Execute(blocking); }
85
92
93 /* documented in base class */
94 void ToStream(std::ostream & outputStream) const;
95
96 /* documented in base class */
97 size_t NumberOfArguments(void) const;
98
99 /* documented in base class */
100 bool Returns(void) const;
101};
102
103
104#endif // _mtsCommandVoid_h
105
Definition mtsCallableVoidBase.h:40
mtsCommandVoid(mtsCallableVoidBase *callable, const std::string &name)
mtsCallableVoidBase * GetCallable(void) const
size_t NumberOfArguments(void) const
virtual mtsExecutionResult Execute(mtsBlockingType blocking, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler))
Definition mtsCommandVoid.h:82
virtual mtsExecutionResult Execute(mtsBlockingType CMN_UNUSED(blocking))
virtual ~mtsCommandVoid()
mtsCommandBase BaseType
Definition mtsCommandVoid.h:47
mtsCommandVoid(void)
mtsCommandVoid ThisType
Definition mtsCommandVoid.h:50
mtsCallableVoidBase * Callable
Definition mtsCommandVoid.h:59
bool Returns(void) const
void ToStream(std::ostream &outputStream) const
Definition mtsCommandWriteBase.h:40
Definition mtsExecutionResult.h:34
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_UNUSED(argument)
Definition cmnPortability.h:497
Defines a base class for a command.
Rules of exporting.
mtsBlockingType
Definition mtsForwardDeclarations.h:54