StudyPlanner/doc/docu.md

36 lines
728 B
Markdown
Raw Normal View History

# Data strucures
Possible data structure layout
```C
typedef struct Subject{
char * name;
time_t * created;
time_t * deadline;
2024-12-09 21:12:41 +01:00
int priority;
} Subject;
2024-12-09 21:12:41 +01:00
typedef struct Event {
2024-12-09 21:12:41 +01:00
Subject subject;
time_t plannedStartTime;
time_t plannedEndTime;
}Event;
2024-12-09 21:12:41 +01:00
//to Ical
typedef struct DayPlan{
time_t date;
2024-12-09 21:12:41 +01:00
Event ** plan; //arr of event*
size_t planLen;//len of plan array
size_t planSize;//allocated space fro plan array
}DayPlan;
```
## Functionality
Day plan can either be crated from user input or read from file to continue previous day.
priority and available time are used to create dayplan which is exported as iCal
after task is completed and priorities are updated for next day and stored in file.