![]() |
KSquare Utilities
|
Variables that specify where we can locate Camera Application directories and files. More...
#include <Variables.h>
Public Member Functions | |
| Variables () | |
| ~Variables () | |
Static Public Member Functions | |
| static KKStr | ConfigurationDir () |
| static KKStr | HomeDir () |
| static KKStr | ScannerFilesDefaultDir () |
| static void | SetHomeDir (const KKStr &_homeDir) |
| static KKStr | SubstituteInEnvironmentVariables (const KKStr &src) |
| Expands the supplied string by substituting in Environment variable values. More... | |
Variables that specify where we can locate Camera Application directories and files.
All methods and applications are to use these variables to locate files and directories that they need. This way all the knowledge or where to locate things is kept in this one class.
Definition at line 21 of file Variables.h.
| Variables::Variables | ( | ) |
Definition at line 23 of file Variables.cpp.
| Variables::~Variables | ( | ) |
Definition at line 29 of file Variables.cpp.
|
static |
Where application configuration files go; NOT training models.
Definition at line 71 of file Variables.cpp.
References KKB::KKStr::Concat(), HomeDir(), KKB::KKStr::operator+(), and KKB::osAddSlash().
|
static |
Home Directory. All other directories will be off this directory.
Definition at line 44 of file Variables.cpp.
References KKB::KKStr::Concat(), KKB::KKStr::Empty(), and KKB::osGetEnvVariable().
Referenced by ConfigurationDir(), ScannerFilesDefaultDir(), and SubstituteInEnvironmentVariables().
|
static |
Definition at line 80 of file Variables.cpp.
References KKB::KKStr::Concat(), HomeDir(), KKB::KKStr::operator+(), and KKB::osAddSlash().
|
static |
Definition at line 37 of file Variables.cpp.
References KKB::KKStr::operator=().
Expands the supplied string by substituting in Environment variable values.
Similar to the 'osSubstituteInEvironmentVariables' method defined in 'osServices' except that if 'HomeDir' is not defined then the string 'c:\Temp' will be used. If a environment variable other than "HomeDir" is not defined then the original string will be returned. ex: '\TrainingLibraries\Shrimp9G' will expand to: 'SCS\TrainingLibraries\Shrimp9G'
| [in] | src | String that is to be search for environment variables and expanded. |
Definition at line 116 of file Variables.cpp.
References KKB::KKStr::Concat(), KKB::KKStr::EqualIgnoreCase(), HomeDir(), KKB::KKStr::KKStr(), KKB::KKStr::LocateCharacter(), KKB::KKStr::operator+(), KKB::KKStr::operator=(), KKB::KKStr::operator[](), KKB::osGetEnvVariable(), and KKB::KKStr::SubStrPart().