GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
command_event.h
Go to the documentation of this file.
1 /*!
2  * \file command_event.h
3  * \brief Class that defines a receiver command 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_COMMAND_EVENT_H
18 #define GNSS_SDR_COMMAND_EVENT_H
19 
20 #include <memory>
21 
22 /** \addtogroup Core
23  * \{ */
24 /** \addtogroup Core_Receiver_Library
25  * \{ */
26 
27 
28 class Command_Event;
29 
30 using command_event_sptr = std::shared_ptr<Command_Event>;
31 
32 command_event_sptr command_event_make(int command_id, int event_type);
33 
35 {
36 public:
37  int command_id;
38  int event_type;
39 
40 private:
41  friend command_event_sptr command_event_make(int command_id, int event_type);
42  Command_Event(int command_id_, int event_type_);
43 };
44 
45 
46 /** \} */
47 /** \} */
48 #endif // GNSS_SDR_COMMAND_EVENT_H