Chapter 2.1 : Basic types



Confiuration files use .ph5 format. This able to declare a Class which will use a Dataset as backend for storage/saving purpose.

Example :
1
2
3
4
5
6
7
8
9
10
11
///Table of values
TableVertex{
	///Event id
	size_t eventId;
	///Timestamp
	double timestamp;
	///Image
	Tensor(float, nbPixel) image;
	///Float value
	Tensor(float, nbValue, 2) matValue;
}


Simple columns are declared directly with C/C++ types :
  • float : floating point (4 Bytes)
  • double : floating point (8 Bytes)
  • char : character (1 Byte)
  • short : integer (2 Bytes)
  • int : integer (4 Bytes)
  • long : integer (8 Bytes)
  • unsigned char : unsigned character (1 Byte)
  • unsigned short : unsigned integer (2 Bytes)
  • unsigned int : unsigned integer (4 Bytes)
  • unsigned long : unsigned integer (8 Bytes)