yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
liby2
src
include
y2
Y2StdioComponent.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| |
3
| __ __ ____ _____ ____ |
4
| \ \ / /_ _/ ___|_ _|___ \ |
5
| \ V / _` \___ \ | | __) | |
6
| | | (_| |___) || | / __/ |
7
| |_|\__,_|____/ |_| |_____| |
8
| |
9
| core system |
10
| (C) SuSE GmbH |
11
\----------------------------------------------------------------------/
12
13
File: Y2StdioComponent.h
14
15
Author: Mathias Kettner <kettner@suse.de>
16
Maintainer: Klaus Kaempf <kkaempf@suse.de>
17
18
/-*/
19
// -*- c++ -*-
20
21
/*
22
* Component that communicates via stdin/out/err
23
*
24
* Author: Mathias Kettner <kettner@suse.de>
25
*/
26
27
#ifndef Y2StdioComponent_h
28
#define Y2StdioComponent_h
29
30
#include "
Y2Component.h
"
31
#include <
ycp/Parser.h
>
32
36
class
Y2StdioComponent
:
public
Y2Component
37
{
41
const
bool
is_server
;
42
47
bool
to_stderr
;
48
54
bool
batchmode
;
55
59
Parser
parser
;
60
61
public
:
62
67
Y2StdioComponent
(
bool
is_server
,
bool
to_stderr
,
bool
in_batchmode =
false
);
68
72
~Y2StdioComponent
();
73
78
string
name
()
const
;
79
85
YCPValue
evaluate
(
const
YCPValue
& command);
86
91
void
result
(
const
YCPValue
&
result
);
92
99
void
setServerOptions
(
int
argc,
char
**argv);
100
111
YCPValue
doActualWork
(
const
YCPList
& arglist,
Y2Component
*user_interface);
112
113
private
:
117
void
send
(
const
YCPValue
& v)
const
;
118
123
YCPValue
receive
();
124
125
};
126
127
128
#endif // Y2StdioComponent_h
Generated on a sunny day for yast2-core by
1.8.2