#include <string>
#include <ycpTools.h>
#include <PkgModuleError.h>
#include <Y2PM.h>
#include <ycp/YCPBoolean.h>
#include <ycp/YCPValue.h>
#include <ycp/YCPList.h>
#include <ycp/YCPMap.h>
#include <ycp/YCPSymbol.h>
#include <ycp/YCPString.h>
#include <ycp/YCPInteger.h>
#include <ycp/YCPVoid.h>
#include <ycp/YBlock.h>
#include <y2/Y2Namespace.h>
#include <y2/Y2NamespaceCPP.h>
#include <y2pm/PMSelectablePtr.h>
#include <y2pm/InstSrcDescrPtr.h>
#include <y2pm/PMYouServers.h>
#include <y2pm/PMYouPatchPtr.h>
Go to the source code of this file.
Classes | |
class | PkgModuleFunctions |
Defines | |
#define | Y2REFFUNCTIONCALL1(namespace, name, signature, param1type, impl_class, impl_func) |
|
Value: class namespace##name##Function1 : public Y2CPPFunctionCall <impl_class> { \ public: \ namespace##name##Function1(impl_class* instance) : \ Y2CPPFunctionCall <impl_class> (signature, instance) \ {} \ virtual void registerParameters (YBlockPtr decl) \ { \ TypePtr t = Type::Const##param1type->clone (); \ t->asReference(); \ newParameter (decl, 1, t ); \ } \ virtual YCPValue evaluate (bool cse=false) \ { \ if (cse) return YCPNull (); \ return m_instance->impl_func (m_param1->value ()->asReference ()); \ } \ } |