Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
Loading...
Searching...
No Matches
aria::adapters::http::HttpView Class Referencefinal

Logical view exposed over HTTP. More...

#include <http_view.hpp>

Inheritance diagram for aria::adapters::http::HttpView:
[legend]

Public Member Functions

 HttpView (std::string id, std::string kind)
std::string_view kind () const noexcept override
const std::string & id () const noexcept
 Stable identifier used as routing key in HTTP/SSE messages.
Public Member Functions inherited from aria::binding::IView
 IView ()
 IView (const IView &)=delete
IViewoperator= (const IView &)=delete
 IView (IView &&)=delete
IViewoperator= (IView &&)=delete
virtual ~IView ()
Subscription on_destroy (std::function< void()> cb) const
 Subscribe to "this view is about to be destroyed".

Additional Inherited Members

Protected Member Functions inherited from aria::binding::IView
void fire_destroy_ () noexcept
 Invoked by ~IView() to fan out the notification — this is the last-resort trigger.

Detailed Description

Logical view exposed over HTTP.

See wire_protocol.hpp for the full set of valid kind values.

Lifetime: the HttpView is owned by the HttpAdapter's view registry (see HttpAdapter::register_view). Destroying the adapter (or calling HttpAdapter::unregister_view) fires the IView::on_destroy signal so any BindingEngine subscriptions wired to this view are released.

Constructor & Destructor Documentation

◆ HttpView()

aria::adapters::http::HttpView::HttpView ( std::string id,
std::string kind )
inline

Member Function Documentation

◆ kind()

std::string_view aria::adapters::http::HttpView::kind ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements aria::binding::IView.

◆ id()

const std::string & aria::adapters::http::HttpView::id ( ) const
inlinenodiscardnoexcept

Stable identifier used as routing key in HTTP/SSE messages.


The documentation for this class was generated from the following file: