Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

AsciiFile Class Reference

#include <AsciiFile.h>

List of all members.

Public Member Functions

 AsciiFile (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 (string Name_Cv, unsigned int BeforeLine_iv=0)
bool AppendFile (string Name_Cv)
bool LoadFile (string Name_Cv)
bool UpdateFile ()
bool SaveToFile (string Name_Cv)
void Append (string Line_Cv)
void Insert (unsigned int Before_iv, string Line_Cv)
void Delete (unsigned int Start_iv, unsigned int Cnt_iv)
void Replace (unsigned int Start_iv, unsigned int Cnt_iv, string Line_Cv)
const string & operator[] (unsigned int Index_iv) const
string & operator[] (unsigned int Index_iv)
int Find (unsigned int Start_iv, string Pat_Cv)
int NumLines () const
string FileName ()
int DifferentLine (const AsciiFile &File_Cv) const

Protected Member Functions

bool AppendFile (string Name_Cv, vector< string > &Lines_Cr)
bool AppendFile (AsciiFile &File_Cv, vector< string > &Lines_Cr)

Protected Attributes

bool BackupCreated_b
string BackupExtension_C
vector< string > Lines_C
string Name_C


Constructor & Destructor Documentation

AsciiFile::AsciiFile (  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

void AsciiFile::Append (  string  Line_Cv  ) 
 

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

bool AsciiFile::AppendFile (  string  Name_Cv,
vector< string > &  Lines_Cr
)  [protected]
 

bool AsciiFile::AppendFile (  string  Name_Cv  ) 
 

bool AsciiFile::AppendFile (  AsciiFile &  File_Cv  ) 
 

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

int AsciiFile::DifferentLine (  const AsciiFile &  File_Cv  )  const
 

string AsciiFile::FileName (   ) 
 

int AsciiFile::Find (  unsigned int  Start_iv,
string  Pat_Cv
) 
 

void AsciiFile::Insert (  unsigned int  Before_iv,
string  Line_Cv
) 
 

bool AsciiFile::InsertFile (  string  Name_Cv,
unsigned int  BeforeLine_iv = 0
) 
 

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

bool AsciiFile::LoadFile (  string  Name_Cv  ) 
 

int AsciiFile::NumLines (   )  const
 

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

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

void AsciiFile::Replace (  unsigned int  Start_iv,
unsigned int  Cnt_iv,
string  Line_Cv
) 
 

bool AsciiFile::SaveToFile (  string  Name_Cv  ) 
 

bool AsciiFile::UpdateFile (   ) 
 


Member Data Documentation

bool AsciiFile::BackupCreated_b [protected]
 

string AsciiFile::BackupExtension_C [protected]
 

vector<string> AsciiFile::Lines_C [protected]
 

string AsciiFile::Name_C [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Apr 4 21:51:43 2005 for yast2-storage by  doxygen 1.4.1