acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
enumerator.h
1
// Created by camilo on 2022-03-13 19:38 <3ThomasBorregaardSorensen!!
2
// Mummy prepared - hinted that was sort of easy, lot of steps though :)
3
// Fish with Lemon, Tofu with premium soy sauce, grind ginger and chive,
4
// japanese rice, fried egg-plant, some see weed leafs and cola extra coffee.
5
#pragma once
6
7
8
namespace
file
9
{
10
11
12
class
CLASS_DECL_ACME enumerator :
13
virtual
public
::particle
14
{
15
16
public
:
17
18
19
enumerator() {}
20
~enumerator()
override
{}
21
22
23
//protected:
24
25
26
// //virtual bool _enumerates(::file::listing_base & listing) = 0;
27
28
29
// virtual bool _enumerate(listing_base & listing) = 0;
30
31
32
//public:
33
34
35
// returns true if it can do and have done enumeration for the
36
// source m_pathUser member in the listing.
37
// returns false the enumerator is not a enumerator for the
38
// source m_pathUser member in the listing.
39
// throws exception if listing enumeration fails for some reason.
40
virtual
bool
enumerate(
listing_base
& listing);
41
42
virtual
bool
list_base(string_array_base & stra, const ::scoped_string & scopedstr, ::file::e_flag eflag = ::file::e_flag_file_or_folder);
43
44
virtual
listing_base
get_folders(const ::scoped_string & scopedstr);
45
46
virtual ::file::listing_base folders(const ::file::path&
path
);
47
virtual ::file::listing_base files(const ::file::path&
path
);
48
virtual ::file::listing_base folders_and_files(const ::file::path&
path
);
49
50
//virtual bool enumerate(::file::listing_base & listing, const ::file::path & path, ::file::e_flag eflag = ::file::e_flag_none, enum_depth edepth = e_depth_none);
51
//virtual bool enumerate_pattern(::file::listing_base & listing, const ::file::path & path, const ::string_array_base & straPattern, ::file::e_flag eflag = ::file::e_flag_none, enum_depth edepth = e_depth_none);
52
53
54
};
55
56
57
}
// namespace file
58
59
60
file::listing_base
Definition
listing.h:33
file::path
Definition
path.h:52
file
Definition
filesystem.h:16
filesystem
filesystem
enumerator.h
Generated by
1.17.0