Kallisto Linux API
Library for interacting with Kallisto devices
kallisto.hpp
Go to the documentation of this file.
1 
42 #ifndef KALLISTO_HPP
43 #define KALLISTO_HPP
44 
45 #include <string>
46 
47 namespace kallisto {
48 namespace hardware {
49 
53 class Kallisto {
54 protected:
56  const std::string m_name;
58  const std::string m_address;
60  std::string m_manufacturer; //This Kallisto manufacturer
62  std::string m_software_version; //This Kallisto software version
64  std::string m_firmware_version; //This Kallisto firmware version
66  std::string m_hardware_version; //This Kallisto hardware version
67 
71  Kallisto(std::string name, std::string address);
72 
76  virtual ~Kallisto();
77 
81  Kallisto(Kallisto const&) = delete;
82  Kallisto(Kallisto&&) = delete;
83  void operator=(Kallisto const&) = delete;
84  void operator=(Kallisto &&) = delete;
85 
86 public:
91  std::string getName() const;
92 
97  std::string getAddress() const;
98 
103  std::string getManufacturer() const;
104 
109  std::string getSoftwareVersion() const;
110 
115  std::string getFirmwareVersion() const;
116 
121  std::string getHardwareVersion() const;
122 
127  virtual bool getBeingUsed() = 0;
128 
137  virtual bool getLinkLoss() = 0;
138 
139  bool operator== (const Kallisto &other) const;
140  bool operator!= (const Kallisto &other) const;
141 };
142 
143 } /* namespace hardware */
144 } /* namespace kallisto */
145 
146 #endif // KALLISTO_HPP
std::string getAddress() const
std::string getManufacturer() const
std::string m_manufacturer
Definition: kallisto.hpp:59
std::string getFirmwareVersion() const
Definition: bluetooth_adapter.hpp:52
std::string m_firmware_version
Definition: kallisto.hpp:63
std::string getHardwareVersion() const
std::string getSoftwareVersion() const
std::string m_software_version
Definition: kallisto.hpp:61
const std::string m_name
Definition: kallisto.hpp:55
Kallisto(std::string name, std::string address)
std::string getName() const
virtual bool getBeingUsed()=0
std::string m_hardware_version
Definition: kallisto.hpp:65
virtual bool getLinkLoss()=0
const std::string m_address
Definition: kallisto.hpp:57