cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
mtsCommandRead.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, Peter Kazanzides, 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 _mtsCommandRead_h
27
#define _mtsCommandRead_h
28
29
30
#include <
cisstMultiTask/mtsCommandBase.h
>
31
#include <
cisstMultiTask/mtsGenericObjectProxy.h
>
32
33
// Always include last
34
#include <
cisstMultiTask/mtsExport.h
>
35
42
class
CISST_EXPORT
mtsCommandRead:
public
mtsCommandBase {
43
public
:
45
typedef
mtsCommandBase
BaseType
;
46
48
typedef
mtsCommandRead
ThisType
;
49
51
typedef
mtsCallableReadBase
CallableType
;
52
53
private
:
55
inline
mtsCommandRead
(
const
ThisType
&
CMN_UNUSED
(other));
56
57
protected
:
58
mtsCallableReadBase
*
Callable
;
59
60
const
mtsGenericObject
*
ArgumentPrototype
;
61
62
public
:
64
mtsCommandRead
(
void
);
65
66
mtsCommandRead
(
const
std::string & name);
67
68
74
mtsCommandRead
(
mtsCallableReadBase
* callable,
75
const
std::string & name,
76
const
mtsGenericObject
* argumentPrototype);
77
79
~mtsCommandRead
();
80
85
virtual
mtsExecutionResult
Execute
(
mtsGenericObject
& argument);
86
89
virtual
mtsExecutionResult
Execute
(
mtsGenericObject
& argument,
90
mtsCommandWriteBase
*
CMN_UNUSED
(finishedEventHandler))
91
{
return
Execute
(argument); }
92
98
mtsCallableReadBase
*
GetCallable
(
void
)
const
;
99
100
virtual
const
mtsGenericObject
*
GetArgumentPrototype
(
void
)
const
;
101
// GetResultPrototype is same as GetArgumentPrototype, but provided for
102
// consistency with mtsCommandVoidReturn
103
virtual
const
mtsGenericObject
*
GetResultPrototype
(
void
)
const
;
104
105
/* documented in base class */
106
size_t
NumberOfArguments
(
void
)
const
;
107
108
/* documented in base class */
109
bool
Returns
(
void
)
const
;
110
111
/* documented in base class */
112
void
ToStream
(std::ostream & outputStream)
const
;
113
};
114
115
116
#endif
// _mtsCommandRead_h
117
mtsCallableReadBase
Definition
mtsCallableReadBase.h:40
mtsCommandRead::~mtsCommandRead
~mtsCommandRead()
mtsCommandRead::GetResultPrototype
virtual const mtsGenericObject * GetResultPrototype(void) const
mtsCommandRead::mtsCommandRead
mtsCommandRead(const std::string &name)
mtsCommandRead::ToStream
void ToStream(std::ostream &outputStream) const
mtsCommandRead::BaseType
mtsCommandBase BaseType
Definition
mtsCommandRead.h:45
mtsCommandRead::CallableType
mtsCallableReadBase CallableType
Definition
mtsCommandRead.h:51
mtsCommandRead::GetCallable
mtsCallableReadBase * GetCallable(void) const
mtsCommandRead::Callable
mtsCallableReadBase * Callable
Definition
mtsCommandRead.h:58
mtsCommandRead::mtsCommandRead
mtsCommandRead(void)
mtsCommandRead::ArgumentPrototype
const mtsGenericObject * ArgumentPrototype
Definition
mtsCommandRead.h:60
mtsCommandRead::Execute
virtual mtsExecutionResult Execute(mtsGenericObject &argument)
mtsCommandRead::mtsCommandRead
mtsCommandRead(mtsCallableReadBase *callable, const std::string &name, const mtsGenericObject *argumentPrototype)
mtsCommandRead::GetArgumentPrototype
virtual const mtsGenericObject * GetArgumentPrototype(void) const
mtsCommandRead::Returns
bool Returns(void) const
mtsCommandRead::NumberOfArguments
size_t NumberOfArguments(void) const
mtsCommandRead::Execute
virtual mtsExecutionResult Execute(mtsGenericObject &argument, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler))
Definition
mtsCommandRead.h:89
mtsCommandRead::ThisType
mtsCommandRead ThisType
Definition
mtsCommandRead.h:48
mtsCommandWriteBase
Definition
mtsCommandWriteBase.h:40
mtsExecutionResult
Definition
mtsExecutionResult.h:34
mtsGenericObject
Base class for data object in cisstMultiTask.
Definition
mtsGenericObject.h:52
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.
mtsGenericObjectProxy.h
Generated by
1.18.0