yast2-core
Y2StdioFunction.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: Y2StdioFunction.h
14  a remote function call. Its main usage is from Y2SystemFunction which use it
15  for remote calls.
16 
17  Author: Stanislav Visnovsky <visnov@suse.cz>
18  Maintainer: Stanislav Visnovsky <visnov@suse.cz>
19 
20 /-*/
21 
22 #ifndef Y2StdioFunction_h
23 #define Y2StdioFunction_h
24 
25 #include <y2/Y2Namespace.h>
26 #include <y2/Y2Function.h>
27 
28 class Y2ProgramComponent;
29 
30 class Y2StdioFunction : public Y2Function {
31 
32  string m_namespace;
33  string m_name;
34  constFunctionTypePtr m_type;
35  vector<YCPValue> m_parameters;
36 
38 
39 public:
40  Y2StdioFunction (string ns, string name
41  , constFunctionTypePtr type, Y2ProgramComponent* sender);
42 
43  virtual ~Y2StdioFunction ();
44 
49  virtual bool attachParameter (const YCPValue& arg, const int position);
50 
57  virtual constTypePtr wantedParameterType () const;
58 
63  virtual bool appendParameter (const YCPValue& arg);
64 
69  virtual bool finishParameters ();
70 
74  virtual YCPValue evaluateCall ();
75 
80  virtual bool reset ();
81 
82  virtual string name () const;
83 };
84 
85 #endif // Y2StdioFunction_h
vector< YCPValue > m_parameters
Definition: Y2StdioFunction.h:35
virtual bool reset()
Definition: Y2StdioFunction.cc:136
virtual YCPValue evaluateCall()
Definition: Y2StdioFunction.cc:98
Definition: Y2ProgramComponent.h:31
Y2ProgramComponent * m_sender
Definition: Y2StdioFunction.h:37
Y2StdioFunction(string ns, string name, constFunctionTypePtr type, Y2ProgramComponent *sender)
Definition: Y2StdioFunction.cc:39
constFunctionTypePtr m_type
Definition: Y2StdioFunction.h:34
virtual bool appendParameter(const YCPValue &arg)
Definition: Y2StdioFunction.cc:76
Definition: Y2StdioFunction.h:30
string m_namespace
Definition: Y2StdioFunction.h:32
virtual ~Y2StdioFunction()
Definition: Y2StdioFunction.cc:54
string m_name
Definition: Y2StdioFunction.h:33
virtual bool attachParameter(const YCPValue &arg, const int position)
Definition: Y2StdioFunction.cc:59
virtual string name() const
Definition: Y2StdioFunction.cc:145
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
virtual bool finishParameters()
Definition: Y2StdioFunction.cc:90
virtual constTypePtr wantedParameterType() const
Definition: Y2StdioFunction.cc:68
Definition: Y2Function.h:71

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