LCOV - code coverage report
Current view: top level - cpp2can/include/can/canframes - ICANFrameSentListener.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 1 100.0 %
Date: 2025-04-15 08:32:23 Functions: 0 0 -

          Line data    Source code
       1             : // Copyright 2024 Accenture.
       2             : 
       3             : /**
       4             :  * Contains interface ICANFrameSentListener.
       5             :  * \file    ICANFrameSentListener.h
       6             :  * \ingroup    canframes
       7             :  */
       8             : #pragma once
       9             : 
      10             : namespace can
      11             : {
      12             : class CANFrame;
      13             : 
      14             : /**
      15             :  * Interface for listeners that need to be notified when a CANFrame has
      16             :  * been sent.
      17             :  *
      18             :  */
      19             : class ICANFrameSentListener
      20             : {
      21             : protected:
      22          20 :     ICANFrameSentListener() = default;
      23             : 
      24             : public:
      25             :     ICANFrameSentListener(ICANFrameSentListener const&)            = delete;
      26             :     ICANFrameSentListener& operator=(ICANFrameSentListener const&) = delete;
      27             :     /**
      28             :      * \warning
      29             :      * This callback is called from ISR context!
      30             :      */
      31             :     virtual void canFrameSent(CANFrame const& frame)               = 0;
      32             : };
      33             : 
      34             : } // namespace can

Generated by: LCOV version 1.14