Feature #1966

Add interface and implementations for gathering information about the current host and process

Added by J. Moringen over 9 years ago. Updated over 9 years ago.

Status:ResolvedStart date:08/27/2014
Priority:NormalDue 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

Related to Robotics Service Bus - Feature #44: Implement basic introspection support Resolved 03/24/2014 03/24/2014

Associated revisions

Revision fa6e44b4
Added by J. Moringen over 9 years ago

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

Revision 462a7b13
Added by J. Moringen over 9 years ago

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

Revision 0d4f824e
Added by J. Moringen over 9 years ago

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

Revision 23128059
Added by J. Moringen over 9 years ago

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

Revision 62b88967
Added by J. Moringen over 9 years ago

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

Revision 00abfc94
Added by J. Moringen over 9 years ago

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

Revision 17f36b25
Added by J. Moringen over 9 years ago

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

Revision db103606
Added by J. Moringen over 9 years ago

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

Revision 15d115e9
Added by J. Moringen over 9 years ago

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

Revision bdf5972c
Added by J. Moringen over 9 years ago

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

Revision f613bfa4
Added by J. Wienke over 9 years ago

Implemented os function support for mac

Adds 2 mac-specific implementations for Host and ProcesInfo

refs #1966

Revision 1a586f9a
Added by J. Wienke over 9 years ago

Implement missing os functionality for windows.

Merge branch 'wip-os-windows'

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

#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

Also available in: Atom PDF