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-01-20 13:53:09 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             : #ifndef GUARD_9001E931_0C39_4A49_83A4_60726128845A
       9             : #define GUARD_9001E931_0C39_4A49_83A4_60726128845A
      10             : 
      11             : namespace can
      12             : {
      13             : class CANFrame;
      14             : 
      15             : /**
      16             :  * Interface for listeners that need to be notified when a CANFrame has
      17             :  * been sent.
      18             :  *
      19             :  */
      20             : class ICANFrameSentListener
      21             : {
      22             : protected:
      23          19 :     ICANFrameSentListener() = default;
      24             : 
      25             : public:
      26             :     ICANFrameSentListener(ICANFrameSentListener const&)            = delete;
      27             :     ICANFrameSentListener& operator=(ICANFrameSentListener const&) = delete;
      28             :     /**
      29             :      * \warning
      30             :      * This callback is called from ISR context!
      31             :      */
      32             :     virtual void canFrameSent(CANFrame const& frame)               = 0;
      33             : };
      34             : 
      35             : } // namespace can
      36             : 
      37             : #endif /*GUARD_9001E931_0C39_4A49_83A4_60726128845A*/

Generated by: LCOV version 1.14