]> pilppa.org Git - lib1wire.git/blob - src/Device.hh
Started defining generic device type base classes that could be used
[lib1wire.git] / src / Device.hh
1 /*
2  * GenericDevice.hh
3  *
4  *  Created on: Feb 28, 2011
5  *      Author: lamikr
6  */
7
8 #ifndef DEVICETYPEGENERIC_HH_
9 #define DEVICETYPEGENERIC_HH_
10
11 #include <string>
12
13 #include "DataReader.hh"
14
15 namespace plp {
16         enum EnumDeviceLifeCycleStatus {LIFECYCLE_STATUS__UNAVAILABLE, LIFECYCLE_STATUS__AVAILABLE};
17
18         class Device {
19                 public:
20                         virtual std::string get_id() = 0;
21                         virtual std::string get_name() = 0;
22                         virtual void set_name(std::string name_param) = 0;
23                         virtual std::string get_device_type() = 0;
24                         virtual plp::DataReader *get_device_data() = 0;
25                         virtual EnumDeviceLifeCycleStatus get_lifecycle_state() = 0;
26                         virtual void printout() = 0;
27         };
28 }
29
30 #endif /* DEVICETYPEGENERIC_HH_ */