winss
Public Member Functions | List of all members
winss::EnvironmentDir Class Reference

A directory where each file is an environment variable. More...

#include <environment.hpp>

Inheritance diagram for winss::EnvironmentDir:
Inheritance graph
[legend]
Collaboration diagram for winss::EnvironmentDir:
Collaboration graph
[legend]

Public Member Functions

 EnvironmentDir (fs::path env_dir)
 Constructor with the environment directory. More...
 
winss::env_t ReadEnvSource () override
 Gets the environment source as key values. More...
 
- Public Member Functions inherited from winss::Environment
virtual std::vector< char > ReadEnv ()
 Reads the environment source into an environment block for CreateProcess. More...
 
virtual ~Environment ()
 Default destructor. More...
 

Detailed Description

A directory where each file is an environment variable.

Constructor & Destructor Documentation

winss::EnvironmentDir::EnvironmentDir ( fs::path  env_dir)
explicit

Constructor with the environment directory.

Parameters
env_dirThe environment directory.

Member Function Documentation

winss::env_t winss::EnvironmentDir::ReadEnvSource ( )
overridevirtual

Gets the environment source as key values.

Returns
The environment key value pairs.

Implements winss::Environment.

References FILESYSTEM, and winss::Utils::SplitString().


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