yast2-core
Macros | Functions
ModulesAgent.cc File Reference
#include "Y2Logger.h"
#include "ModulesAgent.h"
#include "ModulesConf.h"

Macros

#define MAGIC_DIRECTIVE   "extra"
 
#define PC(n)   (path->component_str(n))
 
#define VAL2STR(v)   ((v)->asString()->value())
 
#define VAL2CSTR(v)   ((v)->asString()->value_cstr())
 

Functions

template<class T >
YCPList map2list (const T &m)
 
template<class T >
YCPMap map2ycpmap (const T &m)
 
ModuleEntry::EntryArg ycpmap2map (const YCPMap &m)
 

Macro Definition Documentation

#define MAGIC_DIRECTIVE   "extra"

Referenced by ModulesAgent::Dir().

#define PC (   n)    (path->component_str(n))
#define VAL2CSTR (   v)    ((v)->asString()->value_cstr())
#define VAL2STR (   v)    ((v)->asString()->value())

Function Documentation

template<class T >
YCPList map2list ( const T &  m)

Simple template function for converting c++ map into YCP list

References YCPList::add(), and YCPList::begin().

Referenced by ModulesAgent::Dir(), and ModulesAgent::Read().

template<class T >
YCPMap map2ycpmap ( const T &  m)

Simple template function for converting c++ map into YCP map

References YCPMap::add(), and YCPMap::begin().

Referenced by ModulesAgent::Read().

ModuleEntry::EntryArg ycpmap2map ( const YCPMap m)

Simple function for converting YCP map into c++ map

References YCPMap::begin(), YCPMap::end(), VAL2STR, and y2error.

Referenced by ModulesAgent::Write().


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