Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

IniParser.cc File Reference

#include <y2util/PathInfo.h>
#include <ycp/y2log.h>
#include <vector>
#include <set>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <glob.h>
#include <cassert>
#include "IniParser.h"
#include "IniFile.h"

Defines

#define COMPARE_OPTION(X)   if (v->asList()->value(i)->asString()->value() == #X) X = true; else

Functions

 IMPL_BASE_POINTER (Regex_t)
void printPath (const vector< string > &p, const char *c="")
void y2errPath (const vector< string > &p, const char *c="")
bool onlySpaces (const char *str)
bool isYCPStringPair (const YCPValue &v)
int getBeginEndType (const YCPMap &m)
int getParamsType (const YCPMap &m)
void StripLine (string &l, regmatch_t &r)

Define Documentation

#define COMPARE_OPTION  )     if (v->asList()->value(i)->asString()->value() == #X) X = true; else
 


Function Documentation

int getBeginEndType const YCPMap m  ) 
 

Return 0 if there is: $[ "begin" : [ "...", "...", ], "end" : [ "...", "...", ],] 1 if there is: $[ "begin" : [ "...", "...", ],] -1 if format is totaly broken

int getParamsType const YCPMap m  ) 
 

Returns 0 if there is: $[ "match" : [ "...", "...", ], "multiline" : [ "...", "...", ], ] 1 if there is: $[ "match" : [ "...", "...", ],] -1 otherwise

IMPL_BASE_POINTER Regex_t   ) 
 

YaST2: Core system

Description: YaST2 SCR: Ini file agent.

Authors: Petr Blahos <pblahos@suse.cz>

Id
IniParser.cc,v 1.7 2004/03/11 12:38:59 msvec Exp

bool isYCPStringPair const YCPValue v  ) 
 

bool onlySpaces const char *  str  ) 
 

void printPath const vector< string > &  p,
const char *  c = ""
 

Debugging.

void StripLine string &  l,
regmatch_t &  r
 

void y2errPath const vector< string > &  p,
const char *  c = ""
 


Generated on Fri Nov 9 18:15:23 2007 for yast2-core by doxygen 1.3.6