torc-master
|
Encapsulation of filesystem paths that are used by the library. More...
#include <DirectoryTree.hpp>
Public Member Functions | |
DirectoryTree (const char *argv0) | |
Mandatory constructor. More... | |
Static Public Member Functions | |
static const boost::filesystem::path & | getRelativePath (void) |
Returns the relative path from the working directory to the executable home. More... | |
static const boost::filesystem::path & | getWorkingPath (void) |
Returns the absolute path to the working directory. More... | |
static const boost::filesystem::path & | getExecutablePath (void) |
Returns the absolute path to the executable directory. More... | |
static const boost::filesystem::path & | getDevicesPath (void) |
Returns the absolute path to the family and device database directory. More... | |
static const boost::filesystem::path & | getLogPath (void) |
Returns the absolute path to the log files directory. More... | |
Static Protected Attributes | |
static boost::filesystem::path | sRelativePath |
Relative path from the working directory to the executable home. More... | |
static boost::filesystem::path | sWorkingPath |
Absolute path to the working directory. More... | |
static boost::filesystem::path | sExecutablePath |
Absolute path to the executable directory. More... | |
static boost::filesystem::path | sEdaPath |
Absolute path to the EDA libraries directory. More... | |
static boost::filesystem::path | sDevicesPath |
Absolute path to the family and device database directory. More... | |
static boost::filesystem::path | sLogPath |
Absolute path to the log files directory. More... | |
Encapsulation of filesystem paths that are used by the library.
Definition at line 28 of file DirectoryTree.hpp.
torc::common::DirectoryTree::DirectoryTree | ( | const char * | argv0 | ) |
Mandatory constructor.
argv0 | The zero-th argument passed to main in argv[]. DirectoryTree needs this to derive the relative path from the working directory to the executable, until such a time as Boost provides a better approach. |
Extracts the zero-th argument, and builds the various static paths used by the executable.
Definition at line 40 of file DirectoryTree.cpp.
|
inlinestatic |
Returns the absolute path to the family and device database directory.
Definition at line 60 of file DirectoryTree.hpp.
|
inlinestatic |
Returns the absolute path to the executable directory.
Definition at line 58 of file DirectoryTree.hpp.
|
inlinestatic |
Returns the absolute path to the log files directory.
Definition at line 62 of file DirectoryTree.hpp.
|
inlinestatic |
Returns the relative path from the working directory to the executable home.
Definition at line 54 of file DirectoryTree.hpp.
|
inlinestatic |
Returns the absolute path to the working directory.
Definition at line 56 of file DirectoryTree.hpp.
|
staticprotected |
Absolute path to the family and device database directory.
Definition at line 40 of file DirectoryTree.hpp.
|
staticprotected |
Absolute path to the EDA libraries directory.
Definition at line 38 of file DirectoryTree.hpp.
|
staticprotected |
Absolute path to the executable directory.
Definition at line 36 of file DirectoryTree.hpp.
|
staticprotected |
Absolute path to the log files directory.
Definition at line 42 of file DirectoryTree.hpp.
|
staticprotected |
Relative path from the working directory to the executable home.
Definition at line 32 of file DirectoryTree.hpp.
|
staticprotected |
Absolute path to the working directory.
Definition at line 34 of file DirectoryTree.hpp.