filewriter.hh 437 Bytes
Newer Older
Praetorius, Simon's avatar
Praetorius, Simon committed
1
2
#pragma once

3
#include <optional>
Praetorius, Simon's avatar
Praetorius, Simon committed
4
5
#include <string>

Praetorius, Simon's avatar
Praetorius, Simon committed
6
7
#include <dune/vtk/forward.hh>

8
namespace Dune
Praetorius, Simon's avatar
Praetorius, Simon committed
9
10
11
12
13
14
15
{
  class FileWriter
  {
  public:
    /// Virtual destructor
    virtual ~FileWriter () = default;

16
    /// Write to file given by `filename` and (optionally) store additional data in `dataDir`
17
    virtual std::string write (std::string const& filename, std::optional<std::string> dataDir = {}) const = 0;
Praetorius, Simon's avatar
Praetorius, Simon committed
18
19
  };

20
} // end namespace Dune