libjmmcg  build_2783
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::NTUtils::NTPerformanceObjects Class Referenceabstract

#include <NTPerformanceObjects.hpp>

Collaboration diagram for jmmcg::NTUtils::NTPerformanceObjects:
[legend]

Classes

class  PerfObjectDetails
 

Public Types

typedef ManagedSharedMemorySTLIntf< KnRManagedSharedMemory< char >, 0 > sm_char_heap_type
 
typedef std::basic_string< char, std::char_traits< char >, SMAllocator< sm_char_heap_type, char > > sm_string_type
 
typedef ManagedSharedMemorySTLIntf< KnRManagedSharedMemory< sm_string_type >, 2 > sm_string_heap_type
 
typedef ManagedSharedMemorySTLIntf< KnRManagedSharedMemory< NTPerformanceObjects * >, 1 > nt_po_heap_type
 
typedef std::map< sm_string_type, NTPerformanceObjects *, std::less< sm_string_type >, SMAllocator< nt_po_heap_type, NTPerformanceObjects * > > cpp_performance_objects_type
 
typedef ManagedSharedMemorySTLIntf< KnRManagedSharedMemory< cpp_performance_objects_type >, 3 > cpp_po_heap_type
 

Public Member Functions

 NTPerformanceObjects (const std::string &obj_prefix, const std::pair< std::string, std::string > &lang_details, const PerfObjectDetails &perf_obj_details, const bool q=true)
 
virtual ~NTPerformanceObjects (void)
 

Static Public Member Functions

static DWORD Open (NTPerformanceObjects *const pthis)
 
static DWORD Collect (NTPerformanceObjects *const pthis, LPWSTR lpwszValue, LPVOID *lppData, LPDWORD lpcbBytes, LPDWORD lpcObjectTypes)
 
static DWORD Close (void)
 

Static Public Attributes

static EveryoneSecuritySettings allow_all
 
static EventLog nt_event_log
 
static CComAutoCriticalSection perf_ctr_map_sect
 

Protected Member Functions

virtual DWORD Open (void)
 
virtual DWORD Collect (LPWSTR lpwszValue, LPVOID *lppData, LPDWORD lpcbBytes, LPDWORD lpcObjectTypes)=0
 

Detailed Description

Definition at line 93 of file NTPerformanceObjects.hpp.

Member Typedef Documentation

◆ cpp_performance_objects_type

◆ cpp_po_heap_type

◆ nt_po_heap_type

◆ sm_char_heap_type

◆ sm_string_heap_type

◆ sm_string_type

typedef std::basic_string< char, std::char_traits< char >, SMAllocator < sm_char_heap_type, char > > jmmcg::NTUtils::NTPerformanceObjects::sm_string_type

Definition at line 151 of file NTPerformanceObjects.hpp.

Constructor & Destructor Documentation

◆ NTPerformanceObjects()

NTPerformanceObjects::NTPerformanceObjects ( const std::string &  obj_prefix,
const std::pair< std::string, std::string > &  lang_details,
const PerfObjectDetails perf_obj_details,
const bool  q = true 
)
inline

Definition at line 153 of file NTPerformanceObjects.cpp.

◆ ~NTPerformanceObjects()

NTPerformanceObjects::~NTPerformanceObjects ( void  )
inlinevirtual

Definition at line 248 of file NTPerformanceObjects.cpp.

Member Function Documentation

◆ Close()

DWORD NTPerformanceObjects::Close ( void  )
inlinestatic

Definition at line 301 of file NTPerformanceObjects.cpp.

◆ Collect() [1/2]

virtual DWORD jmmcg::NTUtils::NTPerformanceObjects::Collect ( LPWSTR  lpwszValue,
LPVOID *  lppData,
LPDWORD  lpcbBytes,
LPDWORD  lpcObjectTypes 
)
inlineprotectedpure virtual

◆ Collect() [2/2]

static DWORD jmmcg::NTUtils::NTPerformanceObjects::Collect ( NTPerformanceObjects *const  pthis,
LPWSTR  lpwszValue,
LPVOID *  lppData,
LPDWORD  lpcbBytes,
LPDWORD  lpcObjectTypes 
)
inlinestatic

Definition at line 182 of file NTPerformanceObjects.hpp.

◆ Open() [1/2]

static DWORD jmmcg::NTUtils::NTPerformanceObjects::Open ( NTPerformanceObjects *const  pthis)
inlinestatic

Definition at line 180 of file NTPerformanceObjects.hpp.

◆ Open() [2/2]

DWORD NTPerformanceObjects::Open ( void  )
inlineprotectedvirtual

Definition at line 267 of file NTPerformanceObjects.cpp.

Member Data Documentation

◆ allow_all

jmmcg::NTUtils::EveryoneSecuritySettings NTPerformanceObjects::allow_all
static

Definition at line 170 of file NTPerformanceObjects.hpp.

◆ nt_event_log

jmmcg::NTUtils::EventLog NTPerformanceObjects::nt_event_log
static

Definition at line 172 of file NTPerformanceObjects.hpp.

◆ perf_ctr_map_sect

CComAutoCriticalSection NTPerformanceObjects::perf_ctr_map_sect
static

Definition at line 174 of file NTPerformanceObjects.hpp.


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