Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
SpCclSpeadReaderConfig.h
1 /*
2  * The MIT License (MIT)
3  *
4  * Copyright (c) 2016 The SKA organisation
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 #ifndef SKA_CHEETAH_EXPORTERS_SPCCLSPEADREADERCONFIG_H
25 #define SKA_CHEETAH_EXPORTERS_SPCCLSPEADREADERCONFIG_H
26 #ifdef ENABLE_SPEAD
27 #include "cheetah/utils/Config.h"
28 #include "panda/EndpointConfig.h"
29 #include <panda/ProcessingEngine.h>
30 #include <panda/ProcessingEngineConfig.h>
31 #include <boost/asio/ip/udp.hpp>
32 #include <memory>
33 
34 
35 namespace ska {
36 namespace cheetah {
37 namespace exporters {
38 
43 class SpCclSpeadReaderConfig : public utils::Config
44 {
45  typedef utils::Config BaseT;
46  typedef panda::ProcessingEngine Engine;
47  typedef boost::asio::ip::udp::endpoint EndPointType;
48 
49  public:
50  SpCclSpeadReaderConfig();
51  ~SpCclSpeadReaderConfig();
52 
53  panda::IpAddress const& listen_address() const;
54  Engine& engine() const;
55 
56  void endpoint(EndPointType const& end_point);
57  EndPointType const& endpoint() const;
58 
59  protected:
60  void add_options(OptionsDescriptionEasyInit& add_options) override;
61 
62  private:
63  ska::panda::EndpointConfig _endpoint_config; // send address
64  mutable EndPointType _endpoint;
65  panda::ProcessingEngineConfig _engine_config;
66  bool _init;
67  mutable std::unique_ptr<Engine> _engine;
68 };
69 
70 
71 } // namespace exporters
72 } // namespace cheetah
73 } // namespace ska
74 #endif // ENABLE_SPEAD
75 
76 #endif // SKA_CHEETAH_EXPORTERS_SPCCLSPEADREADERCONFIG_H
Some limits and constants for FLDO.
Definition: Brdz.h:35