aboutsummaryrefslogtreecommitdiff
path: root/CarpetDev/CarpetIOF5/src/simulation.hh
blob: 272b3385c1101c06cf071902c422c870b5b5db65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef SIMULATION_HH
#define SIMULATION_HH

#include <set>
#include <string>

#include <hdf5.h>

#include "cctk.h"

#include "timestep.hh"



namespace CarpetIOF5 {
  
  using std::string;
  
  namespace F5 {
  
    class simulation_t {
      
      timestep_t & m_timestep;
      
      string const m_name;
      
      hid_t m_hdf5_simulation;
      
      simulation_t ();
      simulation_t (simulation_t const &);
      simulation_t operator= (simulation_t const &);
      
    public:
      
      simulation_t (timestep_t & timestep,
                    char const * name);
      
      virtual
      ~ simulation_t ();
      
      timestep_t &
      get_timestep ()
        const;
      
      hid_t
      get_hdf5_simulation ()
        const;
      
      void
      get_link_destination (string & filename,
                            string & objectname)
        const;
      
      virtual bool
      invariant ()
        const;
    };
    
  } // namespace F5

} // namespace CarpetIOF5

#endif  // #ifndef SIMULATION_HH