cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstParameterTypes
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
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://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
23
#include <
cisstMultiTask/mtsComponent.h
>
24
#include <
cisstParameterTypes/prmInputData.h
>
25
26
// Always include last
27
#include <
cisstParameterTypes/prmExport.h
>
28
29
class
prmInputDataConverterBase;
30
38
class
CISST_EXPORT
prmInputDataConverter
39
{
40
public
:
41
prmInputDataConverter
(
mtsComponent
& component);
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
:
54
mtsComponent
&
mComponent
;
55
56
typedef
std::list<prmInputDataConverterBase *>
ConvertersType
;
57
ConvertersType
mConverters
;
58
62
const
cmnClassServicesBase
*
mComponentServices
;
63
67
inline
const
cmnClassServicesBase
*
Services
(
void
)
const
{
68
return
this->mComponentServices;
69
}
70
71
inline
cmnLogger::StreamBufType
*
GetLogMultiplexer
(
void
)
const
{
72
return
cmnLogger::GetMultiplexer
();
73
}
74
75
};
76
77
#endif
// _prmInputDataConverter_h
cisstConfig.h
cmnClassServicesBase
Base class for class services.
Definition
cmnClassServicesBase.h:46
cmnLogger::GetMultiplexer
static StreamBufType * GetMultiplexer(void)
Definition
cmnLogger.h:420
cmnLogger::StreamBufType
cmnLODMultiplexerStreambuf< char > StreamBufType
Definition
cmnLogger.h:246
mtsComponent
Definition
mtsComponent.h:150
prmInputDataConverter::AddProvidedButton
bool AddProvidedButton(const std::string &interfaceName, const int &indexInput)
prmInputDataConverter::mComponentServices
const cmnClassServicesBase * mComponentServices
Definition
prmInputDataConverter.h:62
prmInputDataConverter::Services
const cmnClassServicesBase * Services(void) const
Definition
prmInputDataConverter.h:67
prmInputDataConverter::mConverters
ConvertersType mConverters
Definition
prmInputDataConverter.h:57
prmInputDataConverter::ConvertersType
std::list< prmInputDataConverterBase * > ConvertersType
Definition
prmInputDataConverter.h:56
prmInputDataConverter::GetLogMultiplexer
cmnLogger::StreamBufType * GetLogMultiplexer(void) const
Definition
prmInputDataConverter.h:71
prmInputDataConverter::prmInputDataConverter
prmInputDataConverter(mtsComponent &component)
prmInputDataConverter::Update
bool Update(const prmInputData &inputData)
prmInputDataConverter::mComponent
mtsComponent & mComponent
Definition
prmInputDataConverter.h:54
prmInputData
Definition
prmInputData.h:36
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
mtsComponent.h
Declaration of mtsComponent.
prmExport.h
prmInputData.h
Generated by
1.18.0