Stride Reference Manual  1.0
CalendarDataType.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "H5Cpp.h"
4 
5 using namespace H5;
6 
7 namespace stride {
9  static CompType getCompType() {
10  StrType str_type(0, H5T_VARIABLE);
11  CompType type_calendar(sizeof(CalendarDataType));
12  type_calendar.insertMember(H5std_string("day"), HOFFSET(CalendarDataType, m_day), PredType::NATIVE_HSIZE);
13  type_calendar.insertMember(H5std_string("date"), HOFFSET(CalendarDataType, m_date), str_type);
14 
15  return type_calendar;
16  }
17 
18  std::size_t m_day;
19  const char* m_date;
20 };
21 }
Time Dependent Person DataType.
Definition: NoBehaviour.h:17
static CompType getCompType()