cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
mtsMulticastCommandWriteBase.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-2013 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
27
#ifndef _mtsMulticastCommandWriteBase_h
28
#define _mtsMulticastCommandWriteBase_h
29
30
31
#include <
cisstMultiTask/mtsCommandWriteBase.h
>
32
#include <vector>
33
34
// Always include last
35
#include <
cisstMultiTask/mtsExport.h
>
36
43
class
CISST_EXPORT
mtsMulticastCommandWriteBase
:
public
mtsCommandWriteBase
44
{
45
public
:
46
typedef
mtsCommandWriteBase
BaseType
;
47
typedef
std::vector<BaseType *>
VectorType
;
48
49
protected
:
50
VectorType
Commands
;
51
52
public
:
54
mtsMulticastCommandWriteBase
(
const
std::string & name):
55
BaseType
(name)
56
{}
57
59
~mtsMulticastCommandWriteBase
() {}
60
62
virtual
bool
AddCommand
(
BaseType
* command);
63
65
virtual
bool
RemoveCommand
(
BaseType
* command);
66
68
virtual
mtsExecutionResult
Execute
(
const
mtsGenericObject
& argument,
69
mtsBlockingType
blocking) = 0;
70
71
/* documented in base class */
72
virtual
void
ToStream
(std::ostream & outputStream)
const
;
73
};
74
75
76
#endif
// _mtsMulticastCommandWriteBase_h
77
mtsCommandWriteBase::mtsCommandWriteBase
mtsCommandWriteBase(void)
Definition
mtsCommandWriteBase.h:49
mtsExecutionResult
Definition
mtsExecutionResult.h:34
mtsGenericObject
Base class for data object in cisstMultiTask.
Definition
mtsGenericObject.h:52
mtsMulticastCommandWriteBase::mtsMulticastCommandWriteBase
mtsMulticastCommandWriteBase(const std::string &name)
Definition
mtsMulticastCommandWriteBase.h:54
mtsMulticastCommandWriteBase::BaseType
mtsCommandWriteBase BaseType
Definition
mtsMulticastCommandWriteBase.h:46
mtsMulticastCommandWriteBase::VectorType
std::vector< BaseType * > VectorType
Definition
mtsMulticastCommandWriteBase.h:47
mtsMulticastCommandWriteBase::RemoveCommand
virtual bool RemoveCommand(BaseType *command)
mtsMulticastCommandWriteBase::ToStream
virtual void ToStream(std::ostream &outputStream) const
mtsMulticastCommandWriteBase::AddCommand
virtual bool AddCommand(BaseType *command)
mtsMulticastCommandWriteBase::Commands
VectorType Commands
Definition
mtsMulticastCommandWriteBase.h:50
mtsMulticastCommandWriteBase::Execute
virtual mtsExecutionResult Execute(const mtsGenericObject &argument, mtsBlockingType blocking)=0
mtsMulticastCommandWriteBase::~mtsMulticastCommandWriteBase
~mtsMulticastCommandWriteBase()
Definition
mtsMulticastCommandWriteBase.h:59
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
mtsCommandWriteBase.h
Defines a base class for a command with one argument.
mtsExport.h
Rules of exporting.
mtsBlockingType
mtsBlockingType
Definition
mtsForwardDeclarations.h:54
Generated by
1.18.0