LandscapeDNDC 1.37.0
mbe_legacyoutputmodel.h
1
9#ifndef MBE_LEGACYOUTPUTMODEL_H_
10#define MBE_LEGACYOUTPUTMODEL_H_
11
12#include "mbe_legacymodel.h"
13#include "ld_sinkinterface.h"
14
15/* print zero lines if no species exist */
16#define LDNDC_OUTPUT_HAVE_DUMMY_LINES 1
17
18#define LDNDC_OUTPUT_DEFINE_SINK_LAYOUT_DEFAULTS(__sink__,__name__) \
19 LDNDC_OUTPUT_DEFINE_SINK_LAYOUT(__sink__,__name__,this->get_metaflags())
20
21
22namespace ldndc {
23class LDNDC_API MBE_LegacyOutputModel : public MBE_LegacyModel
24{
25 protected:
26 MBE_LegacyOutputModel( MoBiLE_State * /*state*/,
27 cbm::io_kcomm_t * /*i/o*/, timemode_e /*timemode*/);
28 virtual ~MBE_LegacyOutputModel();
29
30 public:
31 lerr_t set_metaflags( ldndc::config_file_t const *,
32 lflags_t const & = RM_DEFAULTS /*predefines*/);
33 lflags_t get_metaflags() const;
34 bool separate_concurrent() const
35 { return this->m_sif.separate_concurrent(); }
36
37 void set_layernumber( int _seqnb)
38 { this->m_sif.set_layernumber( _seqnb); }
39
40 lerr_t write_fixed_record( ldndc::sink_handle_t * /*target sink*/,
41 void ** /*data record*/);
42 lerr_t write_fixed_zero_record(
43 ldndc::sink_handle_t * /*target sink*/);
44
45 private:
46 SinkInterface m_sif;
47};
48
49} /* namespace ldndc */
50
51#endif /* !MBE_LEGACYOUTPUTMODEL_H_ */
52
Spatially explicit groundwater model.
Definition: airchemistryput.h:15