libzypp: zypp/ng/sat/solvableident.h Source File

libzypp 17.38.11

solvableident.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------/
9*
10* This file contains private API, this might break at any time between releases.
11* You have been warned!
12*
13*/
14#ifndef ZYPPNG_SAT_SOLVABLEIDENT_H_INCLUDED
15#define ZYPPNG_SAT_SOLVABLEIDENT_H_INCLUDED
16
17#include <zypp/ng/idstring.h>
18#include <zypp/ng/reskind.h>
19
20namespace zyppng::sat {
21
30 class SplitIdent
31 {
32 public:
33 SplitIdent() = default;
34 SplitIdent( IdString ident_r );
35 SplitIdent( const char * ident_r );
36 SplitIdent( const std::string & ident_r );
37 SplitIdent( ResKind kind_r, IdString name_r );
38 SplitIdent( ResKind kind_r, const zypp::C_Str & name_r );
39
40 IdString ident() const { return _ident; }
41 ResKind kind() const { return _kind; }
42 IdString name() const { return _name; }
43
44 private:
45 IdString _ident;
46 ResKind _kind;
47 IdString _name;
48 };
49
50} // namespace zyppng::sat
51
52#endif
zypp::C_Str
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string.
Definition String.h:92
zypp::IdString
Access to the sat-pools string space.
Definition IdString.h:55
zypp::ResKind
Resolvable kinds.
Definition ResKind.h:33
zyppng::sat::SplitIdent::kind
ResKind kind() const
Definition solvableident.h:41
zyppng::sat::SplitIdent::ident
IdString ident() const
Definition solvableident.h:40
zyppng::sat::SplitIdent::_name
IdString _name
Definition solvableident.h:47
zyppng::sat::SplitIdent::_ident
IdString _ident
Definition solvableident.h:45
zyppng::sat::SplitIdent::SplitIdent
SplitIdent()=default
zyppng::sat::SplitIdent::name
IdString name() const
Definition solvableident.h:42
zyppng::sat::SplitIdent::_kind
ResKind _kind
Definition solvableident.h:46
zyppng::sat
This file contains private API, this might break at any time between releases.
Definition capabilities.h:22
reskind.h
idstring.h