Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=c79aa7c00bd6c1c65994a029ea61ebfeb382f55a

commit c79aa7c00bd6c1c65994a029ea61ebfeb382f55a
Author: James Buren <[email protected]>
Date:   Sat Aug 18 17:24:08 2012 -0500

import initial partition class

diff --git a/Partition.cc b/Partition.cc
new file mode 100644
index 0000000..6ce0f35
--- /dev/null
+++ b/Partition.cc
@@ -0,0 +1,30 @@
+#include "Partition.hh"
+
+Partition::Partition()
+{
+  _number = 0;
+
+  _start = 0;
+
+  _end = 0;
+
+  _sectors = 0;
+
+  _dos_type = 0;
+
+  _dos_active = false;
+
+  _gpt_name = "";
+
+  _gpt_uuid = "";
+
+  _gpt_type = "";
+
+  _gpt_flags = 0;
+}
+
+Partition::~Partition()
+{
+}
+
+// -%- strip: yes; add-newline: yes; use-tabs: no; indent-width: 2; tab-width: 
2; -%-
diff --git a/Partition.hh b/Partition.hh
new file mode 100644
index 0000000..dcb19b5
--- /dev/null
+++ b/Partition.hh
@@ -0,0 +1,28 @@
+#pragma once
+
+#include <string>
+
+using std::string;
+
+class Partition
+{
+
+public:
+  Partition();
+  ~Partition();
+
+private:
+  unsigned long long _number;
+  unsigned long long _start;
+  unsigned long long _end;
+  unsigned long long _sectors;
+  unsigned char _dos_type;
+  bool _dos_active;
+  string _gpt_name;
+  string _gpt_uuid;
+  string _gpt_type;
+  unsigned long long _gpt_flags;
+
+};
+
+// -%- strip: yes; add-newline: yes; use-tabs: no; indent-width: 2; tab-width: 
2; -%-
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to