Go to the documentation of this file.
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
613 #ifdef __PCL_BUILDING_PIXINSIGHT_APPLICATION
678 #endif // __PCL_Arguments_h
A dynamic array of command-line arguments.
const StringList & Items() const
double NumericValue() const
bool operator==(const Array< T, A > &x1, const Array< T, A > &x2) noexcept
StringList PCL_FUNC SearchDirectory(const String &filePath, bool recursive=false)
ArgumentList PCL_FUNC ExtractArguments(const StringList &argv, argument_item_mode mode=ArgumentItemMode::Ignore, ArgumentOptions options=ArgumentOptions())
Dynamic list of Unicode (UTF-16) strings.
String PCL_FUNC ReplaceEnvironmentVariables(const String &s)
Represents an ArgumentItemMode enumerated value.
String PCL_FUNC RecursiveDirSearchArgument()
String StringValue() const
void PCL_FUNC SetRecursiveDirSearchArgument(const String &id)
Argument(const String &argv, const StringList &items)
A combination of ArgumentOption flags.
Argument(const String &argv)
Argument(const char16_type *argv)
const_c_string c_str() const noexcept