libzypp  17.38.7
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 
20 namespace 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:
48  };
49 
50 } // namespace zyppng::sat
51 
52 #endif
Access to the sat-pools string space.
Definition: IdString.h:51
IdString name() const
Definition: solvableident.h:42
IdString ident() const
Definition: solvableident.h:40
ResKind kind() const
Definition: solvableident.h:41
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string...
Definition: String.h:91
This file contains private API, this might break at any time between releases.
Definition: capabilities.h:22
Helper that splits an identifier into kind and name or vice versa.
Definition: solvableident.h:30
Resolvable kinds.
Definition: ResKind.h:32