#include "Y2Logger.h"
#include <ycp/y2log.h>
#include <Y2.h>
#include <scr/SCRAgent.h>
#include <string>
#include <list>
#include <map>
Defines | |
#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) |
#define MAGIC_DIRECTIVE "extra" |
Referenced by ModulesAgent::Dir().
#define PC | ( | n | ) | (path->component_str(n)) |
Referenced by ModulesAgent::Dir(), ModulesAgent::Read(), and ModulesAgent::Write().
#define VAL2CSTR | ( | v | ) | ((v)->asString()->value_cstr()) |
#define VAL2STR | ( | v | ) | ((v)->asString()->value()) |
Referenced by ModulesAgent::Read(), ModulesAgent::Write(), and ycpmap2map().
YCPList map2list | ( | const T & | m | ) | [inline] |
Simple template function for converting c++ map into YCP list
References YCPList::add(), and YCPList::begin().
Referenced by ModulesAgent::Dir(), and ModulesAgent::Read().
YCPMap map2ycpmap | ( | const T & | m | ) | [inline] |
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().