RSB
0.15.1
|
Instances of this class store information about the current process. More...
#include <Model.h>
Public Member Functions | |
ProcessInfo (unsigned int pid=rsc::os::currentProcessId(), const std::string &programName=tryCurrentProgramName(), const std::vector< std::string > &arguments=tryCurrentCommandlineArguments(), const boost::posix_time::ptime &startTime=tryCurrentProcessStartTime(), const std::string &rsbVersion=rsb::Version::string()+"-"+rsb::Version::buildId(), const std::string &executingUser=tryCurrentExecutingUser()) | |
virtual | ~ProcessInfo () |
unsigned int | getPid () const |
const std::string & | getProgramName () const |
const std::vector< std::string > & | getArguments () const |
const boost::posix_time::ptime & | getStartTime () const |
const std::string & | getRSBVersion () const |
const std::string & | getExecutingUser () const |
Private Attributes | |
unsigned int | pid |
std::string | programName |
std::vector< std::string > | arguments |
boost::posix_time::ptime | startTime |
std::string | rsbVersion |
std::string | executingUser |
Instances of this class store information about the current process.
rsb::introspection::ProcessInfo::ProcessInfo | ( | unsigned int | pid = rsc::os::currentProcessId() , |
const std::string & | programName = tryCurrentProgramName() , |
||
const std::vector< std::string > & | arguments = tryCurrentCommandlineArguments() , |
||
const boost::posix_time::ptime & | startTime = tryCurrentProcessStartTime() , |
||
const std::string & | rsbVersion = rsb::Version::string() + "-" + rsb::Version::buildId() , |
||
const std::string & | executingUser = tryCurrentExecutingUser() |
||
) |
const std::vector< std::string > & rsb::introspection::ProcessInfo::getArguments | ( | ) | const |
Definition at line 151 of file Model.cpp.
References arguments.
Referenced by rsb::introspection::IntrospectionSender::sendHello().
const std::string & rsb::introspection::ProcessInfo::getExecutingUser | ( | ) | const |
Definition at line 163 of file Model.cpp.
References executingUser.
unsigned int rsb::introspection::ProcessInfo::getPid | ( | ) | const |
const std::string & rsb::introspection::ProcessInfo::getProgramName | ( | ) | const |
Definition at line 147 of file Model.cpp.
References programName.
const std::string & rsb::introspection::ProcessInfo::getRSBVersion | ( | ) | const |
Definition at line 159 of file Model.cpp.
References rsbVersion.
const boost::posix_time::ptime & rsb::introspection::ProcessInfo::getStartTime | ( | ) | const |
|
private |
Definition at line 130 of file Model.h.
Referenced by getArguments().
|
private |
Definition at line 133 of file Model.h.
Referenced by getExecutingUser().
|
private |
|
private |
Definition at line 129 of file Model.h.
Referenced by getProgramName().
|
private |
Definition at line 132 of file Model.h.
Referenced by getRSBVersion().
|
private |
Definition at line 131 of file Model.h.
Referenced by getStartTime().