libzypp
17.32.5
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
namespace
xml
22
{
23
25
//
26
// CLASS NAME : ParseDefTraits
27
//
29
struct
ParseDefTraits
30
{
31
using
ModeBitsType
=
unsigned
char;
32
using
ModeBits
=
bit::BitField<ModeBitsType>
;
33
using
TypeBits
=
bit::Range<ModeBitsType, 0, 1>
;
34
using
VisitBits
=
bit::Range<ModeBitsType, TypeBits::end, 1>
;
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::xml::ParseDefTraits::BIT_MULTIPLE
Definition:
ParseDefTraits.h:45
zypp::xml::ParseDefTraits::TypeValue
TypeValue
Definition:
ParseDefTraits.h:36
Bit.h
zypp::xml::ParseDefTraits
Definition:
ParseDefTraits.h:29
xml
zypp::xml::ParseDefTraits::ModeBitsType
unsigned char ModeBitsType
Definition:
ParseDefTraits.h:31
zypp::xml::ParseDefTraits::BIT_ONCE
Definition:
ParseDefTraits.h:44
zypp::xml::ParseDefTraits::VisitValue
VisitValue
Definition:
ParseDefTraits.h:42
zypp::bit::BitField
An integral type used as BitField.
Definition:
Bit.h:159
zypp::xml::ParseDefTraits::BIT_MANDTAORY
Definition:
ParseDefTraits.h:39
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
Application.cc:19
zypp::bit::Range
Range of bits starting at bit _begin with length _size.
Definition:
Bit.h:81
zypp::xml::ParseDefTraits::BIT_OPTIONAL
Definition:
ParseDefTraits.h:38
zypp::bit::RangeValue
A value with in a Range.
Definition:
Bit.h:110
zypp
parser
xml
ParseDefTraits.h
Generated by
1.8.14