yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
liby2
src
include
y2
Y2Function.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: Y2Function.h
14
a generic interface for calling a function from a namespace
15
16
Author: Stanislav Visnovsky <visnov@suse.cz>
17
Maintainer: Stanislav Visnovsky <visnov@suse.cz>
18
19
/-*/
20
21
#ifndef Y2Function_h
22
#define Y2Function_h
23
24
#include <string>
25
using
std::string;
26
27
#include "
ycp/YCPValue.h
"
28
#include "
ycp/Type.h
"
29
71
class
Y2Function
{
72
73
public
:
78
virtual
~Y2Function
() {};
79
84
virtual
bool
attachParameter
(
const
YCPValue
& arg,
const
int
position) = 0;
85
92
virtual
constTypePtr
wantedParameterType
()
const
= 0;
93
98
virtual
bool
appendParameter
(
const
YCPValue
& arg) = 0;
99
104
virtual
bool
finishParameters
() = 0;
105
109
virtual
YCPValue
evaluateCall
() = 0;
110
115
virtual
bool
reset
() = 0;
116
117
virtual
string
name
()
const
= 0;
118
};
119
120
#endif // Y2Function_h
Generated on a sunny day for yast2-core by
1.8.2