39 lines
769 B
C++
39 lines
769 B
C++
//
|
|
// h5_file.hpp
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 18.05.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef h5_file_hpp
|
|
#define h5_file_hpp
|
|
|
|
#include "hdf5.h"
|
|
#include "hdf5_hl.h"
|
|
#include <string>
|
|
|
|
class H5_File {
|
|
hid_t h5f;
|
|
hid_t h5g_particles;
|
|
hid_t h5g_populations;
|
|
|
|
std::string h5g_particles_path = "/Particles";
|
|
std::string h5g_populations_path = "/Populations";
|
|
|
|
public:
|
|
H5_File() {};
|
|
H5_File(std::string output_path);
|
|
hid_t *get_h5f() {return &h5f;}
|
|
std::string get_h5g_particles_path() {return h5g_particles_path;}
|
|
std::string get_h5g_populations_path() {return h5g_populations_path;}
|
|
|
|
private:
|
|
void create(std::string output_path);
|
|
//std::string get_file_name();
|
|
};
|
|
|
|
|
|
|
|
#endif /* h5_file_hpp */
|