mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
add io::directory_iterator
This commit is contained in:
parent
c3066eebd3
commit
347d76870a
13 changed files with 182 additions and 64 deletions
|
|
@ -127,6 +127,10 @@ namespace io {
|
|||
bool empty() const {
|
||||
return str.empty();
|
||||
}
|
||||
|
||||
bool emptyOrInvalid() const {
|
||||
return str.empty() || colonPos == std::string::npos;
|
||||
}
|
||||
private:
|
||||
/// @brief UTF-8 string contains entry_point:path or empty string
|
||||
std::string str;
|
||||
|
|
@ -135,4 +139,10 @@ namespace io {
|
|||
|
||||
void checkValid() const;
|
||||
};
|
||||
|
||||
class PathsGenerator {
|
||||
public:
|
||||
virtual ~PathsGenerator() = default;
|
||||
virtual bool next(path& dst) = 0;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue