libcyberradio  22.01.24
Driver.h
1 /***************************************************************************
2  * \file Driver.h
3  * \brief Main entry point for the C++ CyberRadio Driver.
4  * \author DA
5  * \copyright (c) 2018 CyberRadio Solutions, Inc. All rights reserved.
6  *
7  * \note Requires C++11 compiler support.
8  *
9  ***************************************************************************/
10 
11 #ifndef INCLUDED_LIBCYBERRADIO_DRIVER_DRIVER_H
12 #define INCLUDED_LIBCYBERRADIO_DRIVER_DRIVER_H
13 
14 #include "LibCyberRadio/Driver/RadioHandler.h"
15 #include <memory>
16 #include <vector>
17 
21 namespace LibCyberRadio
22 {
26  namespace Driver
27  {
31  typedef std::shared_ptr<RadioHandler> RadioHandlerPtr;
32 
63  const std::string& nameString,
64  const std::string& device = "",
65  int devicePort = -1,
66  bool debug = false
67  );
68  std::vector<std::string> getSupportedDevices( void );
69 
70  } // namespace Driver
71 
72 } // namespace LibCyberRadio
73 
74 #endif /* INCLUDED_LIBCYBERRADIO_DRIVER_DRIVER_H */
std::shared_ptr< RadioHandler > RadioHandlerPtr
A pointer to a radio handler object.
Definition: Driver.h:31
RadioHandlerPtr getRadioObject(const std::string &nameString, const std::string &device="", int devicePort=-1, bool debug=false)
Factory method for returning a radio handler object for a given radio.
Definition: Driver.cpp:34
Defines functionality for LibCyberRadio applications.
Definition: App.h:23