lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::ProcessName Class Reference

#include <ProcessName.h>

Public Member Functions

 ProcessName (int argc, char *const *argv)
 
 ProcessName (const std::string &processName)
 
std::string getProcessName () const
 
const std::filesystem::path & getPath () const
 
const std::vector< std::string > & getArgs () const
 

Detailed Description

Represents the name and arguments of the current process, typically derived from argc/argv.

Constructor & Destructor Documentation

◆ ProcessName() [1/2]

lintel::ProcessName::ProcessName ( int  argc,
char *const *  argv 
)
inline

Constructor from command-line arguments.

Parameters
argcargument count
argvargument vector

◆ ProcessName() [2/2]

lintel::ProcessName::ProcessName ( const std::string &  processName)
inlineexplicit

Constructor from a process path string.

Parameters
processNamepath to the executable

Member Function Documentation

◆ getArgs()

const std::vector< std::string > & lintel::ProcessName::getArgs ( ) const
inline
Returns
command-line arguments

◆ getPath()

const std::filesystem::path & lintel::ProcessName::getPath ( ) const
inline
Returns
full path to the executable

◆ getProcessName()

std::string lintel::ProcessName::getProcessName ( ) const
inline
Returns
process executable filename

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