Skip to content

ScramWorker

Defines a class for synchronous execution. More...

#include <ScramWorker.h>

Public Functions

Name
ScramWorker(std::vector< std::string > args)<br>Constructor for ScramWorker.
virtual~ScramWorker() =default<br>Virtual destructor for ScramWorker.
voidExecute()<br>Executes the main logic of the worker.

Detailed Description

cpp
class ScramWorker;

Defines a class for synchronous execution.

This class provides functionality for executing tasks synchronously based on command-line arguments.

Public Functions Documentation

function ScramWorker

cpp
explicit ScramWorker(
    std::vector< std::string > args
)

Constructor for ScramWorker.

Parameters:

  • args A vector of command-line arguments.

function ~ScramWorker

cpp
virtual ~ScramWorker() =default

Virtual destructor for ScramWorker.

function Execute

cpp
void Execute()

Executes the main logic of the worker.

Exceptions:

  • std::runtime_error If an exception occurs during execution.

This method contains the synchronous execution logic based on the provided command-line arguments.

This method converts the command-line arguments to argc and argv format, parses the arguments, and runs the SCRAM analysis. Any exceptions are caught and re-thrown with the exception message.


Updated on 2025-11-11 at 16:51:08 +0000