Kanzi  3.9.9
Kanzi Engine C++ API
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. More...
 
CodeBehindget () const
 Gets the code behind object. More...
 
virtual ~CodeBehindRegisterGuard ()
 Destructor. More...
 

Detailed Description

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

Constructor & Destructor Documentation

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.
virtual kanzi::CodeBehindRegisterGuard::~CodeBehindRegisterGuard ( )
virtual

Destructor.

Member Function Documentation

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: