Stride Reference Manual  1.0
PersonTDDataType.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "H5Cpp.h"
4 
5 using namespace H5;
6 
11 namespace stride {
13  static CompType getCompType() {
14  CompType type_person_TD(sizeof(PersonTDDataType));
15 #define insertMemberTD(name, attribute, type) type_person_TD.insertMember(H5std_string(name), HOFFSET(PersonTDDataType, attribute), type)
16  insertMemberTD("participant", m_participant, PredType::NATIVE_HBOOL);
17  insertMemberTD("health_status", m_health_status, PredType::NATIVE_UINT);
18  insertMemberTD("disease_counter", m_disease_counter, PredType::NATIVE_UINT);
19  insertMemberTD("on_vacation", m_on_vacation, PredType::NATIVE_HBOOL);
20 #undef insertMemberTD
21 
22  return type_person_TD;
23  }
24 
26  unsigned int m_health_status;
27  unsigned int m_disease_counter;
29 };
30 }
Time Dependent Person DataType.
Definition: NoBehaviour.h:17
#define insertMemberTD(name, attribute, type)
static CompType getCompType()