Skip to content
Snippets Groups Projects
Commit 98039ab4 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

disable history for properties with names longer than 64 characters, since...

disable history for properties with names longer than 64 characters, since DOOCS seems not to support this
parent af8d8dd2
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,15 @@ public:
ProcessVariableListener::SharedPtr( new DoocsScalarListener(this) ) );
}
DoocsProcessScalar( boost::shared_ptr< typename ChimeraTK::ProcessArray<T> > const & processScalar,
EqFct * const eqFct,
ControlSystemSynchronizationUtility & syncUtility)
: DOOCS_T( splitStringAtFirstSlash(processScalar->getName()).second.c_str(), eqFct ),
_processScalar(processScalar) {
syncUtility.addReceiveNotificationListener( processScalar->getName(),
ProcessVariableListener::SharedPtr( new DoocsScalarListener(this) ) );
}
/** Override the Doocs set method which is triggered by the RPC calls.
*/
void set(EqAdr *adr, EqData *data1, EqData *data2, EqFct *eqfct) override{
......
......@@ -28,7 +28,13 @@ namespace ChimeraTK {
return boost::shared_ptr<D_fct>( new DoocsProcessArray<T>(_eqFct, processArray, *_syncUtility) );
}
else {
return boost::shared_ptr<D_fct>( new DoocsProcessScalar<T, DOOCS_T, DOOCS_VALUE_T>(_eqFct, processArray, *_syncUtility) );
// histories seem to be supported by DOOCS only for property names shorter than 64 characters, so disable history for longer names
if(processArray->getName().length() <= 64) {
return boost::shared_ptr<D_fct>( new DoocsProcessScalar<T, DOOCS_T, DOOCS_VALUE_T>(_eqFct, processArray, *_syncUtility) );
}
else {
return boost::shared_ptr<D_fct>( new DoocsProcessScalar<T, DOOCS_T, DOOCS_VALUE_T>(processArray, _eqFct, *_syncUtility) );
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment