IniFile.cc File Reference

#include <ycp/y2log.h>
#include <stdio.h>
#include <ctype.h>
#include <set>
#include <cassert>
#include "IniFile.h"
#include "IniParser.h"

Functions

string to_string (const YCPValue &v)
static YCPList as_list (const YCPValue &v, const char *context)
static YCPString as_string (const YCPValue &v, const char *context)
static YCPInteger as_integer (const YCPValue &v, const char *context)

Function Documentation

static YCPInteger as_integer ( const YCPValue v,
const char *  context 
) [static]

Return the YCPInteger or YCPNull if it is not one. Log an error.

References ycp2error.

Referenced by IniSection::setMyValue(), and IniSection::setSectionProp().

static YCPList as_list ( const YCPValue v,
const char *  context 
) [static]

Return the YCPList or YCPNull if it is not one. Log an error.

References ycp2error.

Referenced by IniSection::setMyValue(), and IniSection::setSectionProp().

static YCPString as_string ( const YCPValue v,
const char *  context 
) [static]

Return the YCPString or YCPNull if it is not one. Log an error.

References ycp2error.

Referenced by IniSection::setMyValue(), and IniSection::setSectionProp().

string to_string ( const YCPValue v  ) 

YaST2: Core system

Description: YaST2 SCR: Ini file agent.

Authors: Petr Blahos <pblahos@suse.cz> Martin Vidner <mvidner@suse.cz>

Id
IniFile.cc 34764 2006-12-05 10:02:13Z mvidner

Converts ycp value to string. Returns the string representation if the ycp value isn't a YCPString.

Parameters:
v YCPValue to convert
Returns:
converted string

Referenced by IniSection::setMyValue().


Generated on a sunny day for yast2-core by doxygen 1.6.3