cisst-saw
Loading...
Searching...
No Matches
mtsFunctionBase.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-2026 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 _mtsFunctionBase_h
27#define _mtsFunctionBase_h
28
32
33// Always include last
35
37
39
40protected:
43
46
49
53
54public:
56 virtual bool Detach(void) = 0;
57
59 virtual bool IsValid(void) const = 0;
60
62 virtual void ToStream(std::ostream & outputStream) const = 0;
63
65 virtual void InitCompletionCommand(const std::string &name);
66
68 virtual void DeleteCompletionCommand(void);
69
71 void SetThreadSignal(osaThreadSignal * threadSignal);
72
74 void ThreadSignalWait(void) const;
75
82};
83
84
86inline std::ostream & operator << (std::ostream & output,
87 const mtsFunctionBase & function) {
88 function.ToStream(output);
89 return output;
90}
91
92
93#endif // _mtsFunctionBase_h
Definition mtsEventReceiver.h:221
Definition mtsExecutionResult.h:34
Definition mtsFunctionBase.h:38
virtual void DeleteCompletionCommand(void)
void ThreadSignalWait(void) const
virtual ~mtsFunctionBase()
mtsExecutionResult WaitForResult(void) const
virtual void InitCompletionCommand(const std::string &name)
osaThreadSignal * ThreadSignal
Definition mtsFunctionBase.h:48
virtual bool Detach(void)=0
mtsEventReceiverWrite * CompletionCommand
Definition mtsFunctionBase.h:52
virtual bool IsValid(void) const =0
void SetThreadSignal(osaThreadSignal *threadSignal)
virtual void ToStream(std::ostream &outputStream) const =0
Definition osaThreadSignal.h:41
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Rules of exporting.
Forward declarations and #define for cisstMultiTask.
std::ostream & operator<<(std::ostream &output, const mtsFunctionBase &function)
Definition mtsFunctionBase.h:86
Forward declarations and #define for cisstOSAbstraction.