libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ParseDefTraits.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_PARSER_XML_PARSEDEFTRAITS_H
13
#define ZYPP_PARSER_XML_PARSEDEFTRAITS_H
14
15
#include "
zypp/Bit.h
"
16
18
namespace
zypp
19
{
20
21
namespace
xml
22
{
23
25
//
26
// CLASS NAME : ParseDefTraits
27
//
29
struct
ParseDefTraits
30
{
31
typedef
unsigned
char
ModeBitsType
;
32
typedef
bit::BitField<ModeBitsType>
ModeBits
;
33
typedef
bit::Range<ModeBitsType, 0, 1>
TypeBits
;
34
typedef
bit::Range<ModeBitsType, TypeBits::end, 1>
VisitBits
;
35
36
enum
TypeValue
37
{
38
BIT_OPTIONAL
=
bit::RangeValue<TypeBits,0>::value
,
39
BIT_MANDTAORY
=
bit::RangeValue<TypeBits,1>::value
40
};
41
42
enum
VisitValue
43
{
44
BIT_ONCE
=
bit::RangeValue<VisitBits,0>::value
,
45
BIT_MULTIPLE
=
bit::RangeValue<VisitBits,1>::value
46
};
47
};
49
51
}
// namespace xml
54
}
// namespace zypp
56
#endif // ZYPP_PARSER_XML_PARSEDEFTRAITS_H
zypp
parser
xml
ParseDefTraits.h
Generated by
1.8.1