cisst-saw
Loading...
Searching...
No Matches
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
13This software is provided "as is" under an open source license, with
14no warranty. The complete license can be found in license.txt and
15http://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
31
32
39class CISST_EXPORT mtsCommandQualifiedRead: public mtsCommandBase
40{
41 public:
43 typedef mtsCommandBase BaseType;
44
46 typedef mtsCommandQualifiedRead ThisType;
47
50
51private:
53 inline mtsCommandQualifiedRead(const ThisType & CMN_UNUSED(other));
54
55protected:
57
60
63
64public:
67
68 mtsCommandQualifiedRead(const std::string & name);
69
76 const std::string & name,
77 const mtsGenericObject * argument1Prototype,
78 const mtsGenericObject * argument2Prototype);
79
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
102
104
106
107 // Following are provided for consistency with mtsCommandWriteReturn
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
Definition mtsCallableQualifiedReadBase.h:41
mtsCommandQualifiedRead(const std::string &name)
bool Returns(void) const
virtual ~mtsCommandQualifiedRead()
const mtsGenericObject * GetArgument2Prototype(void) const
size_t NumberOfArguments(void) const
mtsCommandQualifiedRead ThisType
Definition mtsCommandQualifiedRead.h:46
mtsCallableQualifiedReadBase * GetCallable(void) const
const mtsGenericObject * Argument1Prototype
Definition mtsCommandQualifiedRead.h:59
mtsCommandBase BaseType
Definition mtsCommandQualifiedRead.h:43
mtsCommandQualifiedRead(mtsCallableQualifiedReadBase *callable, const std::string &name, const mtsGenericObject *argument1Prototype, const mtsGenericObject *argument2Prototype)
const mtsGenericObject * GetArgumentPrototype(void) const
virtual mtsExecutionResult Execute(const mtsGenericObject &argument1, mtsGenericObject &argument2)
mtsCallableQualifiedReadBase * Callable
Definition mtsCommandQualifiedRead.h:56
const mtsGenericObject * Argument2Prototype
Definition mtsCommandQualifiedRead.h:62
mtsCallableQualifiedReadBase CallableType
Definition mtsCommandQualifiedRead.h:49
void ToStream(std::ostream &outputStream) const
const mtsGenericObject * GetArgument1Prototype(void) const
const mtsGenericObject * GetResultPrototype(void) const
virtual mtsExecutionResult Execute(const mtsGenericObject &argument1, mtsGenericObject &argument2, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler))
Definition mtsCommandQualifiedRead.h:92
Definition mtsCommandWriteBase.h:40
Definition mtsExecutionResult.h:34
Base class for data object in cisstMultiTask.
Definition mtsGenericObject.h:52
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_UNUSED(argument)
Definition cmnPortability.h:497
Defines a base class for a command.