]> pilppa.org Git - libplp.git/blob - src/Device.hh
daef2f89d7002c3a2d3b00628c5819a162ac5baa
[libplp.git] / src / Device.hh
1 /*
2  * Device.hh
3  *
4  *  Created on: Mar 4, 2011
5  *      Author: lamikr
6  */
7
8 #ifndef DEVICEINFO_HH_
9 #define DEVICEINFO_HH_
10
11 #include <string>
12
13 using namespace std;
14
15 namespace plp {
16         enum EnumDeviceLifeCycleStatus {LIFECYCLE_STATUS__UNAVAILABLE, LIFECYCLE_STATUS__AVAILABLE};
17
18         class Device {
19                 public:
20                         Device(string id_param, string type_param);
21                         Device(string id_param, string type_param, string name_param, EnumDeviceLifeCycleStatus status_param);
22                         virtual ~Device() { }
23                         std::string get_id();
24                         std::string get_name();
25                         std::string get_type();
26                         plp::EnumDeviceLifeCycleStatus get_lifecycle_state();
27                         void set_name(std::string name_param);
28                         virtual void printout() = 0;
29                 protected:
30                         std::string id;
31                         std::string name;
32                         std::string type;
33                         plp::EnumDeviceLifeCycleStatus lifecycle_status;
34         };
35 }
36
37 #endif /* DEVICEINFO_HH_ */