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

liloFile Class Reference

#include <LiloFile.h>

List of all members.

Public Member Functions

 liloFile (string filename, const string &init_type)
 ~liloFile ()
bool parse ()
bool save (const char *filename=NULL)
bool reread ()
void dump (FILE *f)
liloSectiongetSectPtr (const YCPPath &path)
YCPBoolean Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg)
YCPValue Read (const YCPPath &path, const YCPValue &arg)
YCPList Dir (const YCPPath &path)
vector< liloSection * > * getVectByName (const YCPPath &path)
int getSectPos (string sectname)

Public Attributes

string type
string fname
string file_contents
bool use_string
string comment
liloOrderedOptions options
vector< liloSection * > sections


Detailed Description

lilo.conf file memory representation base class


Constructor & Destructor Documentation

liloFile::liloFile string  filename,
const string &  init_type
 

does nothing but sets the path to lilo.conf file

liloFile::~liloFile  ) 
 


Member Function Documentation

YCPList liloFile::Dir const YCPPath path  ) 
 

Dir from internal data structure

void liloFile::dump FILE *  f  ) 
 

dumps debug info to file

int liloFile::getSectPos string  sectname  ) 
 

returns position in of section given section name and section's vector

liloSection * liloFile::getSectPtr const YCPPath path  ) 
 

returns pointer to section that coresponds with the path and section name (eg. for .lilo.image, "vmlinuz" returns pointer to section from imageSections that matches the "vmlinuz" section name)

vector<liloSection*>* liloFile::getVectByName const YCPPath path  ) 
 

returns corresponding section vector from the given path

bool liloFile::parse  ) 
 

loads and parses the file. returns false on failure

YCPValue liloFile::Read const YCPPath path,
const YCPValue arg
 

reading from internal data structure

bool liloFile::reread  ) 
 

discards changes and reread the lilo.conf file again

bool liloFile::save const char *  filename = NULL  ) 
 

saves the memory structure to disk. returns false on failure

YCPBoolean liloFile::Write const YCPPath path,
const YCPValue value,
const YCPValue arg
 

writing to internal datastructure / writing structure to file


Member Data Documentation

string liloFile::comment
 

lilo.conf global comment (global comment is separated from first option comment by empty line)

string liloFile::file_contents
 

contents of lilo.conf file for restoring from string

string liloFile::fname
 

path to lilo.conf file

liloOrderedOptions liloFile::options
 

object that holds information about the options order and their value and comments

vector<liloSection*> liloFile::sections
 

sections of lilo.conf file

string liloFile::type
 

type of parsed file

bool liloFile::use_string
 

use string for parsing/file generating instead of file


The documentation for this class was generated from the following files:
Generated on Wed Nov 12 03:41:06 2008 for yast2-bootloader by  doxygen 1.3.9.1