equal
deleted
inserted
replaced
59 ExcludeProgramName |
59 ExcludeProgramName |
60 }; |
60 }; |
61 /** |
61 /** |
62 * Retrieves the command-line arguments for the current process. |
62 * Retrieves the command-line arguments for the current process. |
63 * With IncludeProgramName option returns result similar to argv/argc. |
63 * With IncludeProgramName option returns result similar to argv/argc. |
64 * With ExcludeProgramName option program name (the 1st element of command line) |
64 * With ExcludeProgramName option program name |
|
65 * (the 1st element of command line) |
65 * is excluded. |
66 * is excluded. |
66 */ |
67 */ |
67 tstring_array getCommandArgs(CommandArgProgramNameMode progNameMode = ExcludeProgramName); |
68 tstring_array getCommandArgs( |
|
69 CommandArgProgramNameMode progNameMode = ExcludeProgramName); |
68 |
70 |
69 /** |
71 /** |
70 * Returns value of environment variable with the given name. |
72 * Returns value of environment variable with the given name. |
71 * Throws exception if variable is not set or any other error occurred |
73 * Throws exception if variable is not set or any other error occurred |
72 * reading the value. |
74 * reading the value. |
77 * Returns value of environment variable with the given name. |
79 * Returns value of environment variable with the given name. |
78 * Returns value of 'defValue' parameter if variable is not set or any |
80 * Returns value of 'defValue' parameter if variable is not set or any |
79 * other error occurred reading the value. |
81 * other error occurred reading the value. |
80 */ |
82 */ |
81 tstring getEnvVariable(const std::nothrow_t&, const tstring& name, |
83 tstring getEnvVariable(const std::nothrow_t&, const tstring& name, |
82 const tstring& defValue=tstring()); |
84 const tstring& defValue=tstring()); |
83 |
85 |
84 /** |
86 /** |
85 * Returns 'true' if environment variable with the given name is set. |
87 * Returns 'true' if environment variable with the given name is set. |
86 */ |
88 */ |
87 bool isEnvVariableSet(const tstring& name); |
89 bool isEnvVariableSet(const tstring& name); |