HORIBA C++ SDK
Library for HORIBA devices
Loading...
Searching...
No Matches
horiba::os::WindowsProcess Class Reference

Represents a Windows process that can be started and stopped. More...

#include <windows_process.h>

Inheritance diagram for horiba::os::WindowsProcess:

Public Member Functions

 WindowsProcess (std::string process_path, std::string process_name)
 Builds a Windows process.
 
void start () override
 Starts the process if not already started.
 
bool running () override
 Returns whether the process is running or not.
 
void stop () override
 Stops the process if currently running.
 
- Public Member Functions inherited from horiba::os::Process
virtual ~Process ()=default
 

Detailed Description

Represents a Windows process that can be started and stopped.

Constructor & Destructor Documentation

◆ WindowsProcess()

horiba::os::WindowsProcess::WindowsProcess ( std::string process_path,
std::string process_name )
explicit

Builds a Windows process.

Parameters
process_pathFolder where the executable is located
process_nameName of the executable

Member Function Documentation

◆ running()

bool horiba::os::WindowsProcess::running ( )
overridevirtual

Returns whether the process is running or not.

Returns
True if the process is running, false otherwise.

Implements horiba::os::Process.

◆ start()

void horiba::os::WindowsProcess::start ( )
overridevirtual

Starts the process if not already started.

Implements horiba::os::Process.

◆ stop()

void horiba::os::WindowsProcess::stop ( )
overridevirtual

Stops the process if currently running.

Implements horiba::os::Process.


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