storage::Geometry Struct Reference

#include <Geometry.h>

List of all members.

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)


Constructor & Destructor Documentation

storage::Geometry::Geometry (  ) 


Member Function Documentation

unsigned long long storage::Geometry::sizeK (  )  const

unsigned long storage::Geometry::cylinderSize (  )  const

unsigned long storage::Geometry::headSize (  )  const

unsigned long long storage::Geometry::cylinderToKb ( unsigned long  cylinder  )  const

References cylinderSize().

Referenced by storage::Disk::cylinderToKb().

unsigned long storage::Geometry::kbToCylinder ( unsigned long long  kb  )  const

References cylinderSize().

Referenced by storage::Disk::kbToCylinder().

unsigned long long storage::Geometry::sectorToKb ( unsigned long long  sector  )  const

References sector_size.

Referenced by storage::Disk::sectorToKb().

unsigned long long storage::Geometry::kbToSector ( unsigned long long  kb  )  const

References sector_size.

Referenced by storage::Disk::kbToSector().

bool storage::Geometry::operator== ( const Geometry rhs  )  const

References cylinders, heads, sector_size, and sectors.

bool storage::Geometry::operator!= ( const Geometry rhs  )  const [inline]


Friends And Related Function Documentation

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().


Member Data Documentation


The documentation for this struct was generated from the following files:

Generated on Mon Feb 6 10:42:58 2012 for yast2-storage by  doxygen 1.5.6