theCore C++ embedded framework
ecl::fs::path_iter Class Reference

Path iterator. More...

#include </home/travis/build/forGGe/theCore/lib/fs/export/ecl/fs/path.hpp>

Public Types

using segment = std::pair< const char *, const char * >
 Alias to path segment. More...
 

Public Member Functions

 path_iter (const char *path)
 Constructs path iterator to be used with given path. More...
 
bool next (segment &seg)
 Gets next path segment. More...
 

Detailed Description

Path iterator.

Member Typedef Documentation

◆ segment

using ecl::fs::path_iter::segment = std::pair<const char *, const char *>

Alias to path segment.

First element of pair is the start of the segment, second element - the end of the segment.

Constructor & Destructor Documentation

◆ path_iter()

ecl::fs::path_iter::path_iter ( const char *  path)
inline

Constructs path iterator to be used with given path.

Parameters
[in]pathValid path, must not be null.

Member Function Documentation

◆ next()

bool ecl::fs::path_iter::next ( segment seg)
inline

Gets next path segment.

Parameters
[out]segNext path segment.
Return values
truePath segment found.
falseNo more path segments.

The documentation for this class was generated from the following file: