// This file contains global declarations for the class time_slot #ifndef TIME_SLOT_H #define TIME_SLOT_H #define MAX_NAME_LEN 32 struct time_slot_info { int slot_unique_id; char name[MAX_NAME_LEN]; time_t start; time_t finish; }; class time_slot { private: int slot_unique_id; // 0 means that this structure has no values yet char name[MAX_NAME_LEN]; time_t start; time_t finish; public: time_slot(); time_slot(const time_slot_info new_info); ~time_slot(); time_slot_info get(); int update(const time_slot_info new_info); }; #endif