yast2-core
Y2SystemFunction.h
Go to the documentation of this file.
1 /*------------------------------------------------------------*- c++ -*-\
2 | |
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
8 | |
9 | core system |
10 | (C) SuSE GmbH |
11 \-----------------------------------------------------------------------/
12 
13  File: Y2SystemNamespace.h
14  a wrapper interface for accessing a LiMaL namespace
15  (configurable via SCROpen/SCRClose)
16 
17  Author: Stanislav Visnovsky <visnov@suse.cz>
18  Maintainer: Stanislav Visnovsky <visnov@suse.cz>
19 
20 /-*/
21 
22 #ifndef Y2SystemFunction_h
23 #define Y2SystemFunction_h
24 
25 #include <y2/Y2Namespace.h>
26 #include <y2/Y2Function.h>
27 
28 class Y2Component;
29 
30 class Y2SystemFunction : public Y2Function {
31 
34 
36 
37  constFunctionTypePtr m_type;
38 
40 
41 public:
42  Y2SystemFunction (Y2Function* local_call, constFunctionTypePtr type, Y2SystemNamespace* system_namespace);
43 
44  virtual ~Y2SystemFunction ();
45 
50  virtual bool attachParameter (const YCPValue& arg, const int position);
51 
58  virtual constTypePtr wantedParameterType () const;
59 
64  virtual bool appendParameter (const YCPValue& arg);
65 
70  virtual bool finishParameters ();
71 
75  virtual YCPValue evaluateCall ();
76 
81  virtual bool reset ();
82 
83  void useRemote (Y2Function* remote_call);
84 
85  void useLocal ();
86 
87  string name () const;
88 
89  constFunctionTypePtr type () const;
90 };
91 
92 #endif // Y2SystemFunction_h
void useRemote(Y2Function *remote_call)
Definition: Y2SystemFunction.cc:127
virtual bool appendParameter(const YCPValue &arg)
Definition: Y2SystemFunction.cc:82
virtual bool attachParameter(const YCPValue &arg, const int position)
Definition: Y2SystemFunction.cc:60
void useLocal()
Definition: Y2SystemFunction.cc:139
virtual ~Y2SystemFunction()
Definition: Y2SystemFunction.cc:49
virtual bool finishParameters()
Definition: Y2SystemFunction.cc:96
Y2SystemFunction(Y2Function *local_call, constFunctionTypePtr type, Y2SystemNamespace *system_namespace)
Definition: Y2SystemFunction.cc:37
Y2SystemNamespace * m_namespace
Definition: Y2SystemFunction.h:39
constFunctionTypePtr type() const
Definition: Y2SystemFunction.cc:158
Y2Function * m_remote
Definition: Y2SystemFunction.h:33
virtual bool reset()
Definition: Y2SystemFunction.cc:118
bool m_use_remote
Definition: Y2SystemFunction.h:35
Communication handle to a YaST2 component.
Definition: Y2Component.h:262
Y2Function * m_local
Definition: Y2SystemFunction.h:32
constFunctionTypePtr m_type
Definition: Y2SystemFunction.h:37
Definition: Y2SystemNamespace.h:35
virtual YCPValue evaluateCall()
Definition: Y2SystemFunction.cc:105
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
Definition: Y2SystemFunction.h:30
virtual constTypePtr wantedParameterType() const
Definition: Y2SystemFunction.cc:73
Definition: Y2Function.h:71
string name() const
Definition: Y2SystemFunction.cc:151

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