YATiSh
Yet Another TIme SHeet
yatishTypes.h
Go to the documentation of this file.
1 /********************************************************************
2  * Name: yatishTypes.h
3  * Purpose: A few 'typedef' common to yatishPDF and yatishPlot
4  * Author: Nicolas PĂ©renne (nicolas.perenne@eif-services.eu)
5  * Created: 2023-07-21
6  * Copyright: EIF-services (https://www.eif-services.eu/yatish)
7  * License: GPLv3
8  ********************************************************************/
9 
10 #ifndef YATISHTYPES_H
11 #define YATISHTYPES_H
12 
13 #include <map>
14 #include <vector>
15 
16 using namespace std;
17 
18 typedef map <string, unsigned long> Map4pie;
19 
21 struct RawRecord {
22  wxDateTime start, stop;
23  wxString client, project, task, tool;
24 };
25 typedef vector <RawRecord> RawData;
26 
29  wxDateTime weekCenter;
30  // various aggregates
31  wxTimeSpan timeTotal, timeMax, timeRangeMax;
34  // clusters (summing aggregate only)
35  double hours [3];
37 };
38 typedef vector <ProcessedRecord> ProcessedData;
39 
41 enum PlotType {
43  pieChart
44 };
45 
48  invalid = -1,
54 };
55 
63  none
64 };
65 
66 #endif
Element of typefined std:vector ProcessedData (yatishPlot.data).
Definition: yatishTypes.h:28
wxDateTime weekCenter
Definition: yatishTypes.h:29
double minutesAtimeslot
Definition: yatishTypes.h:33
wxTimeSpan timeMax
Definition: yatishTypes.h:31
Element of typefined std:vector RawData (yatishPlot.big_data).
Definition: yatishTypes.h:21
wxDateTime start
Definition: yatishTypes.h:22
wxString client
Definition: yatishTypes.h:23
ClusterType
Same order as yatishFrame::choiceCluster.
Definition: yatishTypes.h:58
@ taskClusters
Definition: yatishTypes.h:61
@ none
Definition: yatishTypes.h:63
@ projectClusters
Definition: yatishTypes.h:60
@ toolClusters
Definition: yatishTypes.h:62
@ clientClusters
Definition: yatishTypes.h:59
PlotType
Same order as yatishFrame::choiceChart.
Definition: yatishTypes.h:41
@ timeSeries
Definition: yatishTypes.h:42
@ pieChart
Definition: yatishTypes.h:43
vector< RawRecord > RawData
Definition: yatishTypes.h:25
vector< ProcessedRecord > ProcessedData
Definition: yatishTypes.h:38
map< string, unsigned long > Map4pie
Definition: yatishTypes.h:18
AggregateType
Same order as yatishFrame::choiceAggregate (except invalid of course).
Definition: yatishTypes.h:47
@ timeRangeMax
Definition: yatishTypes.h:52
@ daysWorked
Definition: yatishTypes.h:50
@ minutesAtimeslot
Definition: yatishTypes.h:53
@ invalid
Definition: yatishTypes.h:48
@ hoursTotal
Definition: yatishTypes.h:49
@ hoursAdayMax
Definition: yatishTypes.h:51