dune-fem 2.8.0
Loading...
Searching...
No Matches
io.hh
Go to the documentation of this file.
1#ifndef DUNE_FEM_IO_HH
2#define DUNE_FEM_IO_HH
3
4#include <iostream>
5
6namespace Dune
7{
8
9 namespace Fem
10 {
11
18 bool createDirectory ( const std::string &name );
19
26 bool fileExists ( const std::string &name );
27
34 bool directoryExists ( const std::string &name );
35
45 std::string executeCommand ( const std::string &command );
46
47 } // namespace Fem
48
49} // namespace Dune
50
51#endif // #ifndef DUNE_FEM_IO_HH
Definition: bindguard.hh:11
bool fileExists(const std::string &name)
check whether a file exists
Definition: io.cc:51
bool createDirectory(const std::string &inName)
create a directory
Definition: io.cc:19
std::string executeCommand(const std::string &command)
executes a command and return the output
Definition: io.cc:70
bool directoryExists(const std::string &name)
check whether a directory exists
Definition: io.cc:58