BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / terminal / ShellParameters.h
blobccbd2c3f0f8cba6e71730b930f0bb0b53816c01a
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SHELL_PARAMETERS_H
6 #define SHELL_PARAMETERS_H
9 #include <String.h>
12 class ShellParameters {
13 public:
14 ShellParameters(int argc,
15 const char* const* argv,
16 const BString& currentDirectory
17 = BString());
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);
31 int Encoding() const
32 { return fEncoding; }
34 private:
35 const char* const* fArguments;
36 int fArgumentCount;
37 BString fCurrentDirectory;
38 int fEncoding;
43 #endif // SHELL_PARAMETERS_H