class liloFile

lilo. More...

Definition#include <LiloFile.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

lilo.conf file memory representation base class

string fname

fname

string comment

comment

liloOrderedOptions options

options

vector<liloSection*> sections

sections

 liloFile (string filename)

liloFile

does nothing but sets the path to lilo.conf file

 ~liloFile ()

~liloFile

bool  parse ()

parse

loads and parses the file. returns false on failure

bool  save (const char* filename=NULL)

save

saves the memory structure to disk. returns false on failure

bool  reread ()

reread

discards changes and reread the lilo.conf file again

void  dump (FILE* f)

dump

dumps debug info to file

liloSection*  getSectPtr (const YCPPath& path)

getSectPtr

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)

YCPValue  Write (const YCPPath &path, const YCPValue& value, const YCPValue& arg)

Write

writing to internal datastructure / writing structure to file

YCPValue  Read (const YCPPath &path, const YCPValue& arg)

Read

reading from internal data structure

YCPValue  Dir (const YCPPath& path)

Dir

Dir from internal data structure

vector<liloSection*>*  getVectByName (const YCPPath& path)

getVectByName

returns corresponding section vector from the given path

int  getSectPos (string sectname)

getSectPos

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


Generated by: root on D63 on Tue Sep 24 20:20:08 2002, using kdoc 2.0a54.