2 * Copyright 2007-2012, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _ARGUMENT_VECTOR_H
6 #define _ARGUMENT_VECTOR_H
9 #include <SupportDefs.h>
15 class ArgumentVector
{
20 UNTERMINATED_QUOTED_STRING
,
28 int32
ArgumentCount() const { return fCount
; }
29 const char* const* Arguments() const { return fArguments
; }
31 char** DetachArguments();
32 // Caller must free() -- it's all one big allocation at the
35 ParseError
Parse(const char* commandLine
,
36 const char** _errorLocation
= NULL
);
47 } // namespace BPrivate
50 using BPrivate::ArgumentVector
;
53 #endif // _ARGUMENT_VECTOR_H