add io::directory_iterator
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user