]> pilppa.org Git - libplp.git/blobdiff - src/DeviceData.hh
w1 independent file cleanups.
[libplp.git] / src / DeviceData.hh
diff --git a/src/DeviceData.hh b/src/DeviceData.hh
new file mode 100644 (file)
index 0000000..ce0f89a
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * DeviceData.hh
+ *
+ *  Created on: Mar 4, 2011
+ *      Author: lamikr
+ */
+
+#ifndef DEVICEINFO_HH_
+#define DEVICEINFO_HH_
+
+#include <string>
+
+using namespace std;
+
+namespace plp {
+       enum EnumDeviceLifeCycleStatus {LIFECYCLE_STATUS__UNAVAILABLE, LIFECYCLE_STATUS__AVAILABLE};
+
+       class DeviceData {
+               public:
+                       DeviceData(string id_param, string type_param);
+                       DeviceData(string id_param, string type_param, string name_param, EnumDeviceLifeCycleStatus status_param);
+                       ~DeviceData();
+                       std::string get_id();
+                       std::string get_name();
+                       std::string get_type();
+                       plp::EnumDeviceLifeCycleStatus get_lifecycle_state();
+                       void set_name(std::string name_param);
+                       void printout();
+               protected:
+                       std::string id;
+                       std::string name;
+                       std::string type;
+                       plp::EnumDeviceLifeCycleStatus lifecycle_status;
+       };
+}
+
+#endif /* DEVICEINFO_HH_ */