GNSS-SDR  0.0.13
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  * 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_COMMAND_EVENT_H
21 #define GNSS_SDR_COMMAND_EVENT_H
22 
23 #include <memory>
24 
25 class Command_Event;
26 
27 using command_event_sptr = std::shared_ptr<Command_Event>;
28 
29 command_event_sptr command_event_make(int command_id, int event_type);
30 
32 {
33 public:
34  int command_id;
35  int event_type;
36 
37 private:
38  friend command_event_sptr command_event_make(int command_id, int event_type);
39  Command_Event(int command_id_, int event_type_);
40 };
41 
42 #endif // GNSS_SDR_COMMAND_EVENT_H