storage::AsciiFile Class Reference

#include <AsciiFile.h>

Inheritance diagram for storage::AsciiFile:

storage::ProcPart List of all members.

Public Member Functions

 AsciiFile (bool CreateBackup_bv=false, const char *BackupExt_Cv=".orig")
 AsciiFile (const string &Name_Cv, bool CreateBackup_bv=false, const char *BackupExt_Cv=".orig")
 AsciiFile (const char *Name_Cv, bool CreateBackup_bv=false, const char *BackupExt_Cv=".orig")
 ~AsciiFile ()
bool insertFile (AsciiFile &File_Cv, unsigned int BeforeLine_iv=0)
bool appendFile (AsciiFile &File_Cv)
bool insertFile (const string &Name_Cv, unsigned int BeforeLine_iv=0)
bool appendFile (const string &Name_Cv)
bool loadFile (const string &Name_Cv)
bool updateFile ()
bool saveToFile (const string &Name_Cv)
void append (const string &Line_Cv)
void append (const std::list< string > &Lines_Cv)
void insert (unsigned int Before_iv, const string &Line_Cv)
void remove (unsigned int Start_iv, unsigned int Cnt_iv)
void replace (unsigned int Start_iv, unsigned int Cnt_iv, const string &Line_Cv)
void replace (unsigned int Start_iv, unsigned int Cnt_iv, const std::list< string > &Line_Cv)
const string & operator[] (unsigned int Index_iv) const
string & operator[] (unsigned int Index_iv)
int find (unsigned int Start_iv, const string &Pat_Cv)
int find (unsigned int Start_iv, Regex &Pat_Cv)
unsigned numLines () const
const string & fileName ()
unsigned differentLine (const AsciiFile &File_Cv) const

Protected Member Functions

bool appendFile (const string &Name_Cv, std::vector< string > &Lines_Cr)
bool appendFile (AsciiFile &File_Cv, std::vector< string > &Lines_Cr)

Protected Attributes

bool BackupCreated_b
string BackupExtension_C
std::vector< string > Lines_C
string Name_C

Constructor & Destructor Documentation

AsciiFile::AsciiFile ( bool  CreateBackup_bv = false,
const char *  BackupExt_Cv = ".orig" 
)

AsciiFile::AsciiFile ( const string &  Name_Cv,
bool  CreateBackup_bv = false,
const char *  BackupExt_Cv = ".orig" 
)

AsciiFile::AsciiFile ( const char *  Name_Cv,
bool  CreateBackup_bv = false,
const char *  BackupExt_Cv = ".orig" 
)

AsciiFile::~AsciiFile (  ) 


Member Function Documentation

bool AsciiFile::insertFile ( AsciiFile File_Cv,
unsigned int  BeforeLine_iv = 0 
)

bool AsciiFile::appendFile ( AsciiFile File_Cv  ) 

bool AsciiFile::insertFile ( const string &  Name_Cv,
unsigned int  BeforeLine_iv = 0 
)

bool AsciiFile::appendFile ( const string &  Name_Cv  ) 

bool AsciiFile::loadFile ( const string &  Name_Cv  ) 

bool AsciiFile::updateFile (  ) 

bool AsciiFile::saveToFile ( const string &  Name_Cv  ) 

void AsciiFile::append ( const string &  Line_Cv  ) 

void storage::AsciiFile::append ( const std::list< string > &  Lines_Cv  ) 

void AsciiFile::insert ( unsigned int  Before_iv,
const string &  Line_Cv 
)

void AsciiFile::remove ( unsigned int  Start_iv,
unsigned int  Cnt_iv 
)

void AsciiFile::replace ( unsigned int  Start_iv,
unsigned int  Cnt_iv,
const string &  Line_Cv 
)

void storage::AsciiFile::replace ( unsigned int  Start_iv,
unsigned int  Cnt_iv,
const std::list< string > &  Line_Cv 
)

const string & AsciiFile::operator[] ( unsigned int  Index_iv  )  const

string & AsciiFile::operator[] ( unsigned int  Index_iv  ) 

int AsciiFile::find ( unsigned int  Start_iv,
const string &  Pat_Cv 
)

int storage::AsciiFile::find ( unsigned int  Start_iv,
Regex Pat_Cv 
)

unsigned AsciiFile::numLines (  )  const

const string & AsciiFile::fileName (  ) 

unsigned AsciiFile::differentLine ( const AsciiFile File_Cv  )  const

bool storage::AsciiFile::appendFile ( const string &  Name_Cv,
std::vector< string > &  Lines_Cr 
) [protected]

bool storage::AsciiFile::appendFile ( AsciiFile File_Cv,
std::vector< string > &  Lines_Cr 
) [protected]


Member Data Documentation

bool storage::AsciiFile::BackupCreated_b [protected]

string storage::AsciiFile::BackupExtension_C [protected]

std::vector<string> storage::AsciiFile::Lines_C [protected]

string storage::AsciiFile::Name_C [protected]


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 17:50:01 2006 for yast2-storage by  doxygen 1.5.0