8#ifndef INCLUDED_BALB_CONTROLMANAGER
9#define INCLUDED_BALB_CONTROLMANAGER
122#include <bsl_functional.h>
123#include <bsl_iosfwd.h>
125#include <bsl_string.h>
126#include <bsl_vector.h>
128#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
152 bsl::istream& stream)>
175 class ControlManager_Entry {
196 ControlManager_Entry(
206 ControlManager_Entry(
const ControlManager_Entry& original,
210 ~ControlManager_Entry();
215 ControlManager_Entry& operator=(
const ControlManager_Entry& rhs);
244 struct CaselessLessThan {
246 typedef void is_transparent;
267 ControlManager(
const ControlManager&);
268 ControlManager& operator=(
const ControlManager&);
356void ControlManager::ControlManager_Entry::setCallback(
359 d_callback = callback;
363bsl::string& ControlManager::ControlManager_Entry::arguments()
369bsl::string& ControlManager::ControlManager_Entry::description()
371 return d_description;
377ControlManager::ControlManager_Entry::callback()
const
383const bsl::string& ControlManager::ControlManager_Entry::arguments()
const
389const bsl::string& ControlManager::ControlManager_Entry::description()
const
391 return d_description;
411 return d_allocator_p;
#define BSLMF_NESTED_TRAIT_DECLARATION(t_TYPE, t_TRAIT)
Definition bslmf_nestedtraitdeclaration.h:231
Definition balb_controlmanager.h:142
BSLMF_NESTED_TRAIT_DECLARATION(ControlManager, bslma::UsesBslmaAllocator)
bslma::Allocator * allocator() const
Definition balb_controlmanager.h:409
~ControlManager()
Destroy this object.
ControlManager(bslma::Allocator *basicAllocator=0)
bsl::function< void(const bsl::string &prefix, bsl::istream &stream)> ControlHandler
Definition balb_controlmanager.h:153
int deregisterHandler(const bsl::string_view &prefix)
int registerUsageHandler(bsl::ostream &stream)
void printUsageHelper(bsl::ostream *stream, const bsl::string_view &preamble) const
Definition balb_controlmanager.h:400
int dispatchMessage(const bsl::string_view &message) const
int dispatchMessage(const bsl::string &prefix, bsl::istream &stream) const
void printUsage(bsl::ostream &stream, const bsl::string_view &preamble) const
int registerHandler(const bsl::string_view &prefix, const bsl::string_view &arguments, const bsl::string_view &description, const ControlHandler &handler)
Definition bslstl_stringview.h:441
Definition bslstl_string.h:1281
Forward declaration.
Definition bslstl_function.h:934
Definition bslstl_map.h:619
Definition bslma_allocator.h:457
Definition bslmt_rwmutex.h:147
Definition balb_controlmanager.h:133
Definition bslma_usesbslmaallocator.h:343