Public Member Functions | |
Environment () | |
Default constructor. More... | |
~Environment () | |
Destructor. More... | |
std::string | GetVariable (std::string const &name) |
Get the string corresponding to an environment variable. More... | |
int | GetNumDirectories () const |
Gets number directories. More... | |
std::string | Get (int i) const |
bool | Insert (std::string const &directory) |
bool | Remove (std::string const &directory) |
void | RemoveAll () |
std::string | GetPath (std::string const &name) const |
Gets a path. More... | |
Private Attributes | |
std::vector< std::string > | mDirectories |
Definition at line 21 of file NeEnvironment.h.
NeuralEngine::Environment::Environment | ( | ) |
Default constructor.
Hmetal T, 08.08.2016.
NeuralEngine::Environment::~Environment | ( | ) |
Destructor.
Hmetal T, 08.08.2016.
std::string NeuralEngine::Environment::GetVariable | ( | std::string const & | name | ) |
Get the string corresponding to an environment variable.
Hmetal T, 08.08.2016.
name | The name. |
int NeuralEngine::Environment::GetNumDirectories | ( | ) | const |
Gets number directories.
<note> Support for paths to locate files. For platform independence, use "/" for the path separator. The input 'directory' will automatically be appended with a trailing "/" if it does not end in '/' or '\'. The Insert*/Remove* functions return 'true' iff the operation was successful. </note>
Hmetal T, 08.08.2016.
std::string NeuralEngine::Environment::GetPath | ( | std::string const & | name | ) | const |
Gets a path.
<note> The GetPath function searches the list of directories and returns the fully decorated file name if the file exists and can be opened for reading. </note>
Hmetal T, 08.08.2016.
name | The name. |
|
private |
Definition at line 90 of file NeEnvironment.h.