NRP Core  1.4.1
EmptyLaunchCommand Class Reference

#include <empty_launch_command.h>

Inheritance diagram for EmptyLaunchCommand:
LaunchCommand< EmptyLaunchC > LaunchCommandInterface PtrTemplates< LaunchCommandInterface >

Public Member Functions

 ~EmptyLaunchCommand ()=default
 
pid_t launchProcess (const nlohmann::json &, const std::string &, const std::vector< std::string > &, const std::vector< std::string > &, bool, int)
 launchProcess always returns -1 More...
 
pid_t stopProcess (unsigned int) override
 stopProcess always returns 0 More...
 
ENGINE_RUNNING_STATUS getProcessStatus () override
 getProcessStatus always returns ENGINE_RUNNING_STATUS::UNKNOWN More...
 
- Public Member Functions inherited from LaunchCommand< EmptyLaunchC >
std::string_view launchType () const override final
 Get launch command type. More...
 
- Public Member Functions inherited from LaunchCommandInterface
 LaunchCommandInterface ()=default
 
virtual ~LaunchCommandInterface ()=default
 
virtual std::string_view launchType () const =0
 Get launch command type. More...
 

Additional Inherited Members

- Public Types inherited from LaunchCommandInterface
enum  ENGINE_RUNNING_STATUS { UNKNOWN = -1, RUNNING, STOPPED }
 Engine Process status. More...
 
- Public Types inherited from PtrTemplates< LaunchCommandInterface >
using shared_ptr = std::shared_ptr< LaunchCommandInterface >
 
using const_shared_ptr = std::shared_ptr< const LaunchCommandInterface >
 
using unique_ptr = std::unique_ptr< LaunchCommandInterface >
 
using const_unique_ptr = std::unique_ptr< const LaunchCommandInterface >
 
- Static Public Attributes inherited from LaunchCommand< EmptyLaunchC >
static constexpr auto LaunchType
 

Constructor & Destructor Documentation

◆ ~EmptyLaunchCommand()

EmptyLaunchCommand::~EmptyLaunchCommand ( )
default

Member Function Documentation

◆ getProcessStatus()

ENGINE_RUNNING_STATUS EmptyLaunchCommand::getProcessStatus ( )
inlineoverridevirtual

getProcessStatus always returns ENGINE_RUNNING_STATUS::UNKNOWN

Returns
ENGINE_RUNNING_STATUS::UNKNOWN

Reimplemented from LaunchCommandInterface.

◆ launchProcess()

pid_t EmptyLaunchCommand::launchProcess ( const nlohmann::json ,
const std::string &  ,
const std::vector< std::string > &  ,
const std::vector< std::string > &  ,
bool  ,
int   
)
inlinevirtual

launchProcess always returns -1

Returns
-1

Implements LaunchCommandInterface.

◆ stopProcess()

pid_t EmptyLaunchCommand::stopProcess ( unsigned int  )
inlineoverridevirtual

stopProcess always returns 0

Returns
0

Implements LaunchCommandInterface.


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