aboutsummaryrefslogtreecommitdiff
path: root/CarpetDev/CarpetIOF5/src/physical_quantity.hh
blob: 38b670cb2865382bfee707cdfabe1090431bc859 (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
#ifndef PHYSICAL_QUANTITY_HH
#define PHYSICAL_QUANTITY_HH

#include <hdf5.h>

#include "coordinate_system.hh"



namespace CarpetIOF5 {
  
  namespace F5 {
    
    class physical_quantity_t {
      
      coordinate_system_t & m_coordinate_system;
      
      int const m_group;
      string m_name;
      
      hid_t m_hdf5_physical_quantity;
      
      physical_quantity_t ();
      physical_quantity_t (physical_quantity_t const &);
      physical_quantity_t operator= (physical_quantity_t const &);
      
    public:
      
      physical_quantity_t (coordinate_system_t & coordinate_system,
                           int group);
      
      virtual
      ~ physical_quantity_t ();
      
      coordinate_system_t &
      get_coordinate_system ()
        const;
      
      int
      get_group ()
        const;
      
      hid_t
      get_hdf5_physical_quantity ()
        const;
      
      void
      get_link_destination (string & filename,
                            string & objectname)
        const;
      
      virtual bool
      invariant ()
        const;
      
    };
    
  } // namespace F5

} // namespace CarpetIOF5

#endif  // #ifndef PHYSICAL_QUANTITY_HH