52 #ifndef __PCL_Arguments_h
53 #define __PCL_Arguments_h
212 Parse( argv.
c_str() );
251 if (
id == x.id && type == x.type )
253 if ( IsLiteral() || !IsValid() )
256 return asNumeric == x.asNumeric;
258 return asString == x.asString;
260 return asSwitch == x.asSwitch;
262 return asItems == x.asItems;
272 return type != invalid_arg;
302 return type == item_arg;
333 return type == literal_arg;
342 return type == switch_arg;
360 return type == numeric_arg;
378 return type == string_arg;
392 enum arg_type { invalid_arg = -1, item_arg, literal_arg, switch_arg, numeric_arg, string_arg };
439 namespace ArgumentItemMode
473 namespace ArgumentOption
477 AllowWildcards = 0x00000001,
478 NoPreviews = 0x00000002,
479 RecursiveDirSearch = 0x00000004,
480 RecursiveSearchArgs = 0x00000008,
494 #ifdef __PCL_BUILDING_PIXINSIGHT_APPLICATION
610 argument_item_mode mode = ArgumentItemMode::Ignore,
613 #ifdef __PCL_BUILDING_PIXINSIGHT_APPLICATION
A dynamic array of command-line arguments.
A combination of ArgumentOption flags.
const StringList & Items() const
Argument(const char16_type *argv)
Argument(const String &argv, const StringList &items)
String StringValue() const
double NumericValue() const
Argument(const Argument &)=default
Argument(const String &argv)
A type-safe collection of enumerated flags.
const_c_string c_str() const noexcept
Dynamic list of Unicode (UTF-16) strings.
Represents an ArgumentItemMode enumerated value.
String PCL_FUNC ReplaceEnvironmentVariables(const String &s)
void PCL_FUNC SetRecursiveDirSearchArgument(const String &id)
ArgumentList PCL_FUNC ExtractArguments(const StringList &argv, argument_item_mode mode=ArgumentItemMode::Ignore, ArgumentOptions options=ArgumentOptions())
String PCL_FUNC RecursiveDirSearchArgument()
StringList PCL_FUNC SearchDirectory(const String &filePath, bool recursive=false)
bool operator==(const Array< T, A > &x1, const Array< T, A > &x2) noexcept