#include <Geometry.h>
Public Member Functions | |
| Geometry () | |
| unsigned long long | sizeK () const |
| unsigned long | cylinderSize () const |
| unsigned long | headSize () const |
| unsigned long long | cylinderToKb (unsigned long cylinder) const |
| unsigned long | kbToCylinder (unsigned long long kb) const |
| unsigned long long | sectorToKb (unsigned long long sector) const |
| unsigned long long | kbToSector (unsigned long long kb) const |
| bool | operator== (const Geometry &rhs) const |
| bool | operator!= (const Geometry &rhs) const |
Public Attributes | |
| unsigned long | cylinders |
| unsigned int | heads |
| unsigned int | sectors |
| unsigned int | sector_size |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const Geometry &geo) |
| bool | getChildValue (const xmlNode *node, const char *name, Geometry &value) |
| void | setChildValue (xmlNode *node, const char *name, const Geometry &value) |
| storage::Geometry::Geometry | ( | ) |
| unsigned long long storage::Geometry::sizeK | ( | ) | const |
References cylinders, and cylinderSize().
Referenced by storage::Dasd::detectPartitions(), and storage::Dasd::initializeDisk().
| unsigned long storage::Geometry::cylinderSize | ( | ) | const |
References heads, sector_size, and sectors.
Referenced by cylinderToKb(), storage::detectGeometry(), storage::Disk::doResize(), storage::Disk::getInfo(), kbToCylinder(), and sizeK().
| unsigned long storage::Geometry::headSize | ( | ) | const |
| unsigned long long storage::Geometry::cylinderToKb | ( | unsigned long | cylinder | ) | const |
| unsigned long storage::Geometry::kbToCylinder | ( | unsigned long long | kb | ) | const |
| unsigned long long storage::Geometry::sectorToKb | ( | unsigned long long | sector | ) | const |
| unsigned long long storage::Geometry::kbToSector | ( | unsigned long long | kb | ) | const |
| bool storage::Geometry::operator== | ( | const Geometry & | rhs | ) | const |
References cylinders, heads, sector_size, and sectors.
| bool storage::Geometry::operator!= | ( | const Geometry & | rhs | ) | const [inline] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const Geometry & | geo | |||
| ) | [friend] |
| bool getChildValue | ( | const xmlNode * | node, | |
| const char * | name, | |||
| Geometry & | value | |||
| ) | [friend] |
Referenced by storage::getChildValue().
| void setChildValue | ( | xmlNode * | node, | |
| const char * | name, | |||
| const Geometry & | value | |||
| ) | [friend] |
Referenced by storage::setChildValue().
| unsigned long storage::Geometry::cylinders |
Referenced by storage::Disk::addPartition(), storage::Disk::cylinders(), storage::detectGeometry(), storage::Disk::doCreate(), storage::getChildValue(), storage::operator<<(), operator==(), storage::Parted::scanCylEntryLine(), storage::Fdasd::scanEntryLine(), storage::Fdasd::scanGeometry(), storage::Dasdview::scanGeometry(), storage::Parted::scanGeometryLine(), storage::setChildValue(), and sizeK().
| unsigned int storage::Geometry::heads |
Referenced by storage::Disk::addPartition(), cylinderSize(), storage::Dasdview::Dasdview(), storage::detectGeometry(), storage::Dasd::doFdasd(), storage::getChildValue(), storage::Disk::getPartedSectors(), storage::Disk::heads(), storage::Dasd::initializeDisk(), storage::operator<<(), operator==(), storage::Fdasd::scanEntryLine(), storage::Fdasd::scanGeometry(), storage::Dasdview::scanGeometry(), storage::Parted::scanGeometryLine(), and storage::setChildValue().
| unsigned int storage::Geometry::sectors |
Referenced by storage::Disk::addPartition(), cylinderSize(), storage::Dasdview::Dasdview(), storage::detectGeometry(), storage::getChildValue(), storage::Disk::getPartedSectors(), headSize(), storage::Dasd::initializeDisk(), storage::operator<<(), operator==(), storage::Fdasd::scanGeometry(), storage::Dasdview::scanGeometry(), storage::Parted::scanGeometryLine(), storage::Disk::sectors(), and storage::setChildValue().
| unsigned int storage::Geometry::sector_size |
Referenced by cylinderSize(), storage::Dasdview::Dasdview(), storage::detectGeometry(), storage::getChildValue(), headSize(), kbToSector(), storage::operator<<(), operator==(), storage::Fdasd::scanGeometry(), storage::Dasdview::scanGeometry(), storage::Parted::scanSectorSizeLine(), storage::Disk::sectorSize(), sectorToKb(), and storage::setChildValue().
1.5.6