|
|
Each enum corresponds to a BitField range.
- Note
- Take care that enumerator values actually fit into the corresponding field. It's not yet checked by the compiler.
|
| enum | StateValue { UNINSTALLED = bit::RangeValue<StateField,0>::value,
INSTALLED = bit::RangeValue<StateField,1>::value
} |
| |
| enum | ValidateValue { UNDETERMINED = bit::RangeValue<ValidateField,0>::value,
BROKEN = bit::RangeValue<ValidateField,1>::value,
SATISFIED = bit::RangeValue<ValidateField,2>::value,
NONRELEVANT = bit::RangeValue<ValidateField,3>::value
} |
| |
| enum | TransactValue { KEEP_STATE = bit::RangeValue<TransactField,0>::value,
LOCKED = bit::RangeValue<TransactField,1>::value,
TRANSACT = bit::RangeValue<TransactField,2>::value
} |
| |
| enum | TransactByValue { SOLVER = bit::RangeValue<TransactByField,0>::value,
APPL_LOW = bit::RangeValue<TransactByField,1>::value,
APPL_HIGH = bit::RangeValue<TransactByField,2>::value,
USER = bit::RangeValue<TransactByField,3>::value
} |
| |
| enum | DetailValue { NO_DETAIL = bit::RangeValue<TransactDetailField,0>::value
} |
| |
| enum | InstallDetailValue { EXPLICIT_INSTALL = bit::RangeValue<TransactDetailField,0>::value,
SOFT_INSTALL = bit::RangeValue<TransactDetailField,1>::value
} |
| |
| enum | RemoveDetailValue { EXPLICIT_REMOVE = bit::RangeValue<TransactDetailField,0>::value,
SOFT_REMOVE = bit::RangeValue<TransactDetailField,1>::value,
DUE_TO_OBSOLETE = bit::RangeValue<TransactDetailField,2>::value,
DUE_TO_UPGRADE = bit::RangeValue<TransactDetailField,3>::value
} |
| |
| enum | LicenceConfirmedValue { LICENCE_UNCONFIRMED = bit::RangeValue<LicenceConfirmedField,0>::value,
LICENCE_CONFIRMED = bit::RangeValue<LicenceConfirmedField,1>::value
} |
| |
| enum | WeakValue {
NO_WEAK = bit::RangeValue<WeakField,0>::value,
SUGGESTED = bit::RangeValue<WeakField,1<<0>::value,
RECOMMENDED = bit::RangeValue<WeakField,1<<1>::value,
ORPHANED = bit::RangeValue<WeakField,1<<2>::value,
UNNEEDED = bit::RangeValue<WeakField,1<<3>::value
} |
| |
| enum | UserLockQuery { USERLOCK_NOMATCH = bit::RangeValue<UserLockQueryField,0>::value,
USERLOCK_MATCH = bit::RangeValue<UserLockQueryField,1>::value
} |
| |
|
- Note
- Enlarge FieldType if more bits are needed. It's not yet checked by the compiler.
|
| using | FieldType = uint16_t |
| |
| using | BitFieldType = bit::BitField< FieldType > |
| |
| using | StateField = bit::Range< FieldType, 0, 1 > |
| |
| using | ValidateField = bit::Range< FieldType, StateField::end, 2 > |
| |
| using | TransactField = bit::Range< FieldType, ValidateField::end, 2 > |
| |
| using | TransactByField = bit::Range< FieldType, TransactField::end, 2 > |
| |
| using | TransactDetailField = bit::Range< FieldType, TransactByField::end, 2 > |
| |
| using | LicenceConfirmedField = bit::Range< FieldType, TransactDetailField::end, 1 > |
| |
| using | WeakField = bit::Range< FieldType, LicenceConfirmedField::end, 4 > |
| |
| using | UserLockQueryField = bit::Range< FieldType, WeakField::end, 1 > |
| |
|
| | ResStatus () |
| | Default ctor. More...
|
| |
| | ResStatus (bool isInstalled_r) |
| | Ctor setting the initial . More...
|
| |
| | ~ResStatus () |
| | Dtor. More...
|
| |
| | ResStatus (const ResStatus &)=default |
| |
| | ResStatus (ResStatus &&) noexcept=default |
| |
| ResStatus & | operator= (const ResStatus &)=default |
| |
| ResStatus & | operator= (ResStatus &&) noexcept=default |
| |
| BitFieldType | bitfield () const |
| | Debug helper returning the bitfield. More...
|
| |
| bool | isLicenceConfirmed () const |
| |
| void | setLicenceConfirmed (bool toVal_r=true) |
| |
| bool | isRecommended () const |
| |
| bool | isSuggested () const |
| |
| bool | isOrphaned () const |
| |
| bool | isUnneeded () const |
| |
| bool | hasWeak () const |
| |
| void | resetWeak () |
| |
| void | setRecommended (bool toVal_r=true) |
| |
| void | setSuggested (bool toVal_r=true) |
| |
| void | setOrphaned (bool toVal_r=true) |
| |
| void | setUnneeded (bool toVal_r=true) |
| |
| ValidateValue | validate () const |
| |
| bool | isUndetermined () const |
| |
| bool | isSatisfied () const |
| |
| bool | isBroken () const |
| |
| bool | isNonRelevant () const |
| |
| std::string | validateValueAsString () const |
| |
| bool | isInstalled () const |
| |
| bool | isUninstalled () const |
| |
| bool | staysInstalled () const |
| |
| bool | wasInstalled () const |
| |
| bool | isToBeInstalled () const |
| |
| bool | staysUninstalled () const |
| |
| bool | wasUninstalled () const |
| |
| bool | isToBeUninstalled () const |
| |
| bool | isLocked () const |
| |
| bool | isUserLocked () const |
| |
| bool | isSoftLocked () const |
| |
| bool | isKept () const |
| |
| bool | transacts () const |
| |
| TransactValue | getTransactValue () const |
| |
| bool | onSystem () const |
| | True if would be on system after commit. More...
|
| |
| bool | offSystem () const |
| | True if would be off system after commit. More...
|
| |
| bool | isBySolver () const |
| |
| bool | isByApplLow () const |
| |
| bool | isByApplHigh () const |
| |
| bool | isByUser () const |
| |
| TransactByValue | getTransactByValue () const |
| |
| bool | setTransactByValue (TransactByValue causer) |
| |
| bool | isToBeUninstalledDueToObsolete () const |
| |
| bool | isToBeUninstalledDueToUpgrade () const |
| |
| bool | isToBeInstalledSoft () const |
| |
| bool | isToBeInstalledNotSoft () const |
| |
| bool | isToBeUninstalledSoft () const |
| |
| bool | isUserLockQueryMatch () const |
| |
| bool | setTransactValue (TransactValue newVal_r, TransactByValue causer_r) |
| | Set TransactValue. More...
|
| |
| bool | maySetTransactValue (TransactValue newVal_r, TransactByValue causer_r) |
| |
| bool | setLock (bool toLock_r, TransactByValue causer_r) |
| | Apply a lock (prevent transaction). More...
|
| |
| bool | maySetLock (bool to_r, TransactByValue causer_r) |
| |
| bool | setTransact (bool toTansact_r, TransactByValue causer_r) |
| | Toggle between TRANSACT and KEEP_STATE. More...
|
| |
| bool | maySetTransact (bool val_r, TransactByValue causer) |
| |
| bool | setSoftLock (TransactByValue causer_r) |
| |
| bool | resetTransact (TransactByValue causer_r) |
| | Not the same as setTransact( false ). More...
|
| |
| bool | setSoftTransact (bool toTansact_r, TransactByValue causer_r, TransactByValue causerLimit_r) |
| | Soft toggle between TRANSACT and KEEP_STATE. More...
|
| |
| bool | setSoftTransact (bool toTansact_r, TransactByValue causer_r) |
| |
| bool | maySetSoftTransact (bool val_r, TransactByValue causer, TransactByValue causerLimit_r) |
| |
| bool | maySetSoftTransact (bool val_r, TransactByValue causer) |
| |
| bool | setToBeInstalled (TransactByValue causer) |
| |
| bool | maySetToBeInstalled (TransactByValue causer) |
| |
| bool | setToBeUninstalled (TransactByValue causer) |
| |
| bool | maySetToBeUninstalled (TransactByValue causer) |
| |
| bool | setToBeUninstalledDueToObsolete () |
| |
| bool | setToBeUninstalledDueToUpgrade (TransactByValue causer) |
| |
| bool | setToBeInstalledSoft () |
| |
| bool | setToBeUninstalledSoft () |
| |
| bool | maySetToBeUninstalledSoft () |
| |
| bool | isSoftInstall () |
| |
| bool | isSoftUninstall () |
| |
| bool | setSoftInstall (bool flag) |
| |
| bool | setSoftUninstall (bool flag) |
| |
| bool | setUndetermined () |
| |
| bool | setSatisfied () |
| |
| bool | setBroken () |
| |
| bool | setNonRelevant () |
| |
| bool | setStatus (const ResStatus &newStatus_r) |
| |
Status bitfield.
StateField Whether the resolvable is or uninstalled (available).
ValidateField Validate status computed by the solver as nonrelevant: it is unimportant for the user satisfied: it important nothing has to be done broken: it is incomplete. So e.g. an update is needed
TransactField Whether to transact this resolvable (delete if installed install if uninstalled). In case the resolvable is locked, only USER may modify the transact bit.
TransactByField Who triggered the transaction. Transaction bit may be reset by higer levels only.
TransactDetailField Reason why the Resolvable transacts. Splitted into InstallDetailValue and RemoveDetailValue dependent on the kind of transaction.
WeakField The solvable will be recommended/suggested by a to be installed/deleted solvable.
Definition at line 54 of file ResStatus.h.