cisst-saw
Loading...
Searching...
No Matches
mtsCallableReadBase.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): Anton Deguet
7 Created on: 2010-10-05
8
9 (C) Copyright 2010 Johns Hopkins University (JHU), All Rights
10 Reserved.
11
12--- begin cisst license - do not edit ---
13
14This software is provided "as is" under an open source license, with
15no warranty. The complete license can be found in license.txt and
16http://www.cisst.org/cisst/license.txt.
17
18--- end cisst license ---
19*/
20
21
26
27#ifndef _mtsCallableReadBase_h
28#define _mtsCallableReadBase_h
29
31
40{
41public:
42
44 inline mtsCallableReadBase(void) {}
45
47 inline virtual ~mtsCallableReadBase() {}
48
52
54 virtual void ToStream(std::ostream & outputStream) const = 0;
55};
56
60inline std::ostream & operator << (std::ostream & outputStream,
61 const mtsCallableReadBase & callable) {
62 callable.ToStream(outputStream);
63 return outputStream;
64}
65
66#endif // _mtsCallableReadBase_h
Definition mtsCallableReadBase.h:40
mtsCallableReadBase(void)
Definition mtsCallableReadBase.h:44
virtual ~mtsCallableReadBase()
Definition mtsCallableReadBase.h:47
virtual void ToStream(std::ostream &outputStream) const =0
virtual mtsExecutionResult Execute(mtsGenericObject &result)=0
Definition mtsExecutionResult.h:34
Base class for data object in cisstMultiTask.
Definition mtsGenericObject.h:52
std::ostream & operator<<(std::ostream &outputStream, const mtsCallableReadBase &callable)
Definition mtsCallableReadBase.h:60