Skip to content
Snippets Groups Projects

The get methods of the ROBDataProviderSvc can be made const

1 unresolved thread
5 files
+ 99
95
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -44,11 +44,11 @@ public:
/// Retrieve ROBFragments for given ROB ids from cache
virtual void getROBData(const std::vector<uint32_t>& robIds, VROBFRAG& robFragments, const std::string_view callerName="UNKNOWN") = 0;
virtual void getROBData(const std::vector<uint32_t>& robIds, VROBFRAG& robFragments, const std::string_view callerName="UNKNOWN") const = 0;
/// Retrieve the whole event.
virtual const RawEvent* getEvent() = 0;
virtual const RawEvent* getEvent() const = 0;
/// Store the status for the event.
@@ -56,7 +56,7 @@ public:
/// Retrieve the status for the event.
virtual uint32_t getEventStatus() = 0;
virtual uint32_t getEventStatus() const = 0;
// variants for MT, it has an implementation for now in order not to require change in all implementations yet, they will all become pure virtual methods
@@ -70,16 +70,16 @@ public:
throw std::runtime_error(std::string("Unimplemented ") + __FUNCTION__ );
}
virtual void getROBData(const EventContext& /*context*/, const std::vector<uint32_t>& /*robIds*/, VROBFRAG& /*robFragments*/,
const std::string_view callerName="UNKNOWN") {
const std::string_view callerName="UNKNOWN") const {
throw std::runtime_error( std::string(callerName)+ std::string(" is using unimplemented ") + __FUNCTION__ ) ;
}
virtual const RawEvent* getEvent(const EventContext& /*context*/) {
virtual const RawEvent* getEvent(const EventContext& /*context*/) const {
throw std::runtime_error(std::string("Unimplemented ") + __FUNCTION__ );
}
virtual void setEventStatus(const EventContext& /*context*/, uint32_t /*status*/) {
throw std::runtime_error(std::string("Unimplemented ") + __FUNCTION__ );
}
virtual uint32_t getEventStatus(const EventContext& /*context*/) {
virtual uint32_t getEventStatus(const EventContext& /*context*/) const {
throw std::runtime_error(std::string("Unimplemented ") + __FUNCTION__ );
return 0;
}
Loading