Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
model::EnvVariable Struct Reference

A simple class used to extract environment variables. More...

#include <EnvVariable.h>

Inheritance diagram for model::EnvVariable:
Collaboration diagram for model::EnvVariable:

Public Member Functions

 EnvVariable (const std::string &varname)

Static Public Member Functions

static std::string getVariable (const std::string &varname)

Detailed Description

A simple class used to extract environment variables.

Sample usage:

#include <iostream>
#include <EnvVariable.h>
int main(){
model::EnvVariable ev("PATH");
std::cout<<"PATH is "<<ev<<std::endl;
return 0;
}
A simple class used to extract environment variables.
Definition EnvVariable.h:35

Definition at line 34 of file EnvVariable.h.

Constructor & Destructor Documentation

◆ EnvVariable()

model::EnvVariable::EnvVariable ( const std::string & varname)

Definition at line 17 of file EnvVariable.cpp.

Member Function Documentation

◆ getVariable()

auto model::EnvVariable::getVariable ( const std::string & varname)
static

Definition at line 10 of file EnvVariable.cpp.


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