findObserver overloads

Synopses

Declared in <ball_loggermanager.h>

Return a shared pointer to the named observer.

bsl::shared_ptr<Observer>
findObserver(std::string_view const& observerName);

Return a shared pointer to the named observer.

bsl::shared_ptr<Observer const>
findObserver(std::string_view const& observerName) const;

Load a typed shared pointer to the named observer into result.

template<class t_OBSERVER>
int
findObserver(
    bsl::shared_ptr<t_OBSERVER>* result,
    std::string_view const& observerName);

Load a typed shared pointer to the named observer into result.

template<class t_OBSERVER>
int
findObserver(
    bsl::shared_ptr<t_OBSERVER const>* result,
    std::string_view const& observerName) const;

Return Value

  • shared pointer to the named observer, or an empty shared pointer if none

  • 0 if a non‐empty shared pointer was loaded, and a non‐zero value otherwise

Parameters

Name

Description

observerName

name of the observer to find

result

destination for the typed shared pointer to the observer

Created with MrDocs