GNSS-SDR  0.0.13
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  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
9  *
10  * GNSS-SDR is a software defined Global Navigation
11  * Satellite Systems receiver
12  *
13  * This file is part of GNSS-SDR.
14  *
15  * SPDX-License-Identifier: GPL-3.0-or-later
16  *
17  * -----------------------------------------------------------------------------
18  */
19 
20 #ifndef GNSS_SDR_CHANNEL_EVENT_H
21 #define GNSS_SDR_CHANNEL_EVENT_H
22 
23 #include <memory>
24 
25 class Channel_Event;
26 
27 using channel_event_sptr = std::shared_ptr<Channel_Event>;
28 
29 channel_event_sptr channel_event_make(int channel_id, int event_type);
30 
32 {
33 public:
34  int channel_id;
35  int event_type;
36 
37 private:
38  friend channel_event_sptr channel_event_make(int channel_id, int event_type);
39  Channel_Event(int channel_id_, int event_type_);
40 };
41 
42 #endif // GNSS_SDR_CHANNEL_EVENT_H