cisst-saw
Loading...
Searching...
No Matches
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
12This software is provided "as is" under an open source license, with
13no warranty. The complete license can be found in license.txt and
14http://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
32
33// Always include last
35
37 public:
39 protected:
43
44 public:
47
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
70
73
76
77 // documented in base class
78 void ToStream(std::ostream & outputStream) const;
79};
80
81
82#endif // _mtsFunctionVoid_h
83
Definition mtsCommandVoid.h:44
Definition mtsExecutionResult.h:34
bool Bind(CommandType *command)
bool Detach(void)
mtsExecutionResult Execute(void) const
mtsExecutionResult ExecuteBlocking(void) const
mtsCommandVoid CommandType
Definition mtsFunctionVoid.h:38
mtsCommandVoid * GetCommand(void) const
mtsExecutionResult operator()(void) const
Definition mtsFunctionVoid.h:66
CommandType * Command
Definition mtsFunctionVoid.h:42
void ToStream(std::ostream &outputStream) const
bool IsValid(void) const
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Defines a base class for a command.
Rules of exporting.
Forward declarations and #define for cisstMultiTask.
Defines a base function object to allow heterogeneous containers of functions.