Kanzi 3.9.10
kanzi::CodeBehindRegisterGuard Class Reference

RAII class for attaching code behind to an Activity or Activity Host node. More...

#include <kanzi/ui/node/concept/activity/code_behind_register_guard.hpp>

Public Member Functions

 CodeBehindRegisterGuard (NodeSharedPtr node, CodeBehindSharedPtr codeBehind)
 Constructor.
 
CodeBehindget () const
 Gets the code behind object.
 
virtual ~CodeBehindRegisterGuard ()
 Destructor.
 

Detailed Description

RAII class for attaching code behind to an Activity or Activity Host node.

Constructor & Destructor Documentation

◆ CodeBehindRegisterGuard()

kanzi::CodeBehindRegisterGuard::CodeBehindRegisterGuard ( NodeSharedPtr node,
CodeBehindSharedPtr codeBehind )
explicit

Constructor.

Parameters
nodeThe Activity or Activity Host node to which to attach code behind.
codeBehindthe code behind object to attach.

◆ ~CodeBehindRegisterGuard()

virtual kanzi::CodeBehindRegisterGuard::~CodeBehindRegisterGuard ( )
virtual

Destructor.

Member Function Documentation

◆ get()

CodeBehind & kanzi::CodeBehindRegisterGuard::get ( ) const

Gets the code behind object.

Returns
The code behind object.

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