]> pilppa.org Git - libplp.git/blob - src/DeviceData.hh
w1 independent file cleanups.
[libplp.git] / src / DeviceData.hh
1 /*
2  * DeviceData.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 DeviceData {
19                 public:
20                         DeviceData(string id_param, string type_param);
21                         DeviceData(string id_param, string type_param, string name_param, EnumDeviceLifeCycleStatus status_param);
22                         ~DeviceData();
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                         void printout();
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_ */