ReFRACtor
hdf_file_generating.h
Go to the documentation of this file.
1 #ifndef HDF_FILE_GENERATING_H
2 #define HDF_FILE_GENERATING_H
3 #include "hdf_file.h"
4 #include <boost/shared_ptr.hpp>
5 
6 namespace FullPhysics {
7 /****************************************************************/
16 class HdfFileGenerating : public Printable<HdfFileGenerating> {
17 public:
18 //-----------------------------------------------------------------------
21 //-----------------------------------------------------------------------
22 
23  HdfFileGenerating(const std::string& Fname) : fname (Fname) {}
24  virtual ~HdfFileGenerating() { close(); }
25  void close();
26  HdfFile& hdf_file();
27  void abandon();
28  void print(std::ostream& Os) const;
29 private:
30  std::string fname;
32 };
33 }
34 #endif
HdfFileGenerating(const std::string &Fname)
Create a HDF file with the given name.
To avoid creating files when an error occurs, we create the file with the name ".generating" appended...
void abandon()
Abandon a file and clean it up.
void close()
Close a file, changing the name to the final name.
This is a Mixin for classes that can be printed.
Definition: printable.h:24
This class reads and writes a HDF5 file.
Definition: hdf_file.h:39
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
void print(std::ostream &Os) const

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:11