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