Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=350294e312f04aade7e52291b061693190a42476
commit 350294e312f04aade7e52291b061693190a42476 Author: James Buren <[email protected]> Date: Sat Aug 18 20:28:59 2012 -0500 reduce Partition class to header definitions diff --git a/Partition.cc b/Partition.cc deleted file mode 100644 index e0d2fa8..0000000 --- a/Partition.cc +++ /dev/null @@ -1,42 +0,0 @@ -#include "Partition.hh" - -Partition::Partition() -{ - _number = 0; - - _start = 0; - - _end = 0; - - _sectors = 0; -} - -Partition::~Partition() -{ -} - -void Partition::setNumber(unsigned long long number) -{ - _number = number; -} - -void Partition::setStart(unsigned long long start) -{ - _start = start; -} - -void Partition::setEnd(unsigned long long end) -{ - _end = end; -} - -void Partition::setSectors(unsigned long long sectors) -{ - _sectors = sectors; -} - -void Partition::setActive(bool active) -{ -} - -// -%- strip: yes; add-newline: yes; use-tabs: no; indent-width: 2; tab-width: 2; -%- diff --git a/Partition.hh b/Partition.hh index 3320edf..9d97834 100644 --- a/Partition.hh +++ b/Partition.hh @@ -8,13 +8,17 @@ class Partition { public: - Partition(); - ~Partition(); - void setNumber(unsigned long long number); - void setStart(unsigned long long start); - void setEnd(unsigned long long end); - void setSectors(unsigned long long sectors); - virtual void setActive(bool active); + Partition() { _number = 0, _start = 0, _end = 0, _sectors = 0; } + ~Partition() { } + void setNumber(unsigned long long number) { _number = number; } + void setStart(unsigned long long start) { _start = start; } + void setEnd(unsigned long long end) { _end = end; } + void setSectors(unsigned long long sectors) { _sectors = sectors; } + unsigned long long getNumber() { return _number; } + unsigned long long getStart() { return _start; } + unsigned long long getEnd() { return _end; } + unsigned long long getSectors() { return _sectors; } + virtual void setActive(bool active) { } protected: unsigned long long _number; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
