cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
mtsCommandQualifiedRead.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 _mtsCommandQualifiedRead_h
27
#define _mtsCommandQualifiedRead_h
28
29
30
#include <
cisstMultiTask/mtsCommandBase.h
>
31
32
39
class
CISST_EXPORT
mtsCommandQualifiedRead:
public
mtsCommandBase
40
{
41
public
:
43
typedef
mtsCommandBase
BaseType
;
44
46
typedef
mtsCommandQualifiedRead
ThisType
;
47
49
typedef
mtsCallableQualifiedReadBase
CallableType
;
50
51
private
:
53
inline
mtsCommandQualifiedRead
(
const
ThisType
&
CMN_UNUSED
(other));
54
55
protected
:
56
mtsCallableQualifiedReadBase
*
Callable
;
57
59
const
mtsGenericObject
*
Argument1Prototype
;
60
62
const
mtsGenericObject
*
Argument2Prototype
;
63
64
public
:
66
mtsCommandQualifiedRead
(
void
);
67
68
mtsCommandQualifiedRead
(
const
std::string & name);
69
75
mtsCommandQualifiedRead
(
mtsCallableQualifiedReadBase
* callable,
76
const
std::string & name,
77
const
mtsGenericObject
* argument1Prototype,
78
const
mtsGenericObject
* argument2Prototype);
79
81
virtual
~mtsCommandQualifiedRead
();
82
87
virtual
mtsExecutionResult
Execute
(
const
mtsGenericObject
& argument1,
88
mtsGenericObject
& argument2);
89
92
virtual
mtsExecutionResult
Execute
(
const
mtsGenericObject
& argument1,
mtsGenericObject
& argument2,
93
mtsCommandWriteBase
*
CMN_UNUSED
(finishedEventHandler))
94
{
return
Execute
(argument1, argument2); }
95
101
mtsCallableQualifiedReadBase
*
GetCallable
(
void
)
const
;
102
103
const
mtsGenericObject
*
GetArgument1Prototype
(
void
)
const
;
104
105
const
mtsGenericObject
*
GetArgument2Prototype
(
void
)
const
;
106
107
// Following are provided for consistency with mtsCommandWriteReturn
108
const
mtsGenericObject
*
GetArgumentPrototype
(
void
)
const
;
109
const
mtsGenericObject
*
GetResultPrototype
(
void
)
const
;
110
111
/* documented in base class */
112
size_t
NumberOfArguments
(
void
)
const
;
113
114
/* documented in base class */
115
bool
Returns
(
void
)
const
;
116
117
/* documented in base class */
118
void
ToStream
(std::ostream & outputStream)
const
;
119
};
120
121
122
#endif
// _mtsCommandQualifiedRead_h
123
mtsCallableQualifiedReadBase
Definition
mtsCallableQualifiedReadBase.h:41
mtsCommandQualifiedRead::mtsCommandQualifiedRead
mtsCommandQualifiedRead(const std::string &name)
mtsCommandQualifiedRead::Returns
bool Returns(void) const
mtsCommandQualifiedRead::~mtsCommandQualifiedRead
virtual ~mtsCommandQualifiedRead()
mtsCommandQualifiedRead::GetArgument2Prototype
const mtsGenericObject * GetArgument2Prototype(void) const
mtsCommandQualifiedRead::NumberOfArguments
size_t NumberOfArguments(void) const
mtsCommandQualifiedRead::ThisType
mtsCommandQualifiedRead ThisType
Definition
mtsCommandQualifiedRead.h:46
mtsCommandQualifiedRead::GetCallable
mtsCallableQualifiedReadBase * GetCallable(void) const
mtsCommandQualifiedRead::Argument1Prototype
const mtsGenericObject * Argument1Prototype
Definition
mtsCommandQualifiedRead.h:59
mtsCommandQualifiedRead::BaseType
mtsCommandBase BaseType
Definition
mtsCommandQualifiedRead.h:43
mtsCommandQualifiedRead::mtsCommandQualifiedRead
mtsCommandQualifiedRead(mtsCallableQualifiedReadBase *callable, const std::string &name, const mtsGenericObject *argument1Prototype, const mtsGenericObject *argument2Prototype)
mtsCommandQualifiedRead::GetArgumentPrototype
const mtsGenericObject * GetArgumentPrototype(void) const
mtsCommandQualifiedRead::Execute
virtual mtsExecutionResult Execute(const mtsGenericObject &argument1, mtsGenericObject &argument2)
mtsCommandQualifiedRead::Callable
mtsCallableQualifiedReadBase * Callable
Definition
mtsCommandQualifiedRead.h:56
mtsCommandQualifiedRead::Argument2Prototype
const mtsGenericObject * Argument2Prototype
Definition
mtsCommandQualifiedRead.h:62
mtsCommandQualifiedRead::mtsCommandQualifiedRead
mtsCommandQualifiedRead(void)
mtsCommandQualifiedRead::CallableType
mtsCallableQualifiedReadBase CallableType
Definition
mtsCommandQualifiedRead.h:49
mtsCommandQualifiedRead::ToStream
void ToStream(std::ostream &outputStream) const
mtsCommandQualifiedRead::GetArgument1Prototype
const mtsGenericObject * GetArgument1Prototype(void) const
mtsCommandQualifiedRead::GetResultPrototype
const mtsGenericObject * GetResultPrototype(void) const
mtsCommandQualifiedRead::Execute
virtual mtsExecutionResult Execute(const mtsGenericObject &argument1, mtsGenericObject &argument2, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler))
Definition
mtsCommandQualifiedRead.h:92
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.
Generated by
1.18.0