libbmq 57a4779af25c7e9db2550c596f277dd91da7e3c2
|
#include <bmqt_queueflags.h>
Static Public Member Functions | |
static bool | isSet (bsls::Types::Uint64 flags, QueueFlags::Enum flag) |
static bool | isValid (bsl::ostream &errorDescription, bsls::Types::Uint64 flags) |
static bsls::Types::Uint64 | empty () |
The empty value for flags. | |
static bool | isEmpty (bsls::Types::Uint64 flags) |
Returns true if the specified flags have the empty value. | |
static bool | isReader (bsls::Types::Uint64 flags) |
Returns true if the specified flags represent a reader. | |
static bool | isWriter (bsls::Types::Uint64 flags) |
Returns true if the specified flags represent a writer. | |
static bool | isAdmin (bsls::Types::Uint64 flags) |
Returns true if the specified flags represent an admin. | |
static bool | isAck (bsls::Types::Uint64 flags) |
Returns true if the specified flags represent ack required. | |
static void | setReader (bsls::Types::Uint64 *flags) |
Sets the specified flags representation for reader. | |
static void | setAdmin (bsls::Types::Uint64 *flags) |
Sets the specified flags representation for admin. | |
static void | setWriter (bsls::Types::Uint64 *flags) |
Sets the specified flags representation for writer. | |
static void | setAck (bsls::Types::Uint64 *flags) |
Sets the specified flags representation for ack. | |
static void | unsetReader (bsls::Types::Uint64 *flags) |
Resets the specified flags representation for reader. | |
static void | unsetAdmin (bsls::Types::Uint64 *flags) |
Resets the specified flags representation for admin. | |
static void | unsetWriter (bsls::Types::Uint64 *flags) |
Resets the specified flags representation for writer. | |
static void | unsetAck (bsls::Types::Uint64 *flags) |
Resets the specified flags representation for ack. | |
static bsls::Types::Uint64 | additions (bsls::Types::Uint64 oldFlags, bsls::Types::Uint64 newFlags) |
static bsls::Types::Uint64 | removals (bsls::Types::Uint64 oldFlags, bsls::Types::Uint64 newFlags) |
static bsl::ostream & | prettyPrint (bsl::ostream &stream, bsls::Types::Uint64 flags) |
static int | fromString (bsl::ostream &errorDescription, bsls::Types::Uint64 *out, const bsl::string &str) |
|
inlinestatic |
Return true if the bit-mask in the specified flags
has the specified flag
set, or false if not.
DEPRECATED: This method is deprecated in favor of the below more specific accessors; and should be made private once all clients have been updated to the new APIs.
Referenced by isAck(), isAdmin(), isReader(), and isWriter().
|
static |
Check whether the specified flags
represent a valid combination of flags to use for opening a queue. Return true if it does, or false if some exclusive flags are both set, and populate the specified errorDescription
with the reason of the failure.
|
inlinestatic |
Referenced by isEmpty().
|
inlinestatic |
References empty().
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_READ, and isSet().
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_WRITE, and isSet().
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_ADMIN, and isSet().
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_ACK, and isSet().
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_READ.
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_ADMIN.
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_WRITE.
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_ACK.
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_READ.
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_ADMIN.
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_WRITE.
|
inlinestatic |
References BloombergLP::bmqt::QueueFlags::e_ACK.
|
static |
Return a new flag mask that only set bits are the ones that are in the specified newFlags
and not in the specified oldFlags
.
|
static |
Return a new flag mask that only set bits are the ones that are in the specified oldFlags
and not in the specified newFlags
.
|
static |
Print the ascii-representation of all the values set in the specified flags
to the specified stream
. Each value is ,
separated.
|
static |
Convert the string representation of the enum bit mask from the specified str
(which format corresponds to the one of the prettyPrint
method) and populate the specified out
with the result on success returning 0, or return a non-zero error code on error, populating the specified errorDescription
with a description of the error.