18#ifndef LDNDC_INPUT_EVENT_GRAZE_H_
19#define LDNDC_INPUT_EVENT_GRAZE_H_
21#include "event/events/eventbase.h"
24#ifdef __this_event_name
25# undef __this_event_name
27#define __this_event_name graze
32struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
44 static char const * LIVESTOCK_NAMES[LIVESTOCK_CNT];
46 struct livestock_info_t
49 static livestock_info_t properties_from_type(
56 double excreta_carbon;
58 double excreta_nitrogen;
60 double urine_fraction;
62 static livestock_info_t
const LIVESTOCK_DEFAULTS[LIVESTOCK_CNT];
64 __event_attrib_class_name(__this_event_name)();
65 ~__event_attrib_class_name(__this_event_name)();
68 livestock_type_e type;
71 livestock_info_t properties;
78 double remains_relative;
80class CBM_API __event_class_name(__this_event_name) :
public Event
82 EVENT_COMMON_DECL(__this_event_name)
85 attributes_type::livestock_type_e livestock_type()
const {
return this->attribs_->type; }
86 char const * livestock_name()
89 if ( this->livestock_type() < attributes_type::LIVESTOCK_CNT)
91 return attributes_type::LIVESTOCK_NAMES[this->livestock_type()];
95 attributes_type::livestock_info_t
const & livestock_properties()
const
96 {
return this->attribs_->properties; }
98 double head_count()
const
99 {
return this->attribs_->head_count; }
100 bool have_livestock()
const
101 {
return this->head_count() > 0.0; }
102 double grazing_hours()
const
103 {
return this->attribs_->grazing_hours; }
104 double remains_relative()
const
105 {
return this->attribs_->remains_relative; }
Spatially explicit groundwater model.
Definition airchemistryput.h:21