38OksSystem::Path::operator std::string()
const {
58 std::string rest = path_list;
59 while(! rest.empty()) {
63 if(semi_colon==std::string::npos) {
67 name = rest.substr(0,semi_colon);
68 rest = rest.substr(semi_colon+1);
90 stream << pos->full_name();
100 std::ostringstream stream;
114 if (child.
exists())
return child;
116 throw OksSystem::NotFoundIssue(
ERS_HERE, name.c_str() );
void operator<<(TraceStreamer &x, const ers::Issue &r)
Wrapper for file operations.
bool exists() const
does the file exist */
OksSystem::File child(const std::string &name) const
named child of the current directory */
Path list handling mechanism.
void parse_path_list(const std::string &path_list)
parse string containing path
OksSystem::File which(const std::string &name) const
resolve a name in the path
std::string to_string() const
converts path into a string
void add(const OksSystem::File &dir)
add a directory to the path
File::file_list_t m_directories
list of directories
void write_to(std::ostream &stream) const
displays the path in a stream
static const char PATH_SEPARATOR
char used as separator in strings (semi-colon)