Registry and Factory for IDataSink class
This is a follow-up on MR 102.
This class creates the registry (DataSinkRegistry
) and factory (DataSinkConf
) for the IDataSink
classes.
The user can now declare the sink in the json configuration:
"datasinks":{
"Console":{
"sinktype": "ConsoleSink"
},
and this can be tested using the ps_monitor
script in tools
:
./bin/ps_monitor ../src/configs/input-hw.json low-voltage Console
This will print out the measurement to the console, as explained in MR 102
Edited by Elodie Deborah Resseguie
Merge request reports
Activity
- Resolved by Elodie Deborah Resseguie
Can you separate the addition of the
DataSinkRegistry
from splitting the factories and registries? The split will be useful even beforeIDataSink
is merged.
- Resolved by Karol Krizka
- Resolved by Karol Krizka
- Resolved by Elodie Deborah Resseguie
DataSinkRegistry
should be inlibDataSink
. Same circular dependency as for power supplies.
Please register or sign in to reply