FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
SaveBundle.hpp
1
2//
3// $Id: HDF5Bundle.hpp,v 1.7 2007/10/24 04:45:26 werner Exp $
4//
6#ifndef __FIBER_HDF5BUNDLE_HPP
7#define __FIBER_HDF5BUNDLE_HPP "Created 27.02.2001 21:42:27 by werner"
8
9#include "FiberIOHDF5DllApi.h"
10#include <bundle/Bundle.hpp>
11#include <memcore/Persistencer.hpp>
12
13#include "HDF5Saver.hpp"
14#include "HDF5Binder.hpp"
15#include "H5File.hpp"
16
17#include <bundle/Occurrence.hpp>
18#include <bundle/StorageTransformations.hpp>
19
20namespace Fiber
21{
22namespace FiberIO
23{
24namespace HDF5
25{
26
27 using std::list;
28 using std::string;
29 using namespace MemCore;
30
34template<>
35class FiberIOHDF5_API HDF5Saver<Bundle> : public Interface<::Fiber::HDF5>
36{
37public:
38 /*
39 if return string is non-empty then some error happened
40 */
41static string save_with_errormsg(const Bundle&B, const string&filename,
42 const RefPtr<LoaderProgress>&SaveProgress,
43 const RefPtr<StringList>&SaveableGridNames,
46
47 bool apply_const(const Intercube&I, const RefPtr<InterfaceIterationParameter>&) override;
48
50};
51
52template<>
53struct FiberIOHDF5_API HDF5Saver<Slice> : EvolutionIterator<Slice>
54{
55 RefPtr<H5File> myFile;
56 RefPtr<Bundle> myBundle;
57 RefPtr<StringList> TheseGridsOnly;
59
60 const Occurrence<Bundle> &OB;
61 const RefPtr<Fiber::Binder> myBinder;
62
64 const RefPtr<Bundle>&BP,
69
70 bool apply(ParameterSet&P, Slice&S) override;
71};
72
73}}
74
85template <>
86class FiberIOHDF5_API HDF5Loader<Bundle> : public Loader<Bundle>
87{
88 RefPtr<Bundle> load(const RefPtr<LoaderParameters>&LP, const RefPtr<Bundle>&) override
89 {
90 return NullPtr();
91 }
92};
93
94} /* namespace Fiber */
95
96#endif /* __FIBER_HDF5BUNDLE_HPP */
_Expr< _ValFunClos< _ValArray, _Tp >, _Tp > apply(_Tp __func(_Tp)) const
basic_string< char > string
The main entity holding all information.
Definition Bundle.hpp:173
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Definition HDF5Saver.hpp:32
Definition ParameterSpace.hpp:49
Information per time slice, mainly a set of Grid objects that are accessed via GridID objects.
Definition Slice.hpp:36
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
std::nullptr_t NullPtr
Definition HDF5Saver.hpp:24