xtd 0.2.0
Loading...
Searching...
No Matches
search_option.h
Go to the documentation of this file.
1
4#pragma once
5#include "../enum.h"
6
8namespace xtd {
10 namespace io {
23 enum class search_option {
28 };
29 }
30}
31
33template<> 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};
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
search_option
Specifies whether to search the current directory, or the current directory and all subdirectories.
Definition search_option.h:23
@ all_directories
Includes the current directory and all its subdirectories in a search operation. This option includes...
@ top_directory_only
Includes only the current directory in a search operation.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:36