cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
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
13
This software is provided "as is" under an open source license, with
14
no warranty. The complete license can be found in license.txt and
15
http://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
30
#include <
cisstMultiTask/mtsCommandBase.h
>
31
32
// Always include last
33
#include <
cisstMultiTask/mtsExport.h
>
34
44
class
CISST_EXPORT
mtsCommandVoid:
public
mtsCommandBase {
45
46
public
:
47
typedef
mtsCommandBase
BaseType
;
48
50
typedef
mtsCommandVoid
ThisType
;
51
52
private
:
54
mtsCommandVoid
(
const
ThisType
&
CMN_UNUSED
(other));
55
56
protected
:
59
mtsCallableVoidBase
*
Callable
;
60
61
public
:
63
mtsCommandVoid
(
void
);
64
70
mtsCommandVoid
(
mtsCallableVoidBase
* callable,
const
std::string & name);
71
73
virtual
~mtsCommandVoid
();
74
78
virtual
mtsExecutionResult
Execute
(
mtsBlockingType
CMN_UNUSED
(blocking));
79
82
virtual
mtsExecutionResult
Execute
(
mtsBlockingType
blocking,
83
mtsCommandWriteBase
*
CMN_UNUSED
(finishedEventHandler))
84
{
return
Execute
(blocking); }
85
91
mtsCallableVoidBase
*
GetCallable
(
void
)
const
;
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
mtsCallableVoidBase
Definition
mtsCallableVoidBase.h:40
mtsCommandVoid::mtsCommandVoid
mtsCommandVoid(mtsCallableVoidBase *callable, const std::string &name)
mtsCommandVoid::GetCallable
mtsCallableVoidBase * GetCallable(void) const
mtsCommandVoid::NumberOfArguments
size_t NumberOfArguments(void) const
mtsCommandVoid::Execute
virtual mtsExecutionResult Execute(mtsBlockingType blocking, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler))
Definition
mtsCommandVoid.h:82
mtsCommandVoid::Execute
virtual mtsExecutionResult Execute(mtsBlockingType CMN_UNUSED(blocking))
mtsCommandVoid::~mtsCommandVoid
virtual ~mtsCommandVoid()
mtsCommandVoid::BaseType
mtsCommandBase BaseType
Definition
mtsCommandVoid.h:47
mtsCommandVoid::mtsCommandVoid
mtsCommandVoid(void)
mtsCommandVoid::ThisType
mtsCommandVoid ThisType
Definition
mtsCommandVoid.h:50
mtsCommandVoid::Callable
mtsCallableVoidBase * Callable
Definition
mtsCommandVoid.h:59
mtsCommandVoid::Returns
bool Returns(void) const
mtsCommandVoid::ToStream
void ToStream(std::ostream &outputStream) const
mtsCommandWriteBase
Definition
mtsCommandWriteBase.h:40
mtsExecutionResult
Definition
mtsExecutionResult.h:34
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
CMN_UNUSED
#define CMN_UNUSED(argument)
Definition
cmnPortability.h:497
mtsCommandBase.h
Defines a base class for a command.
mtsExport.h
Rules of exporting.
mtsBlockingType
mtsBlockingType
Definition
mtsForwardDeclarations.h:54
Generated by
1.18.0