Canoe
Comprehensive Atmosphere N' Ocean Engine
output_utils.hpp
Go to the documentation of this file.
1 #ifndef SRC_OUTPUTS_OUTPUT_UTILS_HPP_
2 #define SRC_OUTPUTS_OUTPUT_UTILS_HPP_
3 
4 // C/C++
5 #include <string>
6 #include <vector>
7 
8 // athena
9 #include <athena/athena.hpp>
10 
11 int get_num_variables(std::string grid, AthenaArray<Real> const& data);
12 
14  protected:
15  using StringTable = std::vector<std::vector<std::string>>;
16 
19 
20  public:
22 
23  static MetadataTable const* GetInstance();
24 
25  static void Destroy();
26 
27  std::string GetGridType(std::string name) const;
28 
29  std::string GetUnits(std::string name) const;
30 
31  std::string GetLongName(std::string name) const;
32 
33  private:
35 
38 };
39 
40 #endif // SRC_OUTPUTS_OUTPUT_UTILS_HPP_
MetadataTable()
Protected ctor access thru static member function Instance.
static MetadataTable const * GetInstance()
static MetadataTable * myptr_
Pointer to the single MetadataTable instance.
std::vector< std::vector< std::string > > StringTable
std::string GetLongName(std::string name) const
StringTable table_
static void Destroy()
std::string GetGridType(std::string name) const
std::string GetUnits(std::string name) const
int get_num_variables(std::string grid, AthenaArray< Real > const &data)