cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
mtsFunctionVoid.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): Peter Kazanzides, Anton Deguet
7
8
(C) Copyright 2007-2025 Johns Hopkins University (JHU), All Rights Reserved.
9
10
--- begin cisst license - do not edit ---
11
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://www.cisst.org/cisst/license.txt.
15
16
--- end cisst license ---
17
*/
18
19
20
25
26
#ifndef _mtsFunctionVoid_h
27
#define _mtsFunctionVoid_h
28
29
#include <
cisstMultiTask/mtsCommandBase.h
>
30
#include <
cisstMultiTask/mtsFunctionBase.h
>
31
#include <
cisstMultiTask/mtsForwardDeclarations.h
>
32
33
// Always include last
34
#include <
cisstMultiTask/mtsExport.h
>
35
36
class
CISST_EXPORT
mtsFunctionVoid
:
public
mtsFunctionBase
{
37
public
:
38
typedef
mtsCommandVoid
CommandType
;
39
protected
:
42
CommandType
*
Command
;
43
44
public
:
46
mtsFunctionVoid
();
47
49
~mtsFunctionVoid
();
50
51
// documented in base class
52
bool
Detach
(
void
);
53
54
// documented in base class
55
bool
IsValid
(
void
)
const
;
56
62
bool
Bind
(
CommandType
* command);
63
66
mtsExecutionResult
operator()
(
void
)
const
{
return
Execute
(); }
67
69
mtsExecutionResult
Execute
(
void
)
const
;
70
72
mtsExecutionResult
ExecuteBlocking
(
void
)
const
;
73
75
mtsCommandVoid
*
GetCommand
(
void
)
const
;
76
77
// documented in base class
78
void
ToStream
(std::ostream & outputStream)
const
;
79
};
80
81
82
#endif
// _mtsFunctionVoid_h
83
mtsCommandVoid
Definition
mtsCommandVoid.h:44
mtsExecutionResult
Definition
mtsExecutionResult.h:34
mtsFunctionBase::mtsFunctionBase
mtsFunctionBase()
mtsFunctionVoid::Bind
bool Bind(CommandType *command)
mtsFunctionVoid::Detach
bool Detach(void)
mtsFunctionVoid::Execute
mtsExecutionResult Execute(void) const
mtsFunctionVoid::ExecuteBlocking
mtsExecutionResult ExecuteBlocking(void) const
mtsFunctionVoid::CommandType
mtsCommandVoid CommandType
Definition
mtsFunctionVoid.h:38
mtsFunctionVoid::GetCommand
mtsCommandVoid * GetCommand(void) const
mtsFunctionVoid::mtsFunctionVoid
mtsFunctionVoid()
mtsFunctionVoid::operator()
mtsExecutionResult operator()(void) const
Definition
mtsFunctionVoid.h:66
mtsFunctionVoid::Command
CommandType * Command
Definition
mtsFunctionVoid.h:42
mtsFunctionVoid::ToStream
void ToStream(std::ostream &outputStream) const
mtsFunctionVoid::~mtsFunctionVoid
~mtsFunctionVoid()
mtsFunctionVoid::IsValid
bool IsValid(void) const
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
mtsCommandBase.h
Defines a base class for a command.
mtsExport.h
Rules of exporting.
mtsForwardDeclarations.h
Forward declarations and #define for cisstMultiTask.
mtsFunctionBase.h
Defines a base function object to allow heterogeneous containers of functions.
Generated by
1.18.0