xtd 0.2.0
search_option.h
Go to the documentation of this file.
1 #pragma once
5 #include "../enum.h"
6 
8 namespace xtd {
10  namespace io {
23  enum class search_option {
27  all_directories = 1,
28  };
29  }
30 }
31 
33 template<> struct xtd::enum_register<xtd::io::search_option> {
34  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::io::search_option> {{xtd::io::search_option::top_directory_only, "top_directory_only"}, {xtd::io::search_option::all_directories, "all_directories"}};}
35 };
search_option
Specifies whether to search the current directory, or the current directory and all subdirectories...
Definition: search_option.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Includes the current directory and all its subdirectories in a search operation. This option includes...
Includes only the current directory in a search operation.
Provides the registration struct for enumerations.
Definition: enum_register.h:36