storage::LoopCo Class Reference

#include <LoopCo.h>

Inheritance diagram for storage::LoopCo:

storage::Container List of all members.

Public Member Functions

 LoopCo (Storage *const s, bool detect, ProcPart &ppart)
 LoopCo (const LoopCo &rhs)
virtual ~LoopCo ()
int createLoop (const string &file, bool reuseExisting, unsigned long long sizeK, string &device)
int updateLoop (const string &device, const string &file, bool reuseExisting, unsigned long long sizeK)
int removeLoop (const string &file, bool removeFile=false)
int removeVolume (Volume *v)
bool equalContent (const LoopCo &rhs) const
void logDifference (const LoopCo &d) const

Static Public Member Functions

static storage::CType const staticType ()

Protected Types

typedef CastIterator< VIter,
Loop * > 
LoopInter
typedef CastIterator< CVIter,
const Loop * > 
LoopCInter
typedef CheckFnc< const LoopCheckFncLoop
typedef CheckerIterator< CheckFncLoop,
LoopPI< CheckFncLoop >::type,
LoopInter, Loop
LoopPIterator
typedef CheckerIterator< CheckFncLoop,
LoopCPI< CheckFncLoop
>::type, LoopCInter, const
Loop
LoopCPIterator
typedef DerefIterator< LoopPIterator,
Loop
LoopIter
typedef DerefIterator< LoopCPIterator,
const Loop
ConstLoopIter
typedef IterPair< LoopIterLoopPair
typedef IterPair< ConstLoopIterConstLoopPair

Protected Member Functions

LoopPair loopPair (bool(*Check)(const Loop &)=NULL)
LoopIter loopBegin (bool(*Check)(const Loop &)=NULL)
LoopIter loopEnd (bool(*Check)(const Loop &)=NULL)
ConstLoopPair loopPair (bool(*Check)(const Loop &)=NULL) const
ConstLoopIter loopBegin (bool(*Check)(const Loop &)=NULL) const
ConstLoopIter loopEnd (bool(*Check)(const Loop &)=NULL) const
 LoopCo (Storage *const s, const string &File)
void getLoopData (ProcPart &ppart)
bool findLoop (unsigned num, LoopIter &i)
bool findLoop (unsigned num)
bool findLoop (const string &file, LoopIter &i)
bool findLoop (const string &file)
bool findLoopDev (const string &dev, LoopIter &i)
void addLoop (Loop *m)
void updateEntry (const Loop *m)
void init ()
virtual void print (std::ostream &s) const
virtual ContainergetCopy () const
int doCreate (Volume *v)
int doRemove (Volume *v)
void logData (const string &Dir)

Static Protected Member Functions

static int getFreeLoop (string &dev)

Friends

class Storage
std::ostream & operator<< (std::ostream &, const LoopCo &)

Classes

struct  LoopCPI
struct  LoopPI

Member Typedef Documentation

typedef CheckFnc<const Loop> storage::LoopCo::CheckFncLoop [protected]
 

typedef DerefIterator<LoopCPIterator,const Loop> storage::LoopCo::ConstLoopIter [protected]
 

typedef IterPair<ConstLoopIter> storage::LoopCo::ConstLoopPair [protected]
 

typedef CastIterator<CVIter, const Loop *> storage::LoopCo::LoopCInter [protected]
 

typedef CheckerIterator< CheckFncLoop, LoopCPI<CheckFncLoop>::type, LoopCInter, const Loop > storage::LoopCo::LoopCPIterator [protected]
 

typedef CastIterator<VIter, Loop *> storage::LoopCo::LoopInter [protected]
 

typedef DerefIterator<LoopPIterator,Loop> storage::LoopCo::LoopIter [protected]
 

typedef IterPair<LoopIter> storage::LoopCo::LoopPair [protected]
 

typedef CheckerIterator< CheckFncLoop, LoopPI<CheckFncLoop>::type, LoopInter, Loop > storage::LoopCo::LoopPIterator [protected]
 


Constructor & Destructor Documentation

LoopCo::LoopCo Storage *const   s,
bool  detect,
ProcPart ppart
 

LoopCo::LoopCo const LoopCo rhs  ) 
 

LoopCo::~LoopCo  )  [virtual]
 

LoopCo::LoopCo Storage *const   s,
const string &  File
[protected]
 


Member Function Documentation

void storage::LoopCo::addLoop Loop m  )  [protected]
 

int LoopCo::createLoop const string &  file,
bool  reuseExisting,
unsigned long long  sizeK,
string &  device
 

int LoopCo::doCreate Volume v  )  [protected, virtual]
 

Reimplemented from storage::Container.

int LoopCo::doRemove Volume v  )  [protected, virtual]
 

Reimplemented from storage::Container.

bool LoopCo::equalContent const LoopCo rhs  )  const
 

bool LoopCo::findLoop const string &  file  )  [protected]
 

bool LoopCo::findLoop const string &  file,
LoopIter i
[protected]
 

bool LoopCo::findLoop unsigned  num  )  [protected]
 

bool LoopCo::findLoop unsigned  num,
LoopIter i
[protected]
 

bool LoopCo::findLoopDev const string &  dev,
LoopIter i
[protected]
 

virtual Container* storage::LoopCo::getCopy  )  const [inline, protected, virtual]
 

Reimplemented from storage::Container.

static int storage::LoopCo::getFreeLoop string &  dev  )  [static, protected]
 

void LoopCo::getLoopData ProcPart ppart  )  [protected]
 

void LoopCo::init  )  [protected]
 

void LoopCo::logData const string &  Dir  )  [protected, virtual]
 

Reimplemented from storage::Container.

void LoopCo::logDifference const LoopCo d  )  const
 

ConstLoopIter storage::LoopCo::loopBegin bool(*)(const Loop &)  Check = NULL  )  const [inline, protected]
 

LoopIter storage::LoopCo::loopBegin bool(*)(const Loop &)  Check = NULL  )  [inline, protected]
 

ConstLoopIter storage::LoopCo::loopEnd bool(*)(const Loop &)  Check = NULL  )  const [inline, protected]
 

LoopIter storage::LoopCo::loopEnd bool(*)(const Loop &)  Check = NULL  )  [inline, protected]
 

ConstLoopPair storage::LoopCo::loopPair bool(*)(const Loop &)  Check = NULL  )  const [inline, protected]
 

LoopPair storage::LoopCo::loopPair bool(*)(const Loop &)  Check = NULL  )  [inline, protected]
 

virtual void storage::LoopCo::print std::ostream &  s  )  const [inline, protected, virtual]
 

Reimplemented from storage::Container.

int LoopCo::removeLoop const string &  file,
bool  removeFile = false
 

int LoopCo::removeVolume Volume v  )  [virtual]
 

Reimplemented from storage::Container.

static storage::CType const storage::LoopCo::staticType  )  [inline, static]
 

Reimplemented from storage::Container.

void storage::LoopCo::updateEntry const Loop m  )  [protected]
 

int LoopCo::updateLoop const string &  device,
const string &  file,
bool  reuseExisting,
unsigned long long  sizeK
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  s,
const LoopCo d
[friend]
 

friend class Storage [friend]
 

Reimplemented from storage::Container.


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:40:25 2006 for yast2-storage by  doxygen 1.4.6