yast2-core
Functions
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)
 
static YCPBoolean as_boolean (const YCPValue &v, const char *context)
 

Function Documentation

static YCPBoolean as_boolean ( const YCPValue v,
const char *  context 
)
static

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

References ycp2error.

Referenced by IniSection::setSectionProp().

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 pblah.nosp@m.os@s.nosp@m.use.c.nosp@m.z Martin Vidner mvidn.nosp@m.er@s.nosp@m.use.c.nosp@m.z

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

Parameters
vYCPValue to convert
Returns
converted string

Referenced by IniSection::setMyValue().


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