DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
ProcessStreamer.h
Go to the documentation of this file.
1#pragma once
2
3#include "Common.h"
4#include "System/Object.h"
5#include "System/String.h"
6#include "System/EventArgs.h"
9#include "System/Exception.h"
13
14namespace DotNetDupe {
15 namespace System {
16 namespace Diagnostics {
17
20 class ProcessEventArgs : public EventArgs {
21 public:
24 explicit ProcessEventArgs(const ProcessInfo& proc) : m_proc(proc) {}
25
28 const ProcessInfo& GetProcess() const { return m_proc; }
29
30 private:
31 ProcessInfo m_proc;
32 };
33
37 public:
41 : m_lstBatch(lstBatch) {}
42
45 const Collections::Generic::List<ProcessInfo>& GetBatch() const { return m_lstBatch; }
46
47 private:
49 };
50
54 public:
57 explicit ProcessStreamErrorEventArgs(const String& sErrorMessage)
58 : m_sErrorMessage(sErrorMessage) {}
59
62 String GetErrorMessage() const { return m_sErrorMessage; }
63
64 private:
65 String m_sErrorMessage;
66 };
67
106
107 }
108 }
109}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Represents the base class for classes that contain event data.
Represents the method that will handle an event when the event provides data.
Represents errors that occur during application execution and serves as the ultimate base exception.
Represents a strongly typed list of objects that can be accessed by index mirroring ....
Base object class for DotNetDupe mirroring .NET System.Object.
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Represents a strongly typed list of objects accessible by index.
Definition List.h:29
ProcessBatchEventArgs(const Collections::Generic::List< ProcessInfo > &lstBatch)
Constructs batch event args.
const Collections::Generic::List< ProcessInfo > & GetBatch() const
Gets the batch list.
const ProcessInfo & GetProcess() const
Gets the process info.
ProcessEventArgs(const ProcessInfo &proc)
Constructs event args with process info.
ProcessStreamErrorEventArgs(const String &sErrorMessage)
Constructs error event args.
EventHandler< ProcessBatchEventArgs > & BatchReady
ProcessStreamOptions GetOptions() const
Gets the configuration options.
void Cancel()
Cancels background streaming.
EventHandler< ProcessEventArgs > & ProcessUpdated
void Start()
Starts background process streaming.
EventHandler< ProcessStreamErrorEventArgs > & Error
bool IsRunning() const
Gets whether streaming is active.
ProcessStreamer(const ProcessStreamOptions &options=ProcessStreamOptions())
Initializes a new instance of the ProcessStreamer class with options.
EventHandler< ProcessEventArgs > & ProcessDiscovered
EventArgs()
Initializes a new instance of the EventArgs class.
Definition EventArgs.cpp:7
Represents the method that will handle an event when the event provides data.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
A unified smart pointer that supports both unique and shared ownership semantics.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74
Comprehensive telemetry snapshot for an operating system process.
Configuration options controlling the execution of a ProcessStreamer.
ProcessStreamOptions()
Default constructor configuring progressive telemetry defaults.