#include <LiloFile.h>
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) |
liloSection * | getSectPtr (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 |
|
does nothing but sets the path to lilo.conf file |
|
|
|
Dir from internal data structure |
|
dumps debug info to file |
|
returns position in of section given section name and section's vector |
|
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) |
|
returns corresponding section vector from the given path |
|
loads and parses the file. returns false on failure |
|
reading from internal data structure |
|
discards changes and reread the lilo.conf file again |
|
saves the memory structure to disk. returns false on failure |
|
writing to internal datastructure / writing structure to file |
|
lilo.conf global comment (global comment is separated from first option comment by empty line) |
|
contents of lilo.conf file for restoring from string |
|
path to lilo.conf file |
|
object that holds information about the options order and their value and comments |
|
sections of lilo.conf file |
|
type of parsed file |
|
use string for parsing/file generating instead of file |