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.

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

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

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

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

string to_string ( const YCPValue v  ) 

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


Generated on Tue Nov 6 01:20:21 2007 for yast2-core by  doxygen 1.5.0