GCC Code Coverage Report


Directory: ./
File: tmp_project/PhoenixTex2Html/src/PTimeTable/PTimeTable.cpp
Date: 2025-03-24 18:12:43
Exec Total Coverage
Lines: 277 350 79.1%
Branches: 43 57 75.4%

Line Branch Exec Source
1 /***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5 ****************************************/
6
7
8
9
10 #include "PTimeTable.h"
11
12 ///Constructor of class PLatexSpeaker
13
5/5
✓ Branch 2 taken 91 times.
✓ Branch 5 taken 91 times.
✓ Branch 8 taken 91 times.
✓ Branch 11 taken 91 times.
✓ Branch 14 taken 91 times.
91 PLatexSpeaker::PLatexSpeaker(){
14
1/1
✓ Branch 1 taken 91 times.
91 initialisationPLatexSpeaker();
15 91 }
16
17 ///Copy Constructor of class PLatexSpeaker
18 /** @param other : PLatexSpeaker we want ot copy
19 */
20
5/5
✓ Branch 2 taken 110 times.
✓ Branch 5 taken 110 times.
✓ Branch 8 taken 110 times.
✓ Branch 11 taken 110 times.
✓ Branch 14 taken 110 times.
110 PLatexSpeaker::PLatexSpeaker(const PLatexSpeaker & other){
21
1/1
✓ Branch 1 taken 110 times.
110 copyPLatexSpeaker(other);
22 110 }
23
24 ///Destructor of class PLatexSpeaker
25 402 PLatexSpeaker::~PLatexSpeaker(){
26
27 }
28
29 ///Operator = of class PLatexSpeaker
30 /** @param other : PLatexSpeaker we want ot copy
31 * @return copied class PLatexSpeaker
32 */
33 52 PLatexSpeaker & PLatexSpeaker::operator = (const PLatexSpeaker & other){
34 52 copyPLatexSpeaker(other);
35 52 return *this;
36 }
37
38 ///Sets the name of the PLatexSpeaker
39 /** @param name : name of the PLatexSpeaker
40 */
41 void PLatexSpeaker::setName(const PLatexObj & name){
42 p_name = name;
43 }
44
45 ///Sets the title of the PLatexSpeaker
46 /** @param title : title of the PLatexSpeaker
47 */
48 void PLatexSpeaker::setTitle(const PLatexObj & title){
49 p_title = title;
50 }
51
52 ///Sets the label of the PLatexSpeaker
53 /** @param label : label of the PLatexSpeaker
54 */
55 39 void PLatexSpeaker::setLabel(const PString & label){
56 39 p_label = label;
57 39 }
58
59 ///Sets the job of the PLatexSpeaker
60 /** @param job : job of the PLatexSpeaker
61 */
62 void PLatexSpeaker::setJob(const PLatexObj & job){
63 p_job = job;
64 }
65
66 ///Sets the affiliation of the PLatexSpeaker
67 /** @param affiliation : affiliation of the PLatexSpeaker
68 */
69 void PLatexSpeaker::setAffiliation(const PLatexObj & affiliation){
70 p_affiliation = affiliation;
71 }
72
73 ///Sets the description of the PLatexSpeaker
74 /** @param description : description of the PLatexSpeaker
75 */
76 void PLatexSpeaker::setDescription(const PLatexObj & description){
77 p_description = description;
78 }
79
80 ///Gets the name of the PLatexSpeaker
81 /** @return name of the PLatexSpeaker
82 */
83 423 const PLatexObj & PLatexSpeaker::getName() const{
84 423 return p_name;
85 }
86
87 ///Gets the name of the PLatexSpeaker
88 /** @return name of the PLatexSpeaker
89 */
90 39 PLatexObj & PLatexSpeaker::getName(){
91 39 return p_name;
92 }
93
94 ///Gets the title of the PLatexSpeaker
95 /** @return title of the PLatexSpeaker
96 */
97 69 const PLatexObj & PLatexSpeaker::getTitle() const{
98 69 return p_title;
99 }
100
101 ///Gets the title of the PLatexSpeaker
102 /** @return title of the PLatexSpeaker
103 */
104 39 PLatexObj & PLatexSpeaker::getTitle(){
105 39 return p_title;
106 }
107
108 ///Gets the label of the PLatexSpeaker
109 /** @return label of the PLatexSpeaker
110 */
111 91 const PString & PLatexSpeaker::getLabel() const{
112 91 return p_label;
113 }
114
115 ///Gets the label of the PLatexSpeaker
116 /** @return label of the PLatexSpeaker
117 */
118 PString & PLatexSpeaker::getLabel(){
119 return p_label;
120 }
121
122 ///Gets the job of the PLatexSpeaker
123 /** @return job of the PLatexSpeaker
124 */
125 78 const PLatexObj & PLatexSpeaker::getJob() const{
126 78 return p_job;
127 }
128
129 ///Gets the job of the PLatexSpeaker
130 /** @return job of the PLatexSpeaker
131 */
132 39 PLatexObj & PLatexSpeaker::getJob(){
133 39 return p_job;
134 }
135
136 ///Gets the affiliation of the PLatexSpeaker
137 /** @return affiliation of the PLatexSpeaker
138 */
139 78 const PLatexObj & PLatexSpeaker::getAffiliation() const{
140 78 return p_affiliation;
141 }
142
143 ///Gets the affiliation of the PLatexSpeaker
144 /** @return affiliation of the PLatexSpeaker
145 */
146 39 PLatexObj & PLatexSpeaker::getAffiliation(){
147 39 return p_affiliation;
148 }
149
150 ///Gets the description of the PLatexSpeaker
151 /** @return description of the PLatexSpeaker
152 */
153 42 const PLatexObj & PLatexSpeaker::getDescription() const{
154 42 return p_description;
155 }
156
157 ///Gets the description of the PLatexSpeaker
158 /** @return description of the PLatexSpeaker
159 */
160 39 PLatexObj & PLatexSpeaker::getDescription(){
161 39 return p_description;
162 }
163
164 ///Copy Function of class PLatexSpeaker
165 /** @param other : PLatexSpeaker we want ot copy
166 */
167 162 void PLatexSpeaker::copyPLatexSpeaker(const PLatexSpeaker & other){
168 162 p_name = other.p_name;
169 162 p_title = other.p_title;
170 162 p_label = other.p_label;
171 162 p_job = other.p_job;
172 162 p_affiliation = other.p_affiliation;
173 162 p_description = other.p_description;
174 162 }
175
176 ///Initialisation Function of class PLatexSpeaker
177 91 void PLatexSpeaker::initialisationPLatexSpeaker(){
178 91 p_label = "";
179 91 }
180
181 ///Constructor of class PLatexDate
182 3740 PLatexDate::PLatexDate(){
183 3740 initialisationPLatexDate();
184 3740 }
185
186 ///Copy Constructor of class PLatexDate
187 /** @param other : PLatexDate we want ot copy
188 */
189 106 PLatexDate::PLatexDate(const PLatexDate & other){
190 106 copyPLatexDate(other);
191 106 }
192
193 ///Destructor of class PLatexDate
194 7692 PLatexDate::~PLatexDate(){
195
196 }
197
198 ///Operator = of class PLatexDate
199 /** @param other : PLatexDate we want ot copy
200 * @return copied class PLatexDate
201 */
202 3606 PLatexDate & PLatexDate::operator = (const PLatexDate & other){
203 3606 copyPLatexDate(other);
204 3606 return *this;
205 }
206
207 ///Sets the year of the PLatexDate
208 /** @param year : year of the PLatexDate
209 */
210 59 void PLatexDate::setYear(size_t year){
211 59 p_year = year;
212 59 }
213
214 ///Sets the month of the PLatexDate
215 /** @param month : month of the PLatexDate
216 */
217 59 void PLatexDate::setMonth(size_t month){
218 59 p_month = month;
219 59 }
220
221 ///Sets the day of the PLatexDate
222 /** @param day : day of the PLatexDate
223 */
224 59 void PLatexDate::setDay(size_t day){
225 59 p_day = day;
226 59 }
227
228 ///Gets the year of the PLatexDate
229 /** @return year of the PLatexDate
230 */
231 1983 size_t PLatexDate::getYear() const{
232 1983 return p_year;
233 }
234
235 ///Gets the year of the PLatexDate
236 /** @return year of the PLatexDate
237 */
238 226 size_t & PLatexDate::getYear(){
239 226 return p_year;
240 }
241
242 ///Gets the month of the PLatexDate
243 /** @return month of the PLatexDate
244 */
245 1983 size_t PLatexDate::getMonth() const{
246 1983 return p_month;
247 }
248
249 ///Gets the month of the PLatexDate
250 /** @return month of the PLatexDate
251 */
252 226 size_t & PLatexDate::getMonth(){
253 226 return p_month;
254 }
255
256 ///Gets the day of the PLatexDate
257 /** @return day of the PLatexDate
258 */
259 1983 size_t PLatexDate::getDay() const{
260 1983 return p_day;
261 }
262
263 ///Gets the day of the PLatexDate
264 /** @return day of the PLatexDate
265 */
266 277 size_t & PLatexDate::getDay(){
267 277 return p_day;
268 }
269
270 ///Copy Function of class PLatexDate
271 /** @param other : PLatexDate we want ot copy
272 */
273 3712 void PLatexDate::copyPLatexDate(const PLatexDate & other){
274 3712 p_year = other.p_year;
275 3712 p_month = other.p_month;
276 3712 p_day = other.p_day;
277 3712 }
278
279 ///Initialisation Function of class PLatexDate
280 3740 void PLatexDate::initialisationPLatexDate(){
281 3740 p_year = 0lu;
282 3740 p_month = 0lu;
283 3740 p_day = 0lu;
284 3740 }
285
286 ///Constructor of class PLatexTime
287 14343 PLatexTime::PLatexTime(){
288 14343 initialisationPLatexTime();
289 14343 }
290
291 ///Copy Constructor of class PLatexTime
292 /** @param other : PLatexTime we want ot copy
293 */
294 76 PLatexTime::PLatexTime(const PLatexTime & other){
295 76 copyPLatexTime(other);
296 76 }
297
298 ///Destructor of class PLatexTime
299 28838 PLatexTime::~PLatexTime(){
300
301 }
302
303 ///Operator = of class PLatexTime
304 /** @param other : PLatexTime we want ot copy
305 * @return copied class PLatexTime
306 */
307 13296 PLatexTime & PLatexTime::operator = (const PLatexTime & other){
308 13296 copyPLatexTime(other);
309 13296 return *this;
310 }
311
312 ///Sets the hour of the PLatexTime
313 /** @param hour : hour of the PLatexTime
314 */
315 513 void PLatexTime::setHour(size_t hour){
316 513 p_hour = hour;
317 513 }
318
319 ///Sets the minute of the PLatexTime
320 /** @param minute : minute of the PLatexTime
321 */
322 723 void PLatexTime::setMinute(size_t minute){
323 723 p_minute = minute;
324 723 }
325
326 ///Gets the hour of the PLatexTime
327 /** @return hour of the PLatexTime
328 */
329 4825 size_t PLatexTime::getHour() const{
330 4825 return p_hour;
331 }
332
333 ///Gets the hour of the PLatexTime
334 /** @return hour of the PLatexTime
335 */
336 837 size_t & PLatexTime::getHour(){
337 837 return p_hour;
338 }
339
340 ///Gets the minute of the PLatexTime
341 /** @return minute of the PLatexTime
342 */
343 4384 size_t PLatexTime::getMinute() const{
344 4384 return p_minute;
345 }
346
347 ///Gets the minute of the PLatexTime
348 /** @return minute of the PLatexTime
349 */
350 691 size_t & PLatexTime::getMinute(){
351 691 return p_minute;
352 }
353
354 ///Copy Function of class PLatexTime
355 /** @param other : PLatexTime we want ot copy
356 */
357 13372 void PLatexTime::copyPLatexTime(const PLatexTime & other){
358 13372 p_hour = other.p_hour;
359 13372 p_minute = other.p_minute;
360 13372 }
361
362 ///Initialisation Function of class PLatexTime
363 14343 void PLatexTime::initialisationPLatexTime(){
364 14343 p_hour = 0lu;
365 14343 p_minute = 0lu;
366 14343 }
367
368 ///Constructor of class PTimeTableBlock
369
11/11
✓ Branch 2 taken 1069 times.
✓ Branch 5 taken 1069 times.
✓ Branch 9 taken 1069 times.
✓ Branch 12 taken 1069 times.
✓ Branch 15 taken 1069 times.
✓ Branch 18 taken 1069 times.
✓ Branch 21 taken 1069 times.
✓ Branch 24 taken 1069 times.
✓ Branch 27 taken 1069 times.
✓ Branch 30 taken 1069 times.
✓ Branch 33 taken 1069 times.
1069 PTimeTableBlock::PTimeTableBlock(){
370
1/1
✓ Branch 1 taken 1069 times.
1069 initialisationPTimeTableBlock();
371 1069 }
372
373 ///Copy Constructor of class PTimeTableBlock
374 /** @param other : PTimeTableBlock we want ot copy
375 */
376
11/11
✓ Branch 2 taken 2225 times.
✓ Branch 5 taken 2225 times.
✓ Branch 9 taken 2225 times.
✓ Branch 12 taken 2225 times.
✓ Branch 15 taken 2225 times.
✓ Branch 18 taken 2225 times.
✓ Branch 21 taken 2225 times.
✓ Branch 24 taken 2225 times.
✓ Branch 27 taken 2225 times.
✓ Branch 30 taken 2225 times.
✓ Branch 33 taken 2225 times.
2225 PTimeTableBlock::PTimeTableBlock(const PTimeTableBlock & other){
377
1/1
✓ Branch 1 taken 2225 times.
2225 copyPTimeTableBlock(other);
378 2225 }
379
380 ///Destructor of class PTimeTableBlock
381 6588 PTimeTableBlock::~PTimeTableBlock(){
382
383 }
384
385 ///Operator = of class PTimeTableBlock
386 /** @param other : PTimeTableBlock we want ot copy
387 * @return copied class PTimeTableBlock
388 */
389 666 PTimeTableBlock & PTimeTableBlock::operator = (const PTimeTableBlock & other){
390 666 copyPTimeTableBlock(other);
391 666 return *this;
392 }
393
394 ///Sets the mainUrl of the PTimeTableBlock
395 /** @param mainUrl : mainUrl of the PTimeTableBlock
396 */
397 554 void PTimeTableBlock::setMainUrl(const PString & mainUrl){
398 554 p_mainUrl = mainUrl;
399 554 }
400
401 ///Sets the title of the PTimeTableBlock
402 /** @param title : title of the PTimeTableBlock
403 */
404 void PTimeTableBlock::setTitle(const PLatexObj & title){
405 p_title = title;
406 }
407
408 ///Sets the weekTitle of the PTimeTableBlock
409 /** @param weekTitle : weekTitle of the PTimeTableBlock
410 */
411 void PTimeTableBlock::setWeekTitle(const PLatexObj & weekTitle){
412 p_weekTitle = weekTitle;
413 }
414
415 ///Sets the vecSpeaker of the PTimeTableBlock
416 /** @param vecSpeaker : vecSpeaker of the PTimeTableBlock
417 */
418 277 void PTimeTableBlock::setVecSpeaker(const std::vector<PString> & vecSpeaker){
419 277 p_vecSpeaker = vecSpeaker;
420 277 }
421
422 ///Sets the invitation of the PTimeTableBlock
423 /** @param invitation : invitation of the PTimeTableBlock
424 */
425 277 void PTimeTableBlock::setInvitation(const PString & invitation){
426 277 p_invitation = invitation;
427 277 }
428
429 ///Sets the description of the PTimeTableBlock
430 /** @param description : description of the PTimeTableBlock
431 */
432 void PTimeTableBlock::setDescription(const PLatexObj & description){
433 p_description = description;
434 }
435
436 ///Sets the date of the PTimeTableBlock
437 /** @param date : date of the PTimeTableBlock
438 */
439 277 void PTimeTableBlock::setDate(const PLatexDate & date){
440 277 p_date = date;
441 277 }
442
443 ///Sets the beginTime of the PTimeTableBlock
444 /** @param beginTime : beginTime of the PTimeTableBlock
445 */
446 277 void PTimeTableBlock::setBeginTime(const PLatexTime & beginTime){
447 277 p_beginTime = beginTime;
448 277 }
449
450 ///Sets the endTime of the PTimeTableBlock
451 /** @param endTime : endTime of the PTimeTableBlock
452 */
453 277 void PTimeTableBlock::setEndTime(const PLatexTime & endTime){
454 277 p_endTime = endTime;
455 277 }
456
457 ///Sets the duration of the PTimeTableBlock
458 /** @param duration : duration of the PTimeTableBlock
459 */
460 277 void PTimeTableBlock::setDuration(const PLatexTime & duration){
461 277 p_duration = duration;
462 277 }
463
464 ///Sets the questionTime of the PTimeTableBlock
465 /** @param questionTime : questionTime of the PTimeTableBlock
466 */
467 277 void PTimeTableBlock::setQuestionTime(const PLatexTime & questionTime){
468 277 p_questionTime = questionTime;
469 277 }
470
471 ///Sets the location of the PTimeTableBlock
472 /** @param location : location of the PTimeTableBlock
473 */
474 184 void PTimeTableBlock::setLocation(const PLatexObj & location){
475 184 p_location = location;
476 184 }
477
478 ///Sets the style of the PTimeTableBlock
479 /** @param style : style of the PTimeTableBlock
480 */
481 277 void PTimeTableBlock::setStyle(const PString & style){
482 277 p_style = style;
483 277 }
484
485 ///Sets the nbTimeRow of the PTimeTableBlock
486 /** @param nbTimeRow : nbTimeRow of the PTimeTableBlock
487 */
488 540 void PTimeTableBlock::setNbTimeRow(size_t nbTimeRow){
489 540 p_nbTimeRow = nbTimeRow;
490 540 }
491
492 ///Sets the isEmptyBlock of the PTimeTableBlock
493 /** @param isEmptyBlock : isEmptyBlock of the PTimeTableBlock
494 */
495 126 void PTimeTableBlock::setIsEmptyBlock(bool isEmptyBlock){
496 126 p_isEmptyBlock = isEmptyBlock;
497 126 }
498
499 ///Gets the mainUrl of the PTimeTableBlock
500 /** @return mainUrl of the PTimeTableBlock
501 */
502 1308 const PString & PTimeTableBlock::getMainUrl() const{
503 1308 return p_mainUrl;
504 }
505
506 ///Gets the mainUrl of the PTimeTableBlock
507 /** @return mainUrl of the PTimeTableBlock
508 */
509 277 PString & PTimeTableBlock::getMainUrl(){
510 277 return p_mainUrl;
511 }
512
513 ///Gets the title of the PTimeTableBlock
514 /** @return title of the PTimeTableBlock
515 */
516 2545 const PLatexObj & PTimeTableBlock::getTitle() const{
517 2545 return p_title;
518 }
519
520 ///Gets the title of the PTimeTableBlock
521 /** @return title of the PTimeTableBlock
522 */
523 277 PLatexObj & PTimeTableBlock::getTitle(){
524 277 return p_title;
525 }
526
527 ///Gets the weekTitle of the PTimeTableBlock
528 /** @return weekTitle of the PTimeTableBlock
529 */
530 283 const PLatexObj & PTimeTableBlock::getWeekTitle() const{
531 283 return p_weekTitle;
532 }
533
534 ///Gets the weekTitle of the PTimeTableBlock
535 /** @return weekTitle of the PTimeTableBlock
536 */
537 277 PLatexObj & PTimeTableBlock::getWeekTitle(){
538 277 return p_weekTitle;
539 }
540
541 ///Gets the vecSpeaker of the PTimeTableBlock
542 /** @return vecSpeaker of the PTimeTableBlock
543 */
544 2553 const std::vector<PString> & PTimeTableBlock::getVecSpeaker() const{
545 2553 return p_vecSpeaker;
546 }
547
548 ///Gets the vecSpeaker of the PTimeTableBlock
549 /** @return vecSpeaker of the PTimeTableBlock
550 */
551 std::vector<PString> & PTimeTableBlock::getVecSpeaker(){
552 return p_vecSpeaker;
553 }
554
555 ///Gets the invitation of the PTimeTableBlock
556 /** @return invitation of the PTimeTableBlock
557 */
558 3189 const PString & PTimeTableBlock::getInvitation() const{
559 3189 return p_invitation;
560 }
561
562 ///Gets the invitation of the PTimeTableBlock
563 /** @return invitation of the PTimeTableBlock
564 */
565 PString & PTimeTableBlock::getInvitation(){
566 return p_invitation;
567 }
568
569 ///Gets the description of the PTimeTableBlock
570 /** @return description of the PTimeTableBlock
571 */
572 225 const PLatexObj & PTimeTableBlock::getDescription() const{
573 225 return p_description;
574 }
575
576 ///Gets the description of the PTimeTableBlock
577 /** @return description of the PTimeTableBlock
578 */
579 277 PLatexObj & PTimeTableBlock::getDescription(){
580 277 return p_description;
581 }
582
583 ///Gets the date of the PTimeTableBlock
584 /** @return date of the PTimeTableBlock
585 */
586 1797 const PLatexDate & PTimeTableBlock::getDate() const{
587 1797 return p_date;
588 }
589
590 ///Gets the date of the PTimeTableBlock
591 /** @return date of the PTimeTableBlock
592 */
593 277 PLatexDate & PTimeTableBlock::getDate(){
594 277 return p_date;
595 }
596
597 ///Gets the beginTime of the PTimeTableBlock
598 /** @return beginTime of the PTimeTableBlock
599 */
600 1362 const PLatexTime & PTimeTableBlock::getBeginTime() const{
601 1362 return p_beginTime;
602 }
603
604 ///Gets the beginTime of the PTimeTableBlock
605 /** @return beginTime of the PTimeTableBlock
606 */
607 950 PLatexTime & PTimeTableBlock::getBeginTime(){
608 950 return p_beginTime;
609 }
610
611 ///Gets the endTime of the PTimeTableBlock
612 /** @return endTime of the PTimeTableBlock
613 */
614 1902 const PLatexTime & PTimeTableBlock::getEndTime() const{
615 1902 return p_endTime;
616 }
617
618 ///Gets the endTime of the PTimeTableBlock
619 /** @return endTime of the PTimeTableBlock
620 */
621 396 PLatexTime & PTimeTableBlock::getEndTime(){
622 396 return p_endTime;
623 }
624
625 ///Gets the duration of the PTimeTableBlock
626 /** @return duration of the PTimeTableBlock
627 */
628 const PLatexTime & PTimeTableBlock::getDuration() const{
629 return p_duration;
630 }
631
632 ///Gets the duration of the PTimeTableBlock
633 /** @return duration of the PTimeTableBlock
634 */
635 277 PLatexTime & PTimeTableBlock::getDuration(){
636 277 return p_duration;
637 }
638
639 ///Gets the questionTime of the PTimeTableBlock
640 /** @return questionTime of the PTimeTableBlock
641 */
642 const PLatexTime & PTimeTableBlock::getQuestionTime() const{
643 return p_questionTime;
644 }
645
646 ///Gets the questionTime of the PTimeTableBlock
647 /** @return questionTime of the PTimeTableBlock
648 */
649 PLatexTime & PTimeTableBlock::getQuestionTime(){
650 return p_questionTime;
651 }
652
653 ///Gets the location of the PTimeTableBlock
654 /** @return location of the PTimeTableBlock
655 */
656 822 const PLatexObj & PTimeTableBlock::getLocation() const{
657 822 return p_location;
658 }
659
660 ///Gets the location of the PTimeTableBlock
661 /** @return location of the PTimeTableBlock
662 */
663 554 PLatexObj & PTimeTableBlock::getLocation(){
664 554 return p_location;
665 }
666
667 ///Gets the style of the PTimeTableBlock
668 /** @return style of the PTimeTableBlock
669 */
670 1188 const PString & PTimeTableBlock::getStyle() const{
671 1188 return p_style;
672 }
673
674 ///Gets the style of the PTimeTableBlock
675 /** @return style of the PTimeTableBlock
676 */
677 PString & PTimeTableBlock::getStyle(){
678 return p_style;
679 }
680
681 ///Gets the nbTimeRow of the PTimeTableBlock
682 /** @return nbTimeRow of the PTimeTableBlock
683 */
684 792 size_t PTimeTableBlock::getNbTimeRow() const{
685 792 return p_nbTimeRow;
686 }
687
688 ///Gets the nbTimeRow of the PTimeTableBlock
689 /** @return nbTimeRow of the PTimeTableBlock
690 */
691 size_t & PTimeTableBlock::getNbTimeRow(){
692 return p_nbTimeRow;
693 }
694
695 ///Gets the isEmptyBlock of the PTimeTableBlock
696 /** @return isEmptyBlock of the PTimeTableBlock
697 */
698 1818 bool PTimeTableBlock::getIsEmptyBlock() const{
699 1818 return p_isEmptyBlock;
700 }
701
702 ///Gets the isEmptyBlock of the PTimeTableBlock
703 /** @return isEmptyBlock of the PTimeTableBlock
704 */
705 bool & PTimeTableBlock::getIsEmptyBlock(){
706 return p_isEmptyBlock;
707 }
708
709 ///Copy Function of class PTimeTableBlock
710 /** @param other : PTimeTableBlock we want ot copy
711 */
712 2891 void PTimeTableBlock::copyPTimeTableBlock(const PTimeTableBlock & other){
713 2891 p_mainUrl = other.p_mainUrl;
714 2891 p_title = other.p_title;
715 2891 p_weekTitle = other.p_weekTitle;
716 2891 p_vecSpeaker = other.p_vecSpeaker;
717 2891 p_invitation = other.p_invitation;
718 2891 p_description = other.p_description;
719 2891 p_date = other.p_date;
720 2891 p_beginTime = other.p_beginTime;
721 2891 p_endTime = other.p_endTime;
722 2891 p_duration = other.p_duration;
723 2891 p_questionTime = other.p_questionTime;
724 2891 p_location = other.p_location;
725 2891 p_style = other.p_style;
726 2891 p_nbTimeRow = other.p_nbTimeRow;
727 2891 p_isEmptyBlock = other.p_isEmptyBlock;
728 2891 }
729
730 ///Initialisation Function of class PTimeTableBlock
731 1069 void PTimeTableBlock::initialisationPTimeTableBlock(){
732 1069 p_mainUrl = "";
733 1069 p_invitation = "";
734 1069 p_style = "";
735 1069 p_nbTimeRow = 0lu;
736 1069 p_isEmptyBlock = false;
737 1069 }
738
739 ///Constructor of class PTimeTable
740
6/6
✓ Branch 2 taken 4 times.
✓ Branch 5 taken 4 times.
✓ Branch 8 taken 4 times.
✓ Branch 11 taken 4 times.
✓ Branch 14 taken 4 times.
✓ Branch 17 taken 4 times.
4 PTimeTable::PTimeTable(){
741
1/1
✓ Branch 1 taken 4 times.
4 initialisationPTimeTable();
742 4 }
743
744 ///Copy Constructor of class PTimeTable
745 /** @param other : PTimeTable we want ot copy
746 */
747 PTimeTable::PTimeTable(const PTimeTable & other){
748 copyPTimeTable(other);
749 }
750
751 ///Destructor of class PTimeTable
752 8 PTimeTable::~PTimeTable(){
753
754 }
755
756 ///Operator = of class PTimeTable
757 /** @param other : PTimeTable we want ot copy
758 * @return copied class PTimeTable
759 */
760 PTimeTable & PTimeTable::operator = (const PTimeTable & other){
761 copyPTimeTable(other);
762 return *this;
763 }
764
765 ///Sets the mainUrl of the PTimeTable
766 /** @param mainUrl : mainUrl of the PTimeTable
767 */
768 4 void PTimeTable::setMainUrl(const PString & mainUrl){
769 4 p_mainUrl = mainUrl;
770 4 }
771
772 ///Sets the name of the PTimeTable
773 /** @param name : name of the PTimeTable
774 */
775 void PTimeTable::setName(const PLatexObj & name){
776 p_name = name;
777 }
778
779 ///Sets the invitation of the PTimeTable
780 /** @param invitation : invitation of the PTimeTable
781 */
782 4 void PTimeTable::setInvitation(const PString & invitation){
783 4 p_invitation = invitation;
784 4 }
785
786 ///Sets the beginDate of the PTimeTable
787 /** @param beginDate : beginDate of the PTimeTable
788 */
789 4 void PTimeTable::setBeginDate(const PLatexDate & beginDate){
790 4 p_beginDate = beginDate;
791 4 }
792
793 ///Sets the endDate of the PTimeTable
794 /** @param endDate : endDate of the PTimeTable
795 */
796 4 void PTimeTable::setEndDate(const PLatexDate & endDate){
797 4 p_endDate = endDate;
798 4 }
799
800 ///Sets the firstDay of the PTimeTable
801 /** @param firstDay : firstDay of the PTimeTable
802 */
803 void PTimeTable::setFirstDay(const PString & firstDay){
804 p_firstDay = firstDay;
805 }
806
807 ///Sets the location of the PTimeTable
808 /** @param location : location of the PTimeTable
809 */
810 void PTimeTable::setLocation(const PLatexObj & location){
811 p_location = location;
812 }
813
814 ///Sets the vecBlock of the PTimeTable
815 /** @param vecBlock : vecBlock of the PTimeTable
816 */
817 void PTimeTable::setVecBlock(const std::vector<PTimeTableBlock> & vecBlock){
818 p_vecBlock = vecBlock;
819 }
820
821 ///Sets the vecSpeaker of the PTimeTable
822 /** @param vecSpeaker : vecSpeaker of the PTimeTable
823 */
824 2 void PTimeTable::setVecSpeaker(const std::vector<PLatexSpeaker> & vecSpeaker){
825 2 p_vecSpeaker = vecSpeaker;
826 2 }
827
828 ///Gets the mainUrl of the PTimeTable
829 /** @return mainUrl of the PTimeTable
830 */
831 const PString & PTimeTable::getMainUrl() const{
832 return p_mainUrl;
833 }
834
835 ///Gets the mainUrl of the PTimeTable
836 /** @return mainUrl of the PTimeTable
837 */
838 4 PString & PTimeTable::getMainUrl(){
839 4 return p_mainUrl;
840 }
841
842 ///Gets the name of the PTimeTable
843 /** @return name of the PTimeTable
844 */
845 4 const PLatexObj & PTimeTable::getName() const{
846 4 return p_name;
847 }
848
849 ///Gets the name of the PTimeTable
850 /** @return name of the PTimeTable
851 */
852 4 PLatexObj & PTimeTable::getName(){
853 4 return p_name;
854 }
855
856 ///Gets the invitation of the PTimeTable
857 /** @return invitation of the PTimeTable
858 */
859 10 const PString & PTimeTable::getInvitation() const{
860 10 return p_invitation;
861 }
862
863 ///Gets the invitation of the PTimeTable
864 /** @return invitation of the PTimeTable
865 */
866 PString & PTimeTable::getInvitation(){
867 return p_invitation;
868 }
869
870 ///Gets the beginDate of the PTimeTable
871 /** @return beginDate of the PTimeTable
872 */
873 const PLatexDate & PTimeTable::getBeginDate() const{
874 return p_beginDate;
875 }
876
877 ///Gets the beginDate of the PTimeTable
878 /** @return beginDate of the PTimeTable
879 */
880 4 PLatexDate & PTimeTable::getBeginDate(){
881 4 return p_beginDate;
882 }
883
884 ///Gets the endDate of the PTimeTable
885 /** @return endDate of the PTimeTable
886 */
887 const PLatexDate & PTimeTable::getEndDate() const{
888 return p_endDate;
889 }
890
891 ///Gets the endDate of the PTimeTable
892 /** @return endDate of the PTimeTable
893 */
894 PLatexDate & PTimeTable::getEndDate(){
895 return p_endDate;
896 }
897
898 ///Gets the firstDay of the PTimeTable
899 /** @return firstDay of the PTimeTable
900 */
901 const PString & PTimeTable::getFirstDay() const{
902 return p_firstDay;
903 }
904
905 ///Gets the firstDay of the PTimeTable
906 /** @return firstDay of the PTimeTable
907 */
908 PString & PTimeTable::getFirstDay(){
909 return p_firstDay;
910 }
911
912 ///Gets the location of the PTimeTable
913 /** @return location of the PTimeTable
914 */
915 const PLatexObj & PTimeTable::getLocation() const{
916 return p_location;
917 }
918
919 ///Gets the location of the PTimeTable
920 /** @return location of the PTimeTable
921 */
922 8 PLatexObj & PTimeTable::getLocation(){
923 8 return p_location;
924 }
925
926 ///Gets the vecBlock of the PTimeTable
927 /** @return vecBlock of the PTimeTable
928 */
929 4 const std::vector<PTimeTableBlock> & PTimeTable::getVecBlock() const{
930 4 return p_vecBlock;
931 }
932
933 ///Gets the vecBlock of the PTimeTable
934 /** @return vecBlock of the PTimeTable
935 */
936 281 std::vector<PTimeTableBlock> & PTimeTable::getVecBlock(){
937 281 return p_vecBlock;
938 }
939
940 ///Gets the vecSpeaker of the PTimeTable
941 /** @return vecSpeaker of the PTimeTable
942 */
943 6 const std::vector<PLatexSpeaker> & PTimeTable::getVecSpeaker() const{
944 6 return p_vecSpeaker;
945 }
946
947 ///Gets the vecSpeaker of the PTimeTable
948 /** @return vecSpeaker of the PTimeTable
949 */
950 4 std::vector<PLatexSpeaker> & PTimeTable::getVecSpeaker(){
951 4 return p_vecSpeaker;
952 }
953
954 ///Copy Function of class PTimeTable
955 /** @param other : PTimeTable we want ot copy
956 */
957 void PTimeTable::copyPTimeTable(const PTimeTable & other){
958 p_mainUrl = other.p_mainUrl;
959 p_name = other.p_name;
960 p_invitation = other.p_invitation;
961 p_beginDate = other.p_beginDate;
962 p_endDate = other.p_endDate;
963 p_firstDay = other.p_firstDay;
964 p_location = other.p_location;
965 p_vecBlock = other.p_vecBlock;
966 p_vecSpeaker = other.p_vecSpeaker;
967 }
968
969 ///Initialisation Function of class PTimeTable
970 4 void PTimeTable::initialisationPTimeTable(){
971 4 p_mainUrl = "";
972 4 p_invitation = "";
973 4 p_firstDay = "";
974 4 }
975
976