GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
channel_event.h
Go to the documentation of this file.
1 /*!
2  * \file channel_event.h
3  * \brief Class that defines a channel event
4  * \author Javier Arribas, 2019. jarribas(at)cttc.es
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9  * This file is part of GNSS-SDR.
10  *
11  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12  * SPDX-License-Identifier: GPL-3.0-or-later
13  *
14  * -----------------------------------------------------------------------------
15  */
16 
17 #ifndef GNSS_SDR_CHANNEL_EVENT_H
18 #define GNSS_SDR_CHANNEL_EVENT_H
19 
20 #include <memory>
21 
22 /** \addtogroup Core
23  * \{ */
24 /** \addtogroup Core_Receiver_Library core_libs
25  * \{ */
26 
27 
28 class Channel_Event;
29 
30 using channel_event_sptr = std::shared_ptr<Channel_Event>;
31 
32 channel_event_sptr channel_event_make(int channel_id, int event_type);
33 
35 {
36 public:
37  int channel_id;
38  int event_type;
39 
40 private:
41  friend channel_event_sptr channel_event_make(int channel_id, int event_type);
42  Channel_Event(int channel_id_, int event_type_);
43 };
44 
45 
46 /** \} */
47 /** \} */
48 #endif // GNSS_SDR_CHANNEL_EVENT_H