]> pilppa.org Git - libplp.git/blob - src/Device.cc
96189bc30fb609901b9e835c9834d7cb344bd109
[libplp.git] / src / Device.cc
1 /*
2  * Device.cc
3  *
4  *  Created on: Mar 4, 2011
5  *      Author: lamikr
6  */
7 #include "Device.hh"
8
9 using namespace std;
10 using namespace plp;
11
12 Device::Device(string id_param, string type_param) {
13         id                      = id_param;
14         type                    = type_param;
15         lifecycle_status        = LIFECYCLE_STATUS__UNAVAILABLE;
16 }
17
18 Device::Device(std::string id_param, std::string type_param, std::string name_param, plp::EnumDeviceLifeCycleStatus status_param) {
19         id                      = id_param;
20         type                    = type_param;
21         name                    = name_param;
22         lifecycle_status        = status_param;
23 }
24
25 Device::~Device() {
26
27 }
28
29 string Device::get_id() {
30         return id;
31 }
32
33 string Device::get_name() {
34         return name;
35 }
36
37 void Device::set_name(string name_param) {
38         name    = name_param;
39 }
40
41 EnumDeviceLifeCycleStatus Device::get_lifecycle_state() {
42         return lifecycle_status;
43 }
44
45 string Device::get_type() {
46         return type;
47 }