vfs: check userland buffers before reading them.
[haiku.git] / src / apps / terminal / Arguments.h
blobbdc23c05ad0dc8f06257b0999c406ec4b55735d7
1 /*
2 * Copyright 2005, Ingo Weinhold, bonefish@users.sf.net.
3 * Distributed under the terms of the MIT License.
4 */
6 #ifndef ARGUMENTS_H
7 #define ARGUMENTS_H
9 #include <Rect.h>
11 class Arguments {
12 public:
13 Arguments(int defaultArgcNum, const char* const* defaultArgv);
14 ~Arguments();
16 void Parse(int argc, const char* const* argv);
18 BRect Bounds() const { return fBounds; }
19 const char* Title() const { return fTitle; }
20 bool StandardShell() const { return fStandardShell; }
21 bool FullScreen() const { return fFullScreen; }
22 bool UsageRequested() const { return fUsageRequested; }
23 void GetShellArguments(int& argc, const char* const*& argv) const;
25 private:
26 void _SetShellArguments(int argc, const char* const* argv);
28 bool fUsageRequested;
29 BRect fBounds;
30 bool fStandardShell;
31 bool fFullScreen;
32 int fShellArgumentCount;
33 const char** fShellArguments;
34 const char* fTitle;
38 #endif // ARGUMENTS_H