libzypp
17.31.23
Status.cc
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#include <iostream>
13
14
#include <zypp/base/Logger.h>
15
16
#include <
zypp/ui/Status.h
>
17
19
namespace
zypp
20
{
22
namespace
ui
23
{
24
25
/******************************************************************
26
**
27
** FUNCTION NAME : asString
28
** FUNCTION TYPE : std::string
29
*/
30
std::string asString(
const
Status
& obj )
31
{
32
switch
( obj ) {
33
#define ENUM_OUT(V) case V: return #V; break
34
35
ENUM_OUT
(
S_Protected
);
36
ENUM_OUT
(
S_Taboo
);
37
ENUM_OUT
(
S_Del
);
38
ENUM_OUT
(
S_Install
);
39
ENUM_OUT
(
S_Update
);
40
ENUM_OUT
(
S_AutoDel
);
41
ENUM_OUT
(
S_AutoInstall
);
42
ENUM_OUT
(
S_AutoUpdate
);
43
ENUM_OUT
(
S_NoInst
);
44
ENUM_OUT
(
S_KeepInstalled
);
45
46
#undef ENUM_OUT
47
}
48
49
INT
<<
"Unknown ui::Status "
<< (unsigned)obj << std::endl;
50
return
"Status(UNKNOWN)"
;
51
}
52
54
}
// namespace ui
57
}
// namespace zypp
ENUM_OUT
#define ENUM_OUT(V)
Status.h
zypp::ui::Status
Status
UI status Status values calculated by Selectable.
Definition:
Status.h:35
zypp::ui::S_AutoUpdate
@ S_AutoUpdate
Definition:
Status.h:44
zypp::ui::S_Taboo
@ S_Taboo
Definition:
Status.h:37
zypp::ui::S_AutoInstall
@ S_AutoInstall
Definition:
Status.h:45
zypp::ui::S_Install
@ S_Install
Definition:
Status.h:41
zypp::ui::S_AutoDel
@ S_AutoDel
Definition:
Status.h:43
zypp::ui::S_NoInst
@ S_NoInst
Definition:
Status.h:48
zypp::ui::S_Protected
@ S_Protected
Definition:
Status.h:36
zypp::ui::S_KeepInstalled
@ S_KeepInstalled
Definition:
Status.h:47
zypp::ui::S_Del
@ S_Del
Definition:
Status.h:39
zypp::ui::S_Update
@ S_Update
Definition:
Status.h:40
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
CodePitfalls.doc:2
INT
#define INT
Definition:
Logger.h:100
zypp
ui
Status.cc
Generated by
1.9.6