Stride Reference Manual  1.0
PersonTIDataType.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "H5Cpp.h"
4 
5 using namespace H5;
6 
7 
11 namespace stride {
13  static CompType getCompType() {
14  CompType type_person_TI(sizeof(PersonTIDataType));
15 #define insertMemberTI(name, attribute, type) type_person_TI.insertMember(H5std_string(name), HOFFSET(PersonTIDataType, attribute), type)
16  insertMemberTI("id", m_id, PredType::NATIVE_UINT);
17  insertMemberTI("age", m_age, PredType::NATIVE_DOUBLE);
18  insertMemberTI("gender", m_gender, PredType::NATIVE_CHAR);
19  insertMemberTI("household_id", m_household_id, PredType::NATIVE_UINT);
20  insertMemberTI("school_id", m_school_id, PredType::NATIVE_UINT);
21  insertMemberTI("work_id", m_work_id, PredType::NATIVE_UINT);
22  insertMemberTI("prim_comm_id", m_prim_comm_id, PredType::NATIVE_UINT);
23  insertMemberTI("sec_comm_id", m_sec_comm_id, PredType::NATIVE_UINT);
24  insertMemberTI("start_infectiousness", m_start_infectiousness, PredType::NATIVE_UINT);
25  insertMemberTI("time_infectiousness", m_time_infectiousness, PredType::NATIVE_UINT);
26  insertMemberTI("start_symptomatic", m_start_symptomatic, PredType::NATIVE_UINT);
27  insertMemberTI("time_symptomatic", m_time_symptomatic, PredType::NATIVE_UINT);
28 #undef insertMemberTI
29 
30  return type_person_TI;
31  }
32 
33 
34  unsigned int m_id;
35  double m_age;
36  char m_gender;
37  unsigned int m_household_id;
38  unsigned int m_school_id;
39  unsigned int m_work_id;
40  unsigned int m_prim_comm_id;
41  unsigned int m_sec_comm_id;
42  unsigned int m_start_infectiousness;
43  unsigned int m_time_infectiousness;
44  unsigned int m_start_symptomatic;
45  unsigned int m_time_symptomatic;
46 };
47 }
Time Dependent Person DataType.
Definition: NoBehaviour.h:17
unsigned int m_time_infectiousness
unsigned int m_start_infectiousness
static CompType getCompType()
unsigned int m_start_symptomatic
#define insertMemberTI(name, attribute, type)