cisst-saw
Loading...
Searching...
No Matches
prmInputDataConverter.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 Author(s): Anton Deguet
6 Created on: 2021-02-19
7
8 (C) Copyright 2021 Johns Hopkins University (JHU), All Rights Reserved.
9
10--- begin cisst license - do not edit ---
11
12This software is provided "as is" under an open source license, with
13no warranty. The complete license can be found in license.txt and
14http://www.cisst.org/cisst/license.txt.
15
16--- end cisst license ---
17*/
18
19#ifndef _prmInputDataConverter_h
20#define _prmInputDataConverter_h
21
22#include <cisstConfig.h> // for CISST_HAS_JSON
25
26// Always include last
28
29class prmInputDataConverterBase;
30
39{
40 public:
42
43#if CISST_HAS_JSON
44 bool ConfigureJSON(const Json::Value & jsonConfig);
45#endif // CISST_HAS_JSON
46
47 bool AddProvidedButton(const std::string & interfaceName,
48 const int & indexInput);
49
51 bool Update(const prmInputData & inputData);
52
53 protected:
55
56 typedef std::list<prmInputDataConverterBase *> ConvertersType;
58
63
67 inline const cmnClassServicesBase * Services(void) const {
68 return this->mComponentServices;
69 }
70
74
75};
76
77#endif // _prmInputDataConverter_h
Base class for class services.
Definition cmnClassServicesBase.h:46
static StreamBufType * GetMultiplexer(void)
Definition cmnLogger.h:420
cmnLODMultiplexerStreambuf< char > StreamBufType
Definition cmnLogger.h:246
Definition mtsComponent.h:150
bool AddProvidedButton(const std::string &interfaceName, const int &indexInput)
const cmnClassServicesBase * mComponentServices
Definition prmInputDataConverter.h:62
const cmnClassServicesBase * Services(void) const
Definition prmInputDataConverter.h:67
ConvertersType mConverters
Definition prmInputDataConverter.h:57
std::list< prmInputDataConverterBase * > ConvertersType
Definition prmInputDataConverter.h:56
cmnLogger::StreamBufType * GetLogMultiplexer(void) const
Definition prmInputDataConverter.h:71
prmInputDataConverter(mtsComponent &component)
bool Update(const prmInputData &inputData)
mtsComponent & mComponent
Definition prmInputDataConverter.h:54
Definition prmInputData.h:36
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Declaration of mtsComponent.