Skip to main content

engage/generated/system/io/
filesystemenumerableiterator_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-io-filesystemenumerableiterator_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        io::iterator_1::{IIterator_1, Iterator_1},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/filesystemenumerableiterator_1/FileSystemEnumerableIterator_1.md"))]
14    #[::unity::class(namespace = "System.IO", name = "FileSystemEnumerableIterator`1")]
15    #[parent(crate::system::io::iterator_1::Iterator_1<T0>)]
16    #[parent(crate::system::object::Object)]
17    pub struct FileSystemEnumerableIterator_1<T0: ::unity::ClassIdentity> {
18        #[rename(name = "_resultHandler")]
19        pub result_handler: crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>,
20        #[rename(name = "searchStack")]
21        pub search_stack: crate::system::collections::generic::list_1::List_1<crate::system::io::directory::Directory_SearchData>,
22        #[rename(name = "searchData")]
23        pub search_data: crate::system::io::directory::Directory_SearchData,
24        #[rename(name = "searchCriteria")]
25        pub search_criteria: ::unity::Il2CppString,
26        #[rename(name = "needsParentPathDiscoveryDemand")]
27        pub needs_parent_path_discovery_demand: bool,
28        #[rename(name = "empty")]
29        pub empty: bool,
30        #[rename(name = "userPath")]
31        pub user_path: ::unity::Il2CppString,
32        #[rename(name = "searchOption")]
33        pub search_option: crate::system::io::searchoption::SearchOption,
34        #[rename(name = "fullPath")]
35        pub full_path: ::unity::Il2CppString,
36        #[rename(name = "normalizedSearchPath")]
37        pub normalized_search_path: ::unity::Il2CppString,
38        #[rename(name = "_checkHost")]
39        pub check_host: bool,
40    }
41}
42
43#[cfg(feature = "system-io-filesystemenumerableiterator_1-types")]
44pub use __types::*;
45
46#[cfg(feature = "system-io-filesystemenumerableiterator_1")]
47#[::unity::methods]
48impl<T0: ::unity::ClassIdentity> FileSystemEnumerableIterator_1<T0> {
49    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::io::searchoption::SearchOption, crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>, bool)` overload"]
50    #[method(name = ".ctor", args = 6)]
51    pub fn ctor(
52        self,
53        path: ::unity::Il2CppString,
54        original_user_path: ::unity::Il2CppString,
55        search_pattern: ::unity::Il2CppString,
56        search_option: crate::system::io::searchoption::SearchOption,
57        result_handler: crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>,
58        check_host: bool,
59    ) -> ();
60
61    #[doc = "`CommonInit()` overload"]
62    #[method(name = "CommonInit", args = 0)]
63    pub fn common_init(self) -> ();
64
65    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::io::searchoption::SearchOption, crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>, bool)` overload"]
66    #[method(name = ".ctor", args = 7)]
67    pub fn ctor_2(
68        self,
69        full_path: ::unity::Il2CppString,
70        normalized_search_path: ::unity::Il2CppString,
71        search_criteria: ::unity::Il2CppString,
72        user_path: ::unity::Il2CppString,
73        search_option: crate::system::io::searchoption::SearchOption,
74        result_handler: crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>,
75        check_host: bool,
76    ) -> ();
77
78    #[doc = "`Clone()` overload"]
79    #[method(name = "Clone", args = 0)]
80    pub fn clone(self) -> crate::system::io::iterator_1::Iterator_1<T0>;
81
82    #[doc = "`Dispose(bool)` overload"]
83    #[method(name = "Dispose", args = 1)]
84    pub fn dispose(self, disposing: bool) -> ();
85
86    #[doc = "`MoveNext()` overload"]
87    #[method(name = "MoveNext", args = 0)]
88    pub fn move_next(self) -> bool;
89
90    #[doc = "`HandleError(i32, ::unity::Il2CppString)` overload"]
91    #[method(name = "HandleError", args = 2)]
92    pub fn handle_error(self, hr: i32, path: ::unity::Il2CppString) -> ();
93
94    #[doc = "`AddSearchableDirsToStack(crate::system::io::directory::Directory_SearchData)` overload"]
95    #[method(name = "AddSearchableDirsToStack", args = 1)]
96    pub fn add_searchable_dirs_to_stack(self, local_search_data: crate::system::io::directory::Directory_SearchData) -> ();
97
98    #[doc = "`DoDemand(::unity::Il2CppString)` overload"]
99    #[method(name = "DoDemand", args = 1)]
100    pub fn do_demand(self, full_path_to_demand: ::unity::Il2CppString) -> ();
101
102    #[doc = "`NormalizeSearchPattern(::unity::Il2CppString)` overload"]
103    #[method(name = "NormalizeSearchPattern", args = 1)]
104    pub fn normalize_search_pattern(search_pattern: ::unity::Il2CppString) -> ::unity::Il2CppString;
105
106    #[doc = "`GetNormalizedSearchCriteria(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
107    #[method(name = "GetNormalizedSearchCriteria", args = 2)]
108    pub fn get_normalized_search_criteria(full_search_string: ::unity::Il2CppString, full_path_mod: ::unity::Il2CppString) -> ::unity::Il2CppString;
109
110    #[doc = "`GetFullSearchString(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
111    #[method(name = "GetFullSearchString", args = 2)]
112    pub fn get_full_search_string(full_path: ::unity::Il2CppString, search_pattern: ::unity::Il2CppString) -> ::unity::Il2CppString;
113}
114
115#[cfg(feature = "system-io-filesystemenumerableiterator_1")]
116impl<T0: ::unity::ClassIdentity> FileSystemEnumerableIterator_1<T0> {
117    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::io::searchoption::SearchOption, crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>, bool)` — overload selector"]
118    pub fn new(
119        path: ::unity::Il2CppString,
120        original_user_path: ::unity::Il2CppString,
121        search_pattern: ::unity::Il2CppString,
122        search_option: crate::system::io::searchoption::SearchOption,
123        result_handler: crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>,
124        check_host: bool,
125    ) -> Self {
126        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
127            panic!(
128                "{}
129::{}
130 failed to instantiate",
131                ::core::stringify!(FileSystemEnumerableIterator_1),
132                ::core::stringify!(new),
133            )
134        });
135        <Self as IFileSystemEnumerableIterator_1Methods<T0>>::ctor(
136            this,
137            path,
138            original_user_path,
139            search_pattern,
140            search_option,
141            result_handler,
142            check_host,
143        );
144        this
145    }
146
147    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::io::searchoption::SearchOption, crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>, bool)` — overload selector"]
148    pub fn new_2(
149        full_path: ::unity::Il2CppString,
150        normalized_search_path: ::unity::Il2CppString,
151        search_criteria: ::unity::Il2CppString,
152        user_path: ::unity::Il2CppString,
153        search_option: crate::system::io::searchoption::SearchOption,
154        result_handler: crate::system::io::searchresulthandler_1::SearchResultHandler_1<T0>,
155        check_host: bool,
156    ) -> Self {
157        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
158            panic!(
159                "{}
160::{}
161 failed to instantiate",
162                ::core::stringify!(FileSystemEnumerableIterator_1),
163                ::core::stringify!(new_2),
164            )
165        });
166        <Self as IFileSystemEnumerableIterator_1Methods<T0>>::ctor_2(
167            this,
168            full_path,
169            normalized_search_path,
170            search_criteria,
171            user_path,
172            search_option,
173            result_handler,
174            check_host,
175        );
176        this
177    }
178}
179
180#[cfg(feature = "system-io-filesystemenumerableiterator_1")]
181#[doc(hidden)]
182pub mod prelude {
183    pub use super::{FileSystemEnumerableIterator_1, IFileSystemEnumerableIterator_1, IFileSystemEnumerableIterator_1Methods};
184    #[cfg(feature = "system-io-iterator_1")]
185    pub use crate::system::io::iterator_1::IIterator_1Methods;
186    #[cfg(feature = "system-object")]
187    pub use crate::system::object::IObjectMethods;
188    pub use crate::system::{
189        io::iterator_1::{IIterator_1, Iterator_1},
190        object::IObject,
191    };
192}