libzypp  13.10.6
zypp::sat::Solvable::SplitIdent Class Reference

Helper that splits an identifier into kind and name or vice versa. More...

#include <Solvable.h>

Public Member Functions

 SplitIdent ()
 
 SplitIdent (IdString ident_r)
 
 SplitIdent (const char *ident_r)
 
 SplitIdent (const std::string &ident_r)
 
 SplitIdent (ResKind kind_r, IdString name_r)
 
 SplitIdent (ResKind kind_r, const C_Str &name_r)
 
IdString ident () const
 
ResKind kind () const
 
IdString name () const
 

Static Public Member Functions

static ResKind explicitKind (IdString ident_r)
 Return an idents explicit kind prefix, or ResKind() if none. More...
 
static ResKind explicitKind (const char *ident_r)
 
static ResKind explicitKind (const std::string &ident_r)
 

Private Attributes

IdString _ident
 
ResKind _kind
 
IdString _name
 

Detailed Description

Helper that splits an identifier into kind and name or vice versa.

Note
In case name_r is preceded by a well known kind spec, the kind_r argument is ignored, and kind is derived from name.
See Also
ident

Definition at line 264 of file Solvable.h.

Constructor & Destructor Documentation

zypp::sat::Solvable::SplitIdent::SplitIdent ( )
inline

Definition at line 267 of file Solvable.h.

zypp::sat::Solvable::SplitIdent::SplitIdent ( IdString  ident_r)

Definition at line 69 of file Solvable.cc.

zypp::sat::Solvable::SplitIdent::SplitIdent ( const char *  ident_r)

Definition at line 73 of file Solvable.cc.

zypp::sat::Solvable::SplitIdent::SplitIdent ( const std::string &  ident_r)

Definition at line 77 of file Solvable.cc.

zypp::sat::Solvable::SplitIdent::SplitIdent ( ResKind  kind_r,
IdString  name_r 
)

Definition at line 81 of file Solvable.cc.

zypp::sat::Solvable::SplitIdent::SplitIdent ( ResKind  kind_r,
const C_Str name_r 
)

Definition at line 86 of file Solvable.cc.

Member Function Documentation

IdString zypp::sat::Solvable::SplitIdent::ident ( ) const
inline

Definition at line 274 of file Solvable.h.

ResKind zypp::sat::Solvable::SplitIdent::kind ( ) const
inline

Definition at line 275 of file Solvable.h.

IdString zypp::sat::Solvable::SplitIdent::name ( ) const
inline

Definition at line 276 of file Solvable.h.

static ResKind zypp::sat::Solvable::SplitIdent::explicitKind ( IdString  ident_r)
inlinestatic

Return an idents explicit kind prefix, or ResKind() if none.

Mainly to detect whether a given ident string is explicitly prefixed by a known kind (e.g pattern:foo or package:foo).

Definition at line 282 of file Solvable.h.

ResKind zypp::sat::Solvable::SplitIdent::explicitKind ( const char *  ident_r)
static

Definition at line 91 of file Solvable.cc.

static ResKind zypp::sat::Solvable::SplitIdent::explicitKind ( const std::string &  ident_r)
inlinestatic

Definition at line 284 of file Solvable.h.

Member Data Documentation

IdString zypp::sat::Solvable::SplitIdent::_ident
private

Definition at line 287 of file Solvable.h.

ResKind zypp::sat::Solvable::SplitIdent::_kind
private

Definition at line 288 of file Solvable.h.

IdString zypp::sat::Solvable::SplitIdent::_name
private

Definition at line 289 of file Solvable.h.


The documentation for this class was generated from the following files: