Static Public Member Functions | |
static void | assertResKind (const Resolvable::Kind &refers_r) |
Assert a valid Resolvable::Kind. | |
static bool | isEditionSpec (Rel op_r, const Edition &edition_r) |
Check whether op_r and edition_r make a valid edition spec. | |
static bool | isFileSpec (const std::string &name_r) |
Test for a FileCap. | |
static bool | isSplitSpec (const std::string &name_r) |
Test for a SplitCap. | |
static bool | isHalSpec (const std::string &name_r) |
Test for a HalCap. | |
static bool | isModaliasSpec (const std::string &name_r) |
Test for a ModaliasCap. | |
static CapabilityImpl::Ptr | buildFile (const Resolvable::Kind &refers_r, const std::string &name_r) |
static CapabilityImpl::Ptr | buildNamed (const Resolvable::Kind &refers_r, const std::string &name_r) |
Try to build a non versioned cap from name_r . | |
static CapabilityImpl::Ptr | buildVersioned (const Resolvable::Kind &refers_r, const std::string &name_r, Rel op_r, const Edition &edition_r) |
Try to build a versioned cap from name_r . | |
static CapabilityImpl::Ptr | buildHal (const Resolvable::Kind &refers_r, const std::string &name_r, Rel op_r=Rel::ANY, const std::string &value_r=std::string()) |
Try to build a hal cap from name_r . | |
static CapabilityImpl::Ptr | buildModalias (const Resolvable::Kind &refers_r, const std::string &name_r, Rel op_r=Rel::ANY, const std::string &value_r=std::string()) |
Try to build a modalias cap from name_r . |
Provides various functions doing checks and log and throw
. CapFactory::parse usually combines them, and if nothing fails, finaly builds the Capability.
file:
/absolute/path split:
name:/absolute/path name:
name vers:
name op edition hal:
hal(string) modalias:
modalias(string)
Definition at line 126 of file CapFactory.cc.
|
Assert a valid Resolvable::Kind.
Definition at line 129 of file CapFactory.cc. References ZYPP_THROW. |
|
Check whether op_r and edition_r make a valid edition spec. Rel::NONE is not usefull thus forbidden. Rel::ANY can be ignored, so no VersionedCap is needed for this. Everything else requires a VersionedCap.
Definition at line 144 of file CapFactory.cc. References zypp::Rel::ANY_e, zypp::Rel::EQ_e, zypp::Rel::GE_e, zypp::Rel::GT_e, zypp::Rel::inSwitch(), zypp::Rel::LE_e, zypp::Rel::LT_e, zypp::Rel::NE_e, zypp::Edition::noedition, zypp::Rel::NONE_e, WAR, and ZYPP_THROW. |
|
Test for a FileCap.
name_r starts with Definition at line 174 of file CapFactory.cc. |
|
Test for a SplitCap.
name_r constains Definition at line 180 of file CapFactory.cc. |
|
Test for a HalCap. name_r starts with "hal(". Definition at line 186 of file CapFactory.cc. |
|
Test for a ModaliasCap. name_r starts with "modalias(". Definition at line 192 of file CapFactory.cc. |
|
Definition at line 197 of file CapFactory.cc. References zypp::capability::NullCap::instance(). |
|
Try to build a non versioned cap from name_r . The CapabilityImpl is built here and inserted into _uset. The final Capability must be created by CapFactory, as it is a friend of Capability. Here we can't access the ctor. Definition at line 219 of file CapFactory.cc. References zypp::capability::NullCap::instance(). |
|
Try to build a versioned cap from name_r . The CapabilityImpl is built here and inserted into _uset. The final Capability must be created by CapFactory, as it is a friend of Capability. Here we can't access the ctor.
Definition at line 258 of file CapFactory.cc. References usetInsert(). |
|
Try to build a hal cap from name_r . The CapabilityImpl is built here and inserted into _uset. The final Capability must be created by CapFactory, as it is a friend of Capability. Here we can't access the ctor.
Definition at line 285 of file CapFactory.cc. References zypp::Rel::ANY, zypp::solver::detail::str, usetInsert(), and ZYPP_THROW. Referenced by zypp::CapFactory::halEvalCap(). |
|
Try to build a modalias cap from name_r . The CapabilityImpl is built here and inserted into _uset. The final Capability must be created by CapFactory, as it is a friend of Capability. Here we can't access the ctor.
Definition at line 319 of file CapFactory.cc. References zypp::Rel::ANY, zypp::solver::detail::str, usetInsert(), and ZYPP_THROW. Referenced by zypp::CapFactory::modaliasEvalCap(). |