32 #include <boost/date_time/posix_time/ptime.hpp>
34 #include <rsc/misc/UUID.h>
35 #include <rsc/os/ProcessInfo.h>
36 #include <rsc/os/HostInfo.h>
38 #include <rsb/Version.h>
42 namespace introspection {
55 const rsc::misc::UUID&
id,
58 const std::string&
type);
61 const std::string&
getKind()
const;
63 const rsc::misc::UUID&
getId()
const;
69 const std::string&
getType()
const;
98 = rsc::os::currentProcessId(),
101 const std::vector<std::string>&
arguments
103 const boost::posix_time::ptime&
startTime
106 = rsb::Version::string() +
"-" + rsb::Version::buildId(),
111 unsigned int getPid()
const;
162 const std::string&
getId()
const;
unsigned int getPid() const
boost::posix_time::ptime tryCurrentProcessStartTime()
Instances of this class store information about participants in the current process.
const std::string & getMachineType() const
HostInfo(const std::string &id=currentCompatibleHostId(), const std::string &hostname=tryCurrentHostname(), const std::string &machineType=tryCurrentMachineType(), const std::string &machineVersion=tryCurrentMachineVersion(), const std::string &softwareType=tryCurrentSoftwareType(), const std::string &softwareVersion=tryCurrentSoftwareVersion())
Instances of this class store information about the current process.
std::string softwareVersion
boost::posix_time::ptime startTime
const std::string & getKind() const
std::string tryCurrentMachineType()
std::vector< std::string > arguments
std::string executingUser
std::string tryCurrentExecutingUser()
std::string currentCompatibleHostId()
const std::string & getHostname() const
const std::string & getType() const
std::string tryCurrentSoftwareVersion()
const std::string & getProgramName() const
const rsc::misc::UUID & getParentId() const
const std::string & getSoftwareType() const
std::vector< std::string > tryCurrentCommandlineArguments()
const std::vector< std::string > & getArguments() const
const std::string & getRSBVersion() const
const std::string & getExecutingUser() const
const std::string & getMachineVersion() const
const Scope & getScope() const
std::string tryCurrentMachineVersion()
std::string tryCurrentHostId()
Instances of this class store information about the local host.
const std::string & getSoftwareVersion() const
virtual ~ParticipantInfo()
const std::string & getId() const
std::string machineVersion
std::string tryCurrentSoftwareType()
std::string tryCurrentProgramName()
Scope is a descriptor for a hierarchical channel of the unified bus.
ParticipantInfo(const std::string &kind, const rsc::misc::UUID &id, const rsc::misc::UUID &parentId, const Scope &scope, const std::string &type)
const boost::posix_time::ptime & getStartTime() const
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())
std::string tryCurrentHostname()
const rsc::misc::UUID & getId() const