Feature #1966
Add interface and implementations for gathering information about the current host and process
Status: | Resolved | Start date: | 08/27/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Operating System Abstraction | |||
Target version: | Robotics Service Bus - rsb-0.11 |
Description
- Draft is in the feature-process-information branch
Related issues
Associated revisions
Added src/rsc/os/{ProcessInfo.h,LinuxProcessInfo.cpp}
refs #1966
The function getExecutablePath() in src/rsc/os/LinuxProcessInfo.cpp is
based on code written by Johannes Wienke.
- src/rsc/os/ProcessInfo.h: new file; contains function declarations for
obtaining information about the current process - src/rsc/os/LinuxProcessInfo.cpp: new file; contains definitions of
these functions for the Linux platform - src/CMakeLists.txt: added files
src/rsc/os/{ProcessInfo.h,LinuxProcessInfo.cpp} - test/rsc/os/ProcessInfoTest.cpp: new file; very basic smoke test of
the process information functions - test/CMakeLists.txt: added test files test/rsc/os/*.cpp
Added src/rsc/os/{HostInfo.h,LinuxHostInfo.cpp}
refs #1966
- src/rsc/os/HostInfo.h: new file; contains function declarations for
obtaining information about the local host - src/rsc/os/LinuxHostInfo.cpp: new file; contains definitions of these
functions for the Linux platform - src/CMakeLists.txt: added files
src/rsc/os/{HostInfo.h,LinuxHostInfo.cpp} - test/rsc/os/HostInfoTest.cpp: new file; very basic smoke tests for
host information functions
Added POSIX fallbacks for {Host,Process}Info in src/rsc/os
refs #1966
- src/rsc/os/PosixHostInfo.cpp: new file; minimal POSIX-compliant
implementation of host information protocol - src/rsc/os/PosixProcessInfo.cpp: similar
- src/CMakeLists.txt: use src/rsc/os/Posix{Host,Process}Info.cpp for
UNIX systems other than Linux
Added Win32 implementations of {Host,Process}Info in src/rsc/os
refs #1966
- src/rsc/os/Win32HostInfo.cpp: new file; implementation of host
information protocol - src/rsc/os/Win32ProcessInfo.cpp: similar
- src/CMakeLists.txt: use src/rsc/os/Win32{Host,Process}Info.cpp for
Win32 systems
Added host, process information example in examples/HostAndProcessInfo.cpp
refs #1966
The example code has originally been written by Johannes Wienke.
- examples/HostAndProcessInfo.cpp: new file; demonstrates host and
process information functions
Added src/rsc/os/{ProcessInfo.h,LinuxProcessInfo.cpp}
refs #1966
The function getExecutablePath() in src/rsc/os/LinuxProcessInfo.cpp is
based on code written by Johannes Wienke.
- src/rsc/os/ProcessInfo.h: new file; contains function declarations for
obtaining information about the current process - src/rsc/os/LinuxProcessInfo.cpp: new file; contains definitions of
these functions for the Linux platform - src/CMakeLists.txt: added files
src/rsc/os/{ProcessInfo.h,LinuxProcessInfo.cpp} - test/rsc/os/ProcessInfoTest.cpp: new file; very basic smoke test of
the process information functions - test/CMakeLists.txt: added test files test/rsc/os/*.cpp
Added src/rsc/os/{HostInfo.h,LinuxHostInfo.cpp}
refs #1966
- src/rsc/os/HostInfo.h: new file; contains function declarations for
obtaining information about the local host - src/rsc/os/LinuxHostInfo.cpp: new file; contains definitions of these
functions for the Linux platform - src/CMakeLists.txt: added files
src/rsc/os/{HostInfo.h,LinuxHostInfo.cpp} - test/rsc/os/HostInfoTest.cpp: new file; very basic smoke tests for
host information functions
Added POSIX fallbacks for {Host,Process}Info in src/rsc/os
refs #1966
- src/rsc/os/PosixHostInfo.cpp: new file; minimal POSIX-compliant
implementation of host information protocol - src/rsc/os/PosixProcessInfo.cpp: similar
- src/CMakeLists.txt: use src/rsc/os/Posix{Host,Process}Info.cpp for
UNIX systems other than Linux
Added Win32 implementations of {Host,Process}Info in src/rsc/os
refs #1966
- src/rsc/os/Win32HostInfo.cpp: new file; implementation of host
information protocol - src/rsc/os/Win32ProcessInfo.cpp: similar
- src/CMakeLists.txt: use src/rsc/os/Win32{Host,Process}Info.cpp for
Win32 systems
Added host, process information example in examples/HostAndProcessInfo.cpp
fixes #1966
The example code has originally been written by Johannes Wienke.
- examples/HostAndProcessInfo.cpp: new file; demonstrates host and
process information functions
Implemented os function support for mac
Adds 2 mac-specific implementations for Host and ProcesInfo
refs #1966
History
#1 Updated by J. Moringen over 9 years ago
- Related to Feature #44: Implement basic introspection support added
#2 Updated by J. Moringen over 9 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset rsc|bdf5972cd95f503fe87fab2022bec808fd808dec.
#3 Updated by J. Wienke over 9 years ago
- Subject changed from Add interface and implementations for gathering informatino about the current host and process to Add interface and implementations for gathering information about the current host and process