Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class self

boost::process::self

Synopsis

// In header: <boost/process/self.hpp>


class self : public boost::process::process {
public:
  // construct/copy/destruct
  self();

  // public static functions
  static self & get_instance() ;
  static environment get_environment() ;
  static std::string get_work_dir() ;
};

Description

The self class provides access to the process itself.

self public construct/copy/destruct

  1. self();

    Constructs a new self object.

    Creates a new self object that represents the current process.

self public static functions

  1. static self & get_instance() ;

    Returns the self instance representing the caller's process.

  2. static environment get_environment() ;

    Returns the current environment.

    Returns the current process environment variables. Modifying the returned object has no effect on the current environment.

  3. static std::string get_work_dir() ;

    Returns the current work directory.


PrevUpHomeNext