WinStd
Additional templates and function helpers for Microsoft Windows using Standard C++ classes
Public Member Functions | Protected Attributes | List of all members
winstd::event_fn_auto Class Reference

Helper class to write an event on entry/exit of scope. More...

#include <WinStd/ETW.h>

Public Member Functions

 event_fn_auto (1 event_provider &ep, 1 const EVENT_DESCRIPTOR *event_cons, 1 const EVENT_DESCRIPTOR *event_dest, 1 LPCSTR pszFnName)
 Writes the event_cons event.
 
 event_fn_auto (1 const event_fn_auto &other)
 Copies the object.
 
 event_fn_auto (1 event_fn_auto &&other) noexcept
 Moves the object.
 
 ~event_fn_auto ()
 Writes the event_dest event.
 
event_fn_autooperator= (1 const event_fn_auto &other)
 Copies the object.
 
event_fn_autooperator= (1 event_fn_auto &&other) noexcept
 Moves the object.
 

Protected Attributes

event_providerm_ep
 Reference to event provider in use.
 
const EVENT_DESCRIPTOR * m_event_dest
 Event descriptor at destruction.
 
EVENT_DATA_DESCRIPTOR m_fn_name
 Function name.
 

Detailed Description

Helper class to write an event on entry/exit of scope.

It writes one string event at creation and another at destruction.


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