///////////////////////////////////////////////////////////////////
const Capability Capability::Null( STRID_NULL );
+ const Capability Capability::Empty( STRID_EMPTY );
/////////////////////////////////////////////////////////////////
static const Capability Empty;
public:
+#ifndef SWIG // Swig treats it as syntax error
/** Evaluate in a boolean context <tt>( ! empty() )</tt>. */
using base::SafeBool<Capability>::operator bool_type;
-
+#endif
/** Whether the \ref Capability is empty.
* This is true for \ref Null and \ref Empty.
*/
/** Match two Capabilities */
static CapMatch _doMatch( sat::detail::IdType lhs, sat::detail::IdType rhs );
private:
+#ifndef SWIG // Swig treats it as syntax error
friend base::SafeBool<Capability>::operator bool_type() const;
+#endif
bool boolTest() const { return ! empty(); }
private:
sat::detail::IdType _id;
} // namespace zypp
///////////////////////////////////////////////////////////////////
-ZYPP_DEFINE_ID_HASHABLE( ::zypp::Capability )
+ZYPP_DEFINE_ID_HASHABLE( ::zypp::Capability );
#endif // ZYPP_CAPABILITY_H
} // namespace zypp
///////////////////////////////////////////////////////////////////
-ZYPP_DEFINE_ID_HASHABLE( ::zypp::IdString )
+ZYPP_DEFINE_ID_HASHABLE( ::zypp::IdString );
#endif // ZYPP_SAT_IDSTR_H
/**
* Adds new service
*
- * \param name service info
+ * \param name service info
*
* \throws FIXME RepoAlreadyExistException and as reponame is service name
*/
void refreshServices();
/**
- * Refresh specific service.
+ * Refresh specific service.
* \throws Exception if cannot download file
* \param name service structure
*/
/**
* modify service, rewrite Service to filesystem.
* If change Service name, then can escalate to rewrite all repositories which it contain.
- *
+ *
* \param oldName oldName of service
* \param service Structure containing new datas
*
*/
void modifyService(const std::string& oldName, const Service& service);
+ private:
/**
* Functor thats filter RepoInfo by service which belongs to.
*/
bool match( const RepoInfo& info ) { return info.service()==name; }
};
+ public:
/**
* fill to output iterator repositories in service name. This output iterator can perform
* any action on with Repo or service Container, because it is sets and it isn't dynamic recreate.
* ChangePriority changer(10);
* getRepositoriesInService(name,getRepositoriesInService( name, boost::make_function_output_iterator(bind(&ChangePriority::doIt, &changer, _1))));
* \endcode
- */
+ */
template<typename OutputIterator>
void getRepositoriesInService( const std::string& name, OutputIterator out ) const
{
MatchServiceName filter(name);
- std::copy(boost::make_filter_iterator(bind(&MatchServiceName::match,
+ std::copy(boost::make_filter_iterator(bind(&MatchServiceName::match,
filter, _1),repoBegin(),repoEnd()), boost::make_filter_iterator(
bind(&MatchServiceName::match, filter, _1),repoEnd(),repoEnd()),
out );
{ /////////////////////////////////////////////////////////////////
const ResStatus ResStatus::toBeInstalled (UNINSTALLED, UNDETERMINED, TRANSACT);
- const ResStatus ResStatus::toBeInstalledSoft (UNINSTALLED, UNDETERMINED, TRANSACT, SOFT_INSTALL);
const ResStatus ResStatus::toBeUninstalled (INSTALLED, UNDETERMINED, TRANSACT);
- const ResStatus ResStatus::toBeUninstalledSoft (INSTALLED, UNDETERMINED, TRANSACT, EXPLICIT_INSTALL, SOFT_REMOVE);
- const ResStatus ResStatus::toBeUninstalledDueToObsolete(INSTALLED, UNDETERMINED, TRANSACT, EXPLICIT_INSTALL, DUE_TO_OBSOLETE);
const ResStatus ResStatus::toBeUninstalledDueToUpgrade (INSTALLED, UNDETERMINED, TRANSACT, EXPLICIT_INSTALL, DUE_TO_UPGRADE);
- const ResStatus ResStatus::installed (INSTALLED);
- const ResStatus ResStatus::uninstalled (UNINSTALLED);
///////////////////////////////////////////////////////////////////
//
{
fieldValueAssign<TransactField>( KEEP_STATE );
}
- fieldValueAssign<TransactDetailField>( NO_DETAIL ); // Details has to be set again
+ fieldValueAssign<TransactDetailField>( NO_DETAIL ); // Details has to be set again
fieldValueAssign<TransactByField>( causer_r );
return true;
}
/** \name Builtin ResStatus constants. */
//@{
static const ResStatus toBeInstalled;
- static const ResStatus toBeInstalledSoft;
static const ResStatus toBeUninstalled;
- static const ResStatus toBeUninstalledSoft;
- static const ResStatus toBeUninstalledDueToUnlink;
- static const ResStatus toBeUninstalledDueToObsolete;
static const ResStatus toBeUninstalledDueToUpgrade;
- static const ResStatus installed; // installed, status after successful target 'install' commit
- static const ResStatus uninstalled; // uninstalled, status after successful target 'uninstall' commit
- static const ResStatus satisfied; // uninstalled, satisfied
- static const ResStatus complete; // installed, satisfied
- static const ResStatus unneeded; // uninstalled, unneeded
- static const ResStatus needed; // uninstalled, incomplete
- static const ResStatus incomplete; // installed, incomplete
- static const ResStatus recommended; // recommended
- static const ResStatus suggested; // suggested
//@}
private:
typedef TraitsType::constPtrType constPtr;
public:
+#ifndef SWIG // Swig treats it as syntax error
/** Whether this represents a valid- or no-solvable. */
using sat::Solvable::operator bool_type;
+#endif
/** Whether this represents an installed solvable. */
using sat::Solvable::isSystem;
{ return restrictToMedia( 0 ); }
/** Set dry run (default: false) */
- ZYppCommitPolicy & dryRun( bool yesNo_r = true )
+ ZYppCommitPolicy & dryRun( bool yesNo_r )
{ _dryRun = yesNo_r; return *this; }
/** Use rpm option --nosignature (default: false) */
- ZYppCommitPolicy & rpmNoSignature( bool yesNo_r = true )
+ ZYppCommitPolicy & rpmNoSignature( bool yesNo_r )
{ _rpmNoSignature = yesNo_r; return *this; }
/** Kepp pool in sync with the Target databases after commit (default: true) */
- ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r = true )
+ ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r )
{ _syncPoolAfterCommit = yesNo_r; return *this; }
private:
/** Represents no \ref Solvable. */
static const Solvable noSolvable;
+#ifndef SWIG // Swig treats it as syntax error
/** Evaluate \ref Solvable in a boolean context (\c != \c noSolvable). */
using base::SafeBool<Solvable>::operator bool_type;
+#endif
/** Return whether this \ref Solvable belongs to the system repo.
* \note This includes the otherwise hidden systemSolvable.
/** Expert backdoor. */
IdType id() const { return _id; }
private:
+#ifndef SWIG // Swig treats it as syntax error
friend base::SafeBool<Solvable>::operator bool_type() const;
+#endif
bool boolTest() const { return get(); }
private:
IdType _id;
} // namespace zypp
///////////////////////////////////////////////////////////////////
-ZYPP_DEFINE_ID_HASHABLE( ::zypp::sat::Solvable )
+ZYPP_DEFINE_ID_HASHABLE( ::zypp::sat::Solvable );
#endif // ZYPP_SAT_SOLVABLE_H