8#ifndef INCLUDED_BALL_HIERARCHICALCATEGORYSETTING
9#define INCLUDED_BALL_HIERARCHICALCATEGORYSETTING
98#include <balscm_version.h>
108#include <bsl_iosfwd.h>
109#include <bsl_string.h>
110#include <bsl_string_view.h>
141 unsigned int d_thresholdLevels;
262 bsl::ostream&
print(bsl::ostream& stream,
264 int spacesPerLevel = 4)
const;
307 d_categoryPrefix = rhs.d_categoryPrefix;
308 d_thresholdLevels = rhs.d_thresholdLevels;
330 return d_categoryPrefix;
371 const HierarchicalCategorySetting& rhs)
373 return lhs.d_thresholdLevels == rhs.d_thresholdLevels &&
374 lhs.d_categoryPrefix == rhs.d_categoryPrefix;
378 const HierarchicalCategorySetting& rhs)
380 return lhs.d_thresholdLevels !=
rhs.d_thresholdLevels ||
381 lhs.d_categoryPrefix !=
rhs.d_categoryPrefix;
Definition ball_hierarchicalcategorysetting.h:126
HierarchicalCategorySetting(const bsl::string_view &categoryPrefix, const ThresholdAggregate &levels, allocator_type allocator=allocator_type())
int triggerAllLevel() const
Return the trigger-all level of this hierarchical category setting.
Definition ball_hierarchicalcategorysetting.h:352
HierarchicalCategorySetting & operator=(const HierarchicalCategorySetting &rhs)
Definition ball_hierarchicalcategorysetting.h:303
int passLevel() const
Return the pass level of this hierarchical category setting.
Definition ball_hierarchicalcategorysetting.h:340
bsl::allocator allocator_type
Definition ball_hierarchicalcategorysetting.h:135
friend bool operator!=(const HierarchicalCategorySetting &, const HierarchicalCategorySetting &)
~HierarchicalCategorySetting()=default
Destroy this object.
HierarchicalCategorySetting(const HierarchicalCategorySetting &original, const allocator_type &allocator=allocator_type())
allocator_type get_allocator() const
Return the allocator used by this object to supply memory.
Definition ball_hierarchicalcategorysetting.h:361
int triggerLevel() const
Return the trigger level of this hierarchical category setting.
Definition ball_hierarchicalcategorysetting.h:346
int recordLevel() const
Return the record level of this hierarchical category setting.
Definition ball_hierarchicalcategorysetting.h:334
friend bool operator==(const HierarchicalCategorySetting &, const HierarchicalCategorySetting &)
HierarchicalCategorySetting(bslmf::MovableRef< HierarchicalCategorySetting > original, const allocator_type &allocator)
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
int setLevels(int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel)
HierarchicalCategorySetting(bslmf::MovableRef< HierarchicalCategorySetting > original) BSLS_KEYWORD_NOEXCEPT
bsl::string_view categoryPrefix() const
Return the name prefix of this hierarchical category setting.
Definition ball_hierarchicalcategorysetting.h:328
HierarchicalCategorySetting(const bsl::string_view &categoryPrefix, int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel, allocator_type allocator=allocator_type())
static ThresholdAggregate unpack(unsigned packed)
Definition ball_thresholdaggregate.h:397
Definition ball_thresholdaggregate.h:101
int triggerLevel() const
Return the trigger level of this threshold aggregate.
Definition ball_thresholdaggregate.h:290
int recordLevel() const
Return the record level of this threshold aggregate.
Definition ball_thresholdaggregate.h:278
int passLevel() const
Return the pass level of this threshold aggregate.
Definition ball_thresholdaggregate.h:284
int triggerAllLevel() const
Return the trigger-all level of this threshold aggregate.
Definition ball_thresholdaggregate.h:296
Definition bslma_bslallocator.h:588
Definition bslstl_stringview.h:471
Definition bslstl_string.h:1252
allocator_type get_allocator() const BSLS_KEYWORD_NOEXCEPT
Return the allocator used by this string to supply memory.
Definition bslstl_string.h:7423
Definition bslmf_movableref.h:752
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
#define BSLS_KEYWORD_NOEXCEPT
Definition bsls_keyword.h:674
Definition ball_administration.h:214
bsl::ostream & operator<<(bsl::ostream &output, const Attribute &attribute)
bool operator!=(const Attribute &lhs, const Attribute &rhs)
bool operator==(const Attribute &lhs, const Attribute &rhs)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
Definition bslmf_movableref.h:795
static MovableRef< t_TYPE > move(t_TYPE &reference) BSLS_KEYWORD_NOEXCEPT
Definition bslmf_movableref.h:1067
static t_TYPE & access(t_TYPE &ref) BSLS_KEYWORD_NOEXCEPT
Definition bslmf_movableref.h:1039