2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef SHELL_PARAMETERS_H
6 #define SHELL_PARAMETERS_H
12 class ShellParameters
{
14 ShellParameters(int argc
,
15 const char* const* argv
,
16 const BString
& currentDirectory
19 void SetArguments(int argc
, const char* const* argv
);
20 const char* const* Arguments() const
21 { return fArguments
; }
22 int ArgumentCount() const
23 { return fArgumentCount
; }
25 void SetCurrentDirectory(
26 const BString
& currentDirectory
);
27 const BString
& CurrentDirectory() const
28 { return fCurrentDirectory
; }
30 void SetEncoding(int encoding
);
35 const char* const* fArguments
;
37 BString fCurrentDirectory
;
43 #endif // SHELL_PARAMETERS_H