Logo MTL4
Classes | Functions
mtl::io Namespace Reference

Namespace for I/O operations. More...

Classes

class  matrix_market_istream
 Input file stream for files in matrix market format. More...
class  read_filter
 Utility to filter entries in the read process. More...

Functions

std::string join (std::string directory, std::string file)
 Join the directory and file.
std::string directory_name (std::string s)
 Directory name in s that is everything before last slash.
std::string file_name (std::string s)
 File name in s that is everything after last slash.

Detailed Description

Namespace for I/O operations.


Function Documentation

std::string mtl::io::join ( std::string  directory,
std::string  file 
) [inline]

Join the directory and file.

It concatenates both with the os-specific slash unless directory is empty, then only file is returned


mtl::io Namespace Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Gen. with rev. 7542 on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.