Commit 70169a03 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Merge remote-tracking branch 'upstream/master' into AV_master

parents e83fbf24 08f0c50a
Pipeline #394973 passed with stages
in 25 minutes and 41 seconds
#include "CommonAuditor.h"
#include "GaudiKernel/GaudiException.h"
CommonAuditor::CommonAuditor( const std::string& name, ISvcLocator* svcloc ) : Auditor( name, svcloc )
{
auto deprecated_property = [this]( Gaudi::Details::PropertyBase& p ) {
warning() << p.name() << " " << p.documentation() << endmsg;
m_types = m_customTypes;
if ( m_customTypes.size() > 0 ) {
if ( m_types.size() > 0 ) {
error() << p.name() << " is deprecated, but both " << m_customTypes.name() << " and " << m_types.name()
<< " used." << endmsg;
throw GaudiException( "Property CustomEventTypes is deprecated, but both CustomEventTypes and EventTypes used",
this->name(), StatusCode::FAILURE );
} else {
warning() << p.name() << " " << p.documentation() << endmsg;
m_types = m_customTypes;
}
}
};
m_customTypes.declareUpdateHandler( deprecated_property );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment