RSB  0.19.0
rsb::introspection::ProcessInfo Class Reference

Instances of this class store information about the current process. More...

#include <Model.h>

Collaboration diagram for rsb::introspection::ProcessInfo:
Collaboration graph

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
 

Detailed Description

Instances of this class store information about the current process.

Author
jmoringe

Definition at line 100 of file Model.h.

Constructor & Destructor Documentation

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() 
)

Definition at line 129 of file Model.cpp.

rsb::introspection::ProcessInfo::~ProcessInfo ( )
virtual

Definition at line 140 of file Model.cpp.

Member Function Documentation

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().

Here is the caller graph for this function:

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

Definition at line 143 of file Model.cpp.

References pid.

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

Definition at line 155 of file Model.cpp.

References startTime.

Member Data Documentation

std::vector<std::string> rsb::introspection::ProcessInfo::arguments
private

Definition at line 130 of file Model.h.

Referenced by getArguments().

std::string rsb::introspection::ProcessInfo::executingUser
private

Definition at line 133 of file Model.h.

Referenced by getExecutingUser().

unsigned int rsb::introspection::ProcessInfo::pid
private

Definition at line 128 of file Model.h.

Referenced by getPid().

std::string rsb::introspection::ProcessInfo::programName
private

Definition at line 129 of file Model.h.

Referenced by getProgramName().

std::string rsb::introspection::ProcessInfo::rsbVersion
private

Definition at line 132 of file Model.h.

Referenced by getRSBVersion().

boost::posix_time::ptime rsb::introspection::ProcessInfo::startTime
private

Definition at line 131 of file Model.h.

Referenced by getStartTime().


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