GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: src/Representation/RenderProject.cpp Lines: 300 466 64.4 %
Date: 2023-10-11 10:52:07 Branches: 6 18 33.3 %

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 "RenderProject.h"
11
12
///Constructor of class ComputingCenter
13
7
ComputingCenter::ComputingCenter(){
14
7
	initialisationComputingCenter();
15
7
}
16
17
///Copy Constructor of class ComputingCenter
18
/**	@param other : ComputingCenter we want ot copy
19
*/
20
ComputingCenter::ComputingCenter(const ComputingCenter & other){
21
	copyComputingCenter(other);
22
}
23
24
///Destructor of class ComputingCenter
25
14
ComputingCenter::~ComputingCenter(){
26
27
}
28
29
///Operator = of class ComputingCenter
30
/**	@param other : ComputingCenter we want ot copy
31
 * 	@return copied class ComputingCenter
32
*/
33
ComputingCenter & ComputingCenter::operator = (const ComputingCenter & other){
34
	copyComputingCenter(other);
35
	return *this;
36
}
37
38
///Sets the computingCenterConnection of the ComputingCenter
39
/**	@param computingCenterConnection : computingCenterConnection of the ComputingCenter
40
*/
41
7
void ComputingCenter::setComputingCenterConnection(const std::string & computingCenterConnection){
42
7
	p_computingCenterConnection = computingCenterConnection;
43
7
}
44
45
///Sets the remoteWorkingDirectory of the ComputingCenter
46
/**	@param remoteWorkingDirectory : remoteWorkingDirectory of the ComputingCenter
47
*/
48
7
void ComputingCenter::setRemoteWorkingDirectory(const std::string & remoteWorkingDirectory){
49
7
	p_remoteWorkingDirectory = remoteWorkingDirectory;
50
7
}
51
52
///Sets the remoteContainerDirectory of the ComputingCenter
53
/**	@param remoteContainerDirectory : remoteContainerDirectory of the ComputingCenter
54
*/
55
7
void ComputingCenter::setRemoteContainerDirectory(const std::string & remoteContainerDirectory){
56
7
	p_remoteContainerDirectory = remoteContainerDirectory;
57
7
}
58
59
///Sets the notification of the ComputingCenter
60
/**	@param notification : notification of the ComputingCenter
61
*/
62
7
void ComputingCenter::setNotification(const std::string & notification){
63
7
	p_notification = notification;
64
7
}
65
66
///Sets the notifyUser of the ComputingCenter
67
/**	@param notifyUser : notifyUser of the ComputingCenter
68
*/
69
7
void ComputingCenter::setNotifyUser(const std::string & notifyUser){
70
7
	p_notifyUser = notifyUser;
71
7
}
72
73
///Gets the computingCenterConnection of the ComputingCenter
74
/**	@return computingCenterConnection of the ComputingCenter
75
*/
76
const std::string & ComputingCenter::getComputingCenterConnection() const{
77
	return p_computingCenterConnection;
78
}
79
80
///Gets the computingCenterConnection of the ComputingCenter
81
/**	@return computingCenterConnection of the ComputingCenter
82
*/
83
std::string & ComputingCenter::getComputingCenterConnection(){
84
	return p_computingCenterConnection;
85
}
86
87
///Gets the remoteWorkingDirectory of the ComputingCenter
88
/**	@return remoteWorkingDirectory of the ComputingCenter
89
*/
90
2
const std::string & ComputingCenter::getRemoteWorkingDirectory() const{
91
2
	return p_remoteWorkingDirectory;
92
}
93
94
///Gets the remoteWorkingDirectory of the ComputingCenter
95
/**	@return remoteWorkingDirectory of the ComputingCenter
96
*/
97
std::string & ComputingCenter::getRemoteWorkingDirectory(){
98
	return p_remoteWorkingDirectory;
99
}
100
101
///Gets the remoteContainerDirectory of the ComputingCenter
102
/**	@return remoteContainerDirectory of the ComputingCenter
103
*/
104
2
const std::string & ComputingCenter::getRemoteContainerDirectory() const{
105
2
	return p_remoteContainerDirectory;
106
}
107
108
///Gets the remoteContainerDirectory of the ComputingCenter
109
/**	@return remoteContainerDirectory of the ComputingCenter
110
*/
111
std::string & ComputingCenter::getRemoteContainerDirectory(){
112
	return p_remoteContainerDirectory;
113
}
114
115
///Gets the notification of the ComputingCenter
116
/**	@return notification of the ComputingCenter
117
*/
118
4
const std::string & ComputingCenter::getNotification() const{
119
4
	return p_notification;
120
}
121
122
///Gets the notification of the ComputingCenter
123
/**	@return notification of the ComputingCenter
124
*/
125
std::string & ComputingCenter::getNotification(){
126
	return p_notification;
127
}
128
129
///Gets the notifyUser of the ComputingCenter
130
/**	@return notifyUser of the ComputingCenter
131
*/
132
4
const std::string & ComputingCenter::getNotifyUser() const{
133
4
	return p_notifyUser;
134
}
135
136
///Gets the notifyUser of the ComputingCenter
137
/**	@return notifyUser of the ComputingCenter
138
*/
139
std::string & ComputingCenter::getNotifyUser(){
140
	return p_notifyUser;
141
}
142
143
///Copy Function of class ComputingCenter
144
/**	@param other : ComputingCenter we want ot copy
145
*/
146
void ComputingCenter::copyComputingCenter(const ComputingCenter & other){
147
	p_computingCenterConnection = other.p_computingCenterConnection;
148
	p_remoteWorkingDirectory = other.p_remoteWorkingDirectory;
149
	p_remoteContainerDirectory = other.p_remoteContainerDirectory;
150
	p_notification = other.p_notification;
151
	p_notifyUser = other.p_notifyUser;
152
}
153
154
///Initialisation Function of class ComputingCenter
155
7
void ComputingCenter::initialisationComputingCenter(){
156
7
	p_computingCenterConnection = "";
157
7
	p_remoteWorkingDirectory = "";
158
7
	p_remoteContainerDirectory = "";
159
7
	p_notification = "";
160
7
	p_notifyUser = "";
161
7
}
162
163
///Constructor of class Container
164
24
Container::Container(){
165
24
	initialisationContainer();
166
24
}
167
168
///Copy Constructor of class Container
169
/**	@param other : Container we want ot copy
170
*/
171
Container::Container(const Container & other){
172
	copyContainer(other);
173
}
174
175
///Destructor of class Container
176
48
Container::~Container(){
177
178
}
179
180
///Operator = of class Container
181
/**	@param other : Container we want ot copy
182
 * 	@return copied class Container
183
*/
184
14
Container & Container::operator = (const Container & other){
185
14
	copyContainer(other);
186
14
	return *this;
187
}
188
189
///Sets the url of the Container
190
/**	@param url : url of the Container
191
*/
192
14
void Container::setUrl(const std::string & url){
193
14
	p_url = url;
194
14
}
195
196
///Sets the containerFilename of the Container
197
/**	@param containerFilename : containerFilename of the Container
198
*/
199
14
void Container::setContainerFilename(const std::string & containerFilename){
200
14
	p_containerFilename = containerFilename;
201
14
}
202
203
///Sets the containerRecipe of the Container
204
/**	@param containerRecipe : containerRecipe of the Container
205
*/
206
14
void Container::setContainerRecipe(const std::string & containerRecipe){
207
14
	p_containerRecipe = containerRecipe;
208
14
}
209
210
///Sets the containerName of the Container
211
/**	@param containerName : containerName of the Container
212
*/
213
14
void Container::setContainerName(const std::string & containerName){
214
14
	p_containerName = containerName;
215
14
}
216
217
///Gets the url of the Container
218
/**	@return url of the Container
219
*/
220
const std::string & Container::getUrl() const{
221
	return p_url;
222
}
223
224
///Gets the url of the Container
225
/**	@return url of the Container
226
*/
227
std::string & Container::getUrl(){
228
	return p_url;
229
}
230
231
///Gets the containerFilename of the Container
232
/**	@return containerFilename of the Container
233
*/
234
2
const std::string & Container::getContainerFilename() const{
235
2
	return p_containerFilename;
236
}
237
238
///Gets the containerFilename of the Container
239
/**	@return containerFilename of the Container
240
*/
241
std::string & Container::getContainerFilename(){
242
	return p_containerFilename;
243
}
244
245
///Gets the containerRecipe of the Container
246
/**	@return containerRecipe of the Container
247
*/
248
const std::string & Container::getContainerRecipe() const{
249
	return p_containerRecipe;
250
}
251
252
///Gets the containerRecipe of the Container
253
/**	@return containerRecipe of the Container
254
*/
255
std::string & Container::getContainerRecipe(){
256
	return p_containerRecipe;
257
}
258
259
///Gets the containerName of the Container
260
/**	@return containerName of the Container
261
*/
262
const std::string & Container::getContainerName() const{
263
	return p_containerName;
264
}
265
266
///Gets the containerName of the Container
267
/**	@return containerName of the Container
268
*/
269
14
std::string & Container::getContainerName(){
270
14
	return p_containerName;
271
}
272
273
///Copy Function of class Container
274
/**	@param other : Container we want ot copy
275
*/
276
14
void Container::copyContainer(const Container & other){
277
14
	p_url = other.p_url;
278
14
	p_containerFilename = other.p_containerFilename;
279
14
	p_containerRecipe = other.p_containerRecipe;
280
14
	p_containerName = other.p_containerName;
281
14
}
282
283
///Initialisation Function of class Container
284
24
void Container::initialisationContainer(){
285
24
	p_url = "";
286
24
	p_containerFilename = "";
287
24
	p_containerRecipe = "";
288
24
	p_containerName = "";
289
24
}
290
291
///Constructor of class Scene
292
14
Scene::Scene(){
293
14
	initialisationScene();
294
14
}
295
296
///Copy Constructor of class Scene
297
/**	@param other : Scene we want ot copy
298
*/
299
Scene::Scene(const Scene & other){
300
	copyScene(other);
301
}
302
303
///Destructor of class Scene
304
28
Scene::~Scene(){
305
306
}
307
308
///Operator = of class Scene
309
/**	@param other : Scene we want ot copy
310
 * 	@return copied class Scene
311
*/
312
7
Scene & Scene::operator = (const Scene & other){
313
7
	copyScene(other);
314
7
	return *this;
315
}
316
317
///Sets the workingDirectory of the Scene
318
/**	@param workingDirectory : workingDirectory of the Scene
319
*/
320
7
void Scene::setWorkingDirectory(const std::string & workingDirectory){
321
7
	p_workingDirectory = workingDirectory;
322
7
}
323
324
///Sets the custumScript of the Scene
325
/**	@param custumScript : custumScript of the Scene
326
*/
327
void Scene::setCustumScript(const std::string & custumScript){
328
	p_custumScript = custumScript;
329
}
330
331
///Sets the name of the Scene
332
/**	@param name : name of the Scene
333
*/
334
7
void Scene::setName(const std::string & name){
335
7
	p_name = name;
336
7
}
337
338
///Sets the blenderInputFile of the Scene
339
/**	@param blenderInputFile : blenderInputFile of the Scene
340
*/
341
7
void Scene::setBlenderInputFile(const std::string & blenderInputFile){
342
7
	p_blenderInputFile = blenderInputFile;
343
7
}
344
345
///Sets the blenderScene of the Scene
346
/**	@param blenderScene : blenderScene of the Scene
347
*/
348
7
void Scene::setBlenderScene(const std::string & blenderScene){
349
7
	p_blenderScene = blenderScene;
350
7
}
351
352
///Sets the firstFrame of the Scene
353
/**	@param firstFrame : firstFrame of the Scene
354
*/
355
7
void Scene::setFirstFrame(int firstFrame){
356
7
	p_firstFrame = firstFrame;
357
7
}
358
359
///Sets the lastFrame of the Scene
360
/**	@param lastFrame : lastFrame of the Scene
361
*/
362
7
void Scene::setLastFrame(int lastFrame){
363
7
	p_lastFrame = lastFrame;
364
7
}
365
366
///Sets the stepFrame of the Scene
367
/**	@param stepFrame : stepFrame of the Scene
368
*/
369
7
void Scene::setStepFrame(int stepFrame){
370
7
	p_stepFrame = stepFrame;
371
7
}
372
373
///Sets the outputRenderDirectory of the Scene
374
/**	@param outputRenderDirectory : outputRenderDirectory of the Scene
375
*/
376
7
void Scene::setOutputRenderDirectory(const std::string & outputRenderDirectory){
377
7
	p_outputRenderDirectory = outputRenderDirectory;
378
7
}
379
380
///Sets the renderEngine of the Scene
381
/**	@param renderEngine : renderEngine of the Scene
382
*/
383
7
void Scene::setRenderEngine(const std::string & renderEngine){
384
7
	p_renderEngine = renderEngine;
385
7
}
386
387
///Sets the cycleDevice of the Scene
388
/**	@param cycleDevice : cycleDevice of the Scene
389
*/
390
7
void Scene::setCycleDevice(const std::string & cycleDevice){
391
7
	p_cycleDevice = cycleDevice;
392
7
}
393
394
///Sets the outputFormat of the Scene
395
/**	@param outputFormat : outputFormat of the Scene
396
*/
397
7
void Scene::setOutputFormat(const std::string & outputFormat){
398
7
	p_outputFormat = outputFormat;
399
7
}
400
401
///Sets the extraOptions of the Scene
402
/**	@param extraOptions : extraOptions of the Scene
403
*/
404
7
void Scene::setExtraOptions(const std::string & extraOptions){
405
7
	p_extraOptions = extraOptions;
406
7
}
407
408
///Sets the containerName of the Scene
409
/**	@param containerName : containerName of the Scene
410
*/
411
7
void Scene::setContainerName(const std::string & containerName){
412
7
	p_containerName = containerName;
413
7
}
414
415
///Sets the vecGpuType of the Scene
416
/**	@param vecGpuType : vecGpuType of the Scene
417
*/
418
7
void Scene::setVecGpuType(const std::vector<std::string> & vecGpuType){
419
7
	p_vecGpuType = vecGpuType;
420
7
}
421
422
///Sets the requestMemory of the Scene
423
/**	@param requestMemory : requestMemory of the Scene
424
*/
425
7
void Scene::setRequestMemory(int requestMemory){
426
7
	p_requestMemory = requestMemory;
427
7
}
428
429
///Sets the renderProgressionStatus of the Scene
430
/**	@param renderProgressionStatus : renderProgressionStatus of the Scene
431
*/
432
void Scene::setRenderProgressionStatus(int renderProgressionStatus){
433
	p_renderProgressionStatus = renderProgressionStatus;
434
}
435
436
///Gets the workingDirectory of the Scene
437
/**	@return workingDirectory of the Scene
438
*/
439
10
const std::string & Scene::getWorkingDirectory() const{
440
10
	return p_workingDirectory;
441
}
442
443
///Gets the workingDirectory of the Scene
444
/**	@return workingDirectory of the Scene
445
*/
446
std::string & Scene::getWorkingDirectory(){
447
	return p_workingDirectory;
448
}
449
450
///Gets the custumScript of the Scene
451
/**	@return custumScript of the Scene
452
*/
453
2
const std::string & Scene::getCustumScript() const{
454
2
	return p_custumScript;
455
}
456
457
///Gets the custumScript of the Scene
458
/**	@return custumScript of the Scene
459
*/
460
std::string & Scene::getCustumScript(){
461
	return p_custumScript;
462
}
463
464
///Gets the name of the Scene
465
/**	@return name of the Scene
466
*/
467
16
const std::string & Scene::getName() const{
468
16
	return p_name;
469
}
470
471
///Gets the name of the Scene
472
/**	@return name of the Scene
473
*/
474
7
std::string & Scene::getName(){
475
7
	return p_name;
476
}
477
478
///Gets the blenderInputFile of the Scene
479
/**	@return blenderInputFile of the Scene
480
*/
481
2
const std::string & Scene::getBlenderInputFile() const{
482
2
	return p_blenderInputFile;
483
}
484
485
///Gets the blenderInputFile of the Scene
486
/**	@return blenderInputFile of the Scene
487
*/
488
std::string & Scene::getBlenderInputFile(){
489
	return p_blenderInputFile;
490
}
491
492
///Gets the blenderScene of the Scene
493
/**	@return blenderScene of the Scene
494
*/
495
12
const std::string & Scene::getBlenderScene() const{
496
12
	return p_blenderScene;
497
}
498
499
///Gets the blenderScene of the Scene
500
/**	@return blenderScene of the Scene
501
*/
502
std::string & Scene::getBlenderScene(){
503
	return p_blenderScene;
504
}
505
506
///Gets the firstFrame of the Scene
507
/**	@return firstFrame of the Scene
508
*/
509
4
int Scene::getFirstFrame() const{
510
4
	return p_firstFrame;
511
}
512
513
///Gets the firstFrame of the Scene
514
/**	@return firstFrame of the Scene
515
*/
516
int & Scene::getFirstFrame(){
517
	return p_firstFrame;
518
}
519
520
///Gets the lastFrame of the Scene
521
/**	@return lastFrame of the Scene
522
*/
523
4
int Scene::getLastFrame() const{
524
4
	return p_lastFrame;
525
}
526
527
///Gets the lastFrame of the Scene
528
/**	@return lastFrame of the Scene
529
*/
530
int & Scene::getLastFrame(){
531
	return p_lastFrame;
532
}
533
534
///Gets the stepFrame of the Scene
535
/**	@return stepFrame of the Scene
536
*/
537
4
int Scene::getStepFrame() const{
538
4
	return p_stepFrame;
539
}
540
541
///Gets the stepFrame of the Scene
542
/**	@return stepFrame of the Scene
543
*/
544
int & Scene::getStepFrame(){
545
	return p_stepFrame;
546
}
547
548
///Gets the outputRenderDirectory of the Scene
549
/**	@return outputRenderDirectory of the Scene
550
*/
551
14
const std::string & Scene::getOutputRenderDirectory() const{
552
14
	return p_outputRenderDirectory;
553
}
554
555
///Gets the outputRenderDirectory of the Scene
556
/**	@return outputRenderDirectory of the Scene
557
*/
558
std::string & Scene::getOutputRenderDirectory(){
559
	return p_outputRenderDirectory;
560
}
561
562
///Gets the renderEngine of the Scene
563
/**	@return renderEngine of the Scene
564
*/
565
4
const std::string & Scene::getRenderEngine() const{
566
4
	return p_renderEngine;
567
}
568
569
///Gets the renderEngine of the Scene
570
/**	@return renderEngine of the Scene
571
*/
572
std::string & Scene::getRenderEngine(){
573
	return p_renderEngine;
574
}
575
576
///Gets the cycleDevice of the Scene
577
/**	@return cycleDevice of the Scene
578
*/
579
2
const std::string & Scene::getCycleDevice() const{
580
2
	return p_cycleDevice;
581
}
582
583
///Gets the cycleDevice of the Scene
584
/**	@return cycleDevice of the Scene
585
*/
586
std::string & Scene::getCycleDevice(){
587
	return p_cycleDevice;
588
}
589
590
///Gets the outputFormat of the Scene
591
/**	@return outputFormat of the Scene
592
*/
593
2
const std::string & Scene::getOutputFormat() const{
594
2
	return p_outputFormat;
595
}
596
597
///Gets the outputFormat of the Scene
598
/**	@return outputFormat of the Scene
599
*/
600
std::string & Scene::getOutputFormat(){
601
	return p_outputFormat;
602
}
603
604
///Gets the extraOptions of the Scene
605
/**	@return extraOptions of the Scene
606
*/
607
const std::string & Scene::getExtraOptions() const{
608
	return p_extraOptions;
609
}
610
611
///Gets the extraOptions of the Scene
612
/**	@return extraOptions of the Scene
613
*/
614
std::string & Scene::getExtraOptions(){
615
	return p_extraOptions;
616
}
617
618
///Gets the containerName of the Scene
619
/**	@return containerName of the Scene
620
*/
621
2
const std::string & Scene::getContainerName() const{
622
2
	return p_containerName;
623
}
624
625
///Gets the containerName of the Scene
626
/**	@return containerName of the Scene
627
*/
628
std::string & Scene::getContainerName(){
629
	return p_containerName;
630
}
631
632
///Gets the vecGpuType of the Scene
633
/**	@return vecGpuType of the Scene
634
*/
635
6
const std::vector<std::string> & Scene::getVecGpuType() const{
636
6
	return p_vecGpuType;
637
}
638
639
///Gets the vecGpuType of the Scene
640
/**	@return vecGpuType of the Scene
641
*/
642
std::vector<std::string> & Scene::getVecGpuType(){
643
	return p_vecGpuType;
644
}
645
646
///Gets the requestMemory of the Scene
647
/**	@return requestMemory of the Scene
648
*/
649
2
int Scene::getRequestMemory() const{
650
2
	return p_requestMemory;
651
}
652
653
///Gets the requestMemory of the Scene
654
/**	@return requestMemory of the Scene
655
*/
656
int & Scene::getRequestMemory(){
657
	return p_requestMemory;
658
}
659
660
///Gets the renderProgressionStatus of the Scene
661
/**	@return renderProgressionStatus of the Scene
662
*/
663
int Scene::getRenderProgressionStatus() const{
664
	return p_renderProgressionStatus;
665
}
666
667
///Gets the renderProgressionStatus of the Scene
668
/**	@return renderProgressionStatus of the Scene
669
*/
670
int & Scene::getRenderProgressionStatus(){
671
	return p_renderProgressionStatus;
672
}
673
674
///Copy Function of class Scene
675
/**	@param other : Scene we want ot copy
676
*/
677
7
void Scene::copyScene(const Scene & other){
678
7
	p_workingDirectory = other.p_workingDirectory;
679
7
	p_custumScript = other.p_custumScript;
680
7
	p_name = other.p_name;
681
7
	p_blenderInputFile = other.p_blenderInputFile;
682
7
	p_blenderScene = other.p_blenderScene;
683
7
	p_firstFrame = other.p_firstFrame;
684
7
	p_lastFrame = other.p_lastFrame;
685
7
	p_stepFrame = other.p_stepFrame;
686
7
	p_outputRenderDirectory = other.p_outputRenderDirectory;
687
7
	p_renderEngine = other.p_renderEngine;
688
7
	p_cycleDevice = other.p_cycleDevice;
689
7
	p_outputFormat = other.p_outputFormat;
690
7
	p_extraOptions = other.p_extraOptions;
691
7
	p_containerName = other.p_containerName;
692
7
	p_vecGpuType = other.p_vecGpuType;
693
7
	p_requestMemory = other.p_requestMemory;
694
7
	p_renderProgressionStatus = other.p_renderProgressionStatus;
695
7
}
696
697
///Initialisation Function of class Scene
698
14
void Scene::initialisationScene(){
699
14
	p_workingDirectory = "";
700
14
	p_custumScript = "";
701
14
	p_name = "";
702
14
	p_blenderInputFile = "";
703
14
	p_blenderScene = "";
704
14
	p_firstFrame = 0;
705
14
	p_lastFrame = 0;
706
14
	p_stepFrame = 0;
707
14
	p_outputRenderDirectory = "";
708
14
	p_renderEngine = "";
709
14
	p_cycleDevice = "";
710
14
	p_outputFormat = "";
711
14
	p_extraOptions = "";
712
14
	p_containerName = "";
713
14
	p_requestMemory = 0;
714
14
	p_renderProgressionStatus = 0;
715
14
}
716
717
///Constructor of class RenderProject
718
7
RenderProject::RenderProject(){
719
7
	initialisationRenderProject();
720
7
}
721
722
///Copy Constructor of class RenderProject
723
/**	@param other : RenderProject we want ot copy
724
*/
725
RenderProject::RenderProject(const RenderProject & other){
726
	copyRenderProject(other);
727
}
728
729
///Destructor of class RenderProject
730
14
RenderProject::~RenderProject(){
731
732
}
733
734
///Operator = of class RenderProject
735
/**	@param other : RenderProject we want ot copy
736
 * 	@return copied class RenderProject
737
*/
738
RenderProject & RenderProject::operator = (const RenderProject & other){
739
	copyRenderProject(other);
740
	return *this;
741
}
742
743
///Sets the sourceProjectDir of the RenderProject
744
/**	@param sourceProjectDir : sourceProjectDir of the RenderProject
745
*/
746
7
void RenderProject::setSourceProjectDir(const std::string & sourceProjectDir){
747
7
	p_sourceProjectDir = sourceProjectDir;
748
7
}
749
750
///Sets the name of the RenderProject
751
/**	@param name : name of the RenderProject
752
*/
753
7
void RenderProject::setName(const std::string & name){
754
7
	p_name = name;
755
7
}
756
757
///Sets the vecSubDirectories of the RenderProject
758
/**	@param vecSubDirectories : vecSubDirectories of the RenderProject
759
*/
760
7
void RenderProject::setVecSubDirectories(const std::vector<std::string> & vecSubDirectories){
761
7
	p_vecSubDirectories = vecSubDirectories;
762
7
}
763
764
///Sets the computingCenter of the RenderProject
765
/**	@param computingCenter : computingCenter of the RenderProject
766
*/
767
void RenderProject::setComputingCenter(const ComputingCenter & computingCenter){
768
	p_computingCenter = computingCenter;
769
}
770
771
///Sets the mapContainer of the RenderProject
772
/**	@param mapContainer : mapContainer of the RenderProject
773
*/
774
void RenderProject::setMapContainer(const std::map<std::string, Container> & mapContainer){
775
	p_mapContainer = mapContainer;
776
}
777
778
///Sets the mapScene of the RenderProject
779
/**	@param mapScene : mapScene of the RenderProject
780
*/
781
void RenderProject::setMapScene(const std::map<std::string, Scene> & mapScene){
782
	p_mapScene = mapScene;
783
}
784
785
///Sets the sshExecutable of the RenderProject
786
/**	@param sshExecutable : sshExecutable of the RenderProject
787
*/
788
7
void RenderProject::setSshExecutable(const std::string & sshExecutable){
789
7
	p_sshExecutable = sshExecutable;
790
7
}
791
792
///Sets the scpExecutable of the RenderProject
793
/**	@param scpExecutable : scpExecutable of the RenderProject
794
*/
795
7
void RenderProject::setScpExecutable(const std::string & scpExecutable){
796
7
	p_scpExecutable = scpExecutable;
797
7
}
798
799
///Sets the condorSubmitExecutable of the RenderProject
800
/**	@param condorSubmitExecutable : condorSubmitExecutable of the RenderProject
801
*/
802
7
void RenderProject::setCondorSubmitExecutable(const std::string & condorSubmitExecutable){
803
7
	p_condorSubmitExecutable = condorSubmitExecutable;
804
7
}
805
806
///Sets the apptainerExecutable of the RenderProject
807
/**	@param apptainerExecutable : apptainerExecutable of the RenderProject
808
*/
809
7
void RenderProject::setApptainerExecutable(const std::string & apptainerExecutable){
810
7
	p_apptainerExecutable = apptainerExecutable;
811
7
}
812
813
///Sets the rsyncExecutable of the RenderProject
814
/**	@param rsyncExecutable : rsyncExecutable of the RenderProject
815
*/
816
7
void RenderProject::setRsyncExecutable(const std::string & rsyncExecutable){
817
7
	p_rsyncExecutable = rsyncExecutable;
818
7
}
819
820
///Sets the vecExecutableCheckGpu of the RenderProject
821
/**	@param vecExecutableCheckGpu : vecExecutableCheckGpu of the RenderProject
822
*/
823
7
void RenderProject::setVecExecutableCheckGpu(const std::vector<std::string> & vecExecutableCheckGpu){
824
7
	p_vecExecutableCheckGpu = vecExecutableCheckGpu;
825
7
}
826
827
///Gets the sourceProjectDir of the RenderProject
828
/**	@return sourceProjectDir of the RenderProject
829
*/
830
2
const std::string & RenderProject::getSourceProjectDir() const{
831
2
	return p_sourceProjectDir;
832
}
833
834
///Gets the sourceProjectDir of the RenderProject
835
/**	@return sourceProjectDir of the RenderProject
836
*/
837
7
std::string & RenderProject::getSourceProjectDir(){
838
7
	return p_sourceProjectDir;
839
}
840
841
///Gets the name of the RenderProject
842
/**	@return name of the RenderProject
843
*/
844
const std::string & RenderProject::getName() const{
845
	return p_name;
846
}
847
848
///Gets the name of the RenderProject
849
/**	@return name of the RenderProject
850
*/
851
std::string & RenderProject::getName(){
852
	return p_name;
853
}
854
855
///Gets the vecSubDirectories of the RenderProject
856
/**	@return vecSubDirectories of the RenderProject
857
*/
858
const std::vector<std::string> & RenderProject::getVecSubDirectories() const{
859
	return p_vecSubDirectories;
860
}
861
862
///Gets the vecSubDirectories of the RenderProject
863
/**	@return vecSubDirectories of the RenderProject
864
*/
865
7
std::vector<std::string> & RenderProject::getVecSubDirectories(){
866
7
	return p_vecSubDirectories;
867
}
868
869
///Gets the computingCenter of the RenderProject
870
/**	@return computingCenter of the RenderProject
871
*/
872
6
const ComputingCenter & RenderProject::getComputingCenter() const{
873
6
	return p_computingCenter;
874
}
875
876
///Gets the computingCenter of the RenderProject
877
/**	@return computingCenter of the RenderProject
878
*/
879
11
ComputingCenter & RenderProject::getComputingCenter(){
880
11
	return p_computingCenter;
881
}
882
883
///Gets the mapContainer of the RenderProject
884
/**	@return mapContainer of the RenderProject
885
*/
886
4
const std::map<std::string, Container> & RenderProject::getMapContainer() const{
887
4
	return p_mapContainer;
888
}
889
890
///Gets the mapContainer of the RenderProject
891
/**	@return mapContainer of the RenderProject
892
*/
893
14
std::map<std::string, Container> & RenderProject::getMapContainer(){
894
14
	return p_mapContainer;
895
}
896
897
///Gets the mapScene of the RenderProject
898
/**	@return mapScene of the RenderProject
899
*/
900
7
const std::map<std::string, Scene> & RenderProject::getMapScene() const{
901
7
	return p_mapScene;
902
}
903
904
///Gets the mapScene of the RenderProject
905
/**	@return mapScene of the RenderProject
906
*/
907
7
std::map<std::string, Scene> & RenderProject::getMapScene(){
908
7
	return p_mapScene;
909
}
910
911
///Gets the sshExecutable of the RenderProject
912
/**	@return sshExecutable of the RenderProject
913
*/
914
const std::string & RenderProject::getSshExecutable() const{
915
	return p_sshExecutable;
916
}
917
918
///Gets the sshExecutable of the RenderProject
919
/**	@return sshExecutable of the RenderProject
920
*/
921
std::string & RenderProject::getSshExecutable(){
922
	return p_sshExecutable;
923
}
924
925
///Gets the scpExecutable of the RenderProject
926
/**	@return scpExecutable of the RenderProject
927
*/
928
const std::string & RenderProject::getScpExecutable() const{
929
	return p_scpExecutable;
930
}
931
932
///Gets the scpExecutable of the RenderProject
933
/**	@return scpExecutable of the RenderProject
934
*/
935
std::string & RenderProject::getScpExecutable(){
936
	return p_scpExecutable;
937
}
938
939
///Gets the condorSubmitExecutable of the RenderProject
940
/**	@return condorSubmitExecutable of the RenderProject
941
*/
942
2
const std::string & RenderProject::getCondorSubmitExecutable() const{
943
2
	return p_condorSubmitExecutable;
944
}
945
946
///Gets the condorSubmitExecutable of the RenderProject
947
/**	@return condorSubmitExecutable of the RenderProject
948
*/
949
std::string & RenderProject::getCondorSubmitExecutable(){
950
	return p_condorSubmitExecutable;
951
}
952
953
///Gets the apptainerExecutable of the RenderProject
954
/**	@return apptainerExecutable of the RenderProject
955
*/
956
2
const std::string & RenderProject::getApptainerExecutable() const{
957
2
	return p_apptainerExecutable;
958
}
959
960
///Gets the apptainerExecutable of the RenderProject
961
/**	@return apptainerExecutable of the RenderProject
962
*/
963
std::string & RenderProject::getApptainerExecutable(){
964
	return p_apptainerExecutable;
965
}
966
967
///Gets the rsyncExecutable of the RenderProject
968
/**	@return rsyncExecutable of the RenderProject
969
*/
970
const std::string & RenderProject::getRsyncExecutable() const{
971
	return p_rsyncExecutable;
972
}
973
974
///Gets the rsyncExecutable of the RenderProject
975
/**	@return rsyncExecutable of the RenderProject
976
*/
977
std::string & RenderProject::getRsyncExecutable(){
978
	return p_rsyncExecutable;
979
}
980
981
///Gets the vecExecutableCheckGpu of the RenderProject
982
/**	@return vecExecutableCheckGpu of the RenderProject
983
*/
984
2
const std::vector<std::string> & RenderProject::getVecExecutableCheckGpu() const{
985
2
	return p_vecExecutableCheckGpu;
986
}
987
988
///Gets the vecExecutableCheckGpu of the RenderProject
989
/**	@return vecExecutableCheckGpu of the RenderProject
990
*/
991
21
std::vector<std::string> & RenderProject::getVecExecutableCheckGpu(){
992
21
	return p_vecExecutableCheckGpu;
993
}
994
995
///Copy Function of class RenderProject
996
/**	@param other : RenderProject we want ot copy
997
*/
998
void RenderProject::copyRenderProject(const RenderProject & other){
999
	p_sourceProjectDir = other.p_sourceProjectDir;
1000
	p_name = other.p_name;
1001
	p_vecSubDirectories = other.p_vecSubDirectories;
1002
	p_computingCenter = other.p_computingCenter;
1003
	p_mapContainer = other.p_mapContainer;
1004
	p_mapScene = other.p_mapScene;
1005
	p_sshExecutable = other.p_sshExecutable;
1006
	p_scpExecutable = other.p_scpExecutable;
1007
	p_condorSubmitExecutable = other.p_condorSubmitExecutable;
1008
	p_apptainerExecutable = other.p_apptainerExecutable;
1009
	p_rsyncExecutable = other.p_rsyncExecutable;
1010
	p_vecExecutableCheckGpu = other.p_vecExecutableCheckGpu;
1011
}
1012
1013
///Initialisation Function of class RenderProject
1014
7
void RenderProject::initialisationRenderProject(){
1015
7
	p_sourceProjectDir = "";
1016
7
	p_name = "";
1017
7
	p_sshExecutable = "";
1018
7
	p_scpExecutable = "";
1019
7
	p_condorSubmitExecutable = "";
1020
7
	p_apptainerExecutable = "";
1021
7
	p_rsyncExecutable = "";
1022
7
}
1023
1024
///Constructor of class ProgramOption
1025
7
ProgramOption::ProgramOption(){
1026
7
	initialisationProgramOption();
1027
7
}
1028
1029
///Copy Constructor of class ProgramOption
1030
/**	@param other : ProgramOption we want ot copy
1031
*/
1032
ProgramOption::ProgramOption(const ProgramOption & other){
1033
	copyProgramOption(other);
1034
}
1035
1036
///Destructor of class ProgramOption
1037
14
ProgramOption::~ProgramOption(){
1038
1039
}
1040
1041
///Operator = of class ProgramOption
1042
/**	@param other : ProgramOption we want ot copy
1043
 * 	@return copied class ProgramOption
1044
*/
1045
ProgramOption & ProgramOption::operator = (const ProgramOption & other){
1046
	copyProgramOption(other);
1047
	return *this;
1048
}
1049
1050
///Sets the wantStatus of the ProgramOption
1051
/**	@param wantStatus : wantStatus of the ProgramOption
1052
*/
1053
7
void ProgramOption::setWantStatus(bool wantStatus){
1054
7
	p_wantStatus = wantStatus;
1055
7
}
1056
1057
///Sets the vecStatusScene of the ProgramOption
1058
/**	@param vecStatusScene : vecStatusScene of the ProgramOption
1059
*/
1060
void ProgramOption::setVecStatusScene(const std::vector<std::string> & vecStatusScene){
1061
	p_vecStatusScene = vecStatusScene;
1062
}
1063
1064
///Sets the wantPush of the ProgramOption
1065
/**	@param wantPush : wantPush of the ProgramOption
1066
*/
1067
7
void ProgramOption::setWantPush(bool wantPush){
1068
7
	p_wantPush = wantPush;
1069
7
}
1070
1071
///Sets the vecPushScene of the ProgramOption
1072
/**	@param vecPushScene : vecPushScene of the ProgramOption
1073
*/
1074
void ProgramOption::setVecPushScene(const std::vector<std::string> & vecPushScene){
1075
	p_vecPushScene = vecPushScene;
1076
}
1077
1078
///Sets the wantPull of the ProgramOption
1079
/**	@param wantPull : wantPull of the ProgramOption
1080
*/
1081
7
void ProgramOption::setWantPull(bool wantPull){
1082
7
	p_wantPull = wantPull;
1083
7
}
1084
1085
///Sets the vecPullScene of the ProgramOption
1086
/**	@param vecPullScene : vecPullScene of the ProgramOption
1087
*/
1088
void ProgramOption::setVecPullScene(const std::vector<std::string> & vecPullScene){
1089
	p_vecPullScene = vecPullScene;
1090
}
1091
1092
///Sets the wantList of the ProgramOption
1093
/**	@param wantList : wantList of the ProgramOption
1094
*/
1095
7
void ProgramOption::setWantList(bool wantList){
1096
7
	p_wantList = wantList;
1097
7
}
1098
1099
///Sets the wantScript of the ProgramOption
1100
/**	@param wantScript : wantScript of the ProgramOption
1101
*/
1102
7
void ProgramOption::setWantScript(bool wantScript){
1103
7
	p_wantScript = wantScript;
1104
7
}
1105
1106
///Sets the vecScriptScene of the ProgramOption
1107
/**	@param vecScriptScene : vecScriptScene of the ProgramOption
1108
*/
1109
void ProgramOption::setVecScriptScene(const std::vector<std::string> & vecScriptScene){
1110
	p_vecScriptScene = vecScriptScene;
1111
}
1112
1113
///Gets the wantStatus of the ProgramOption
1114
/**	@return wantStatus of the ProgramOption
1115
*/
1116
5
bool ProgramOption::getWantStatus() const{
1117
5
	return p_wantStatus;
1118
}
1119
1120
///Gets the wantStatus of the ProgramOption
1121
/**	@return wantStatus of the ProgramOption
1122
*/
1123
bool & ProgramOption::getWantStatus(){
1124
	return p_wantStatus;
1125
}
1126
1127
///Gets the vecStatusScene of the ProgramOption
1128
/**	@return vecStatusScene of the ProgramOption
1129
*/
1130
5
const std::vector<std::string> & ProgramOption::getVecStatusScene() const{
1131
5
	return p_vecStatusScene;
1132
}
1133
1134
///Gets the vecStatusScene of the ProgramOption
1135
/**	@return vecStatusScene of the ProgramOption
1136
*/
1137
7
std::vector<std::string> & ProgramOption::getVecStatusScene(){
1138
7
	return p_vecStatusScene;
1139
}
1140
1141
///Gets the wantPush of the ProgramOption
1142
/**	@return wantPush of the ProgramOption
1143
*/
1144
bool ProgramOption::getWantPush() const{
1145
	return p_wantPush;
1146
}
1147
1148
///Gets the wantPush of the ProgramOption
1149
/**	@return wantPush of the ProgramOption
1150
*/
1151
bool & ProgramOption::getWantPush(){
1152
	return p_wantPush;
1153
}
1154
1155
///Gets the vecPushScene of the ProgramOption
1156
/**	@return vecPushScene of the ProgramOption
1157
*/
1158
const std::vector<std::string> & ProgramOption::getVecPushScene() const{
1159
	return p_vecPushScene;
1160
}
1161
1162
///Gets the vecPushScene of the ProgramOption
1163
/**	@return vecPushScene of the ProgramOption
1164
*/
1165
7
std::vector<std::string> & ProgramOption::getVecPushScene(){
1166
7
	return p_vecPushScene;
1167
}
1168
1169
///Gets the wantPull of the ProgramOption
1170
/**	@return wantPull of the ProgramOption
1171
*/
1172
bool ProgramOption::getWantPull() const{
1173
	return p_wantPull;
1174
}
1175
1176
///Gets the wantPull of the ProgramOption
1177
/**	@return wantPull of the ProgramOption
1178
*/
1179
bool & ProgramOption::getWantPull(){
1180
	return p_wantPull;
1181
}
1182
1183
///Gets the vecPullScene of the ProgramOption
1184
/**	@return vecPullScene of the ProgramOption
1185
*/
1186
const std::vector<std::string> & ProgramOption::getVecPullScene() const{
1187
	return p_vecPullScene;
1188
}
1189
1190
///Gets the vecPullScene of the ProgramOption
1191
/**	@return vecPullScene of the ProgramOption
1192
*/
1193
7
std::vector<std::string> & ProgramOption::getVecPullScene(){
1194
7
	return p_vecPullScene;
1195
}
1196
1197
///Gets the wantList of the ProgramOption
1198
/**	@return wantList of the ProgramOption
1199
*/
1200
7
bool ProgramOption::getWantList() const{
1201
7
	return p_wantList;
1202
}
1203
1204
///Gets the wantList of the ProgramOption
1205
/**	@return wantList of the ProgramOption
1206
*/
1207
bool & ProgramOption::getWantList(){
1208
	return p_wantList;
1209
}
1210
1211
///Gets the wantScript of the ProgramOption
1212
/**	@return wantScript of the ProgramOption
1213
*/
1214
2
bool ProgramOption::getWantScript() const{
1215
2
	return p_wantScript;
1216
}
1217
1218
///Gets the wantScript of the ProgramOption
1219
/**	@return wantScript of the ProgramOption
1220
*/
1221
bool & ProgramOption::getWantScript(){
1222
	return p_wantScript;
1223
}
1224
1225
///Gets the vecScriptScene of the ProgramOption
1226
/**	@return vecScriptScene of the ProgramOption
1227
*/
1228
2
const std::vector<std::string> & ProgramOption::getVecScriptScene() const{
1229
2
	return p_vecScriptScene;
1230
}
1231
1232
///Gets the vecScriptScene of the ProgramOption
1233
/**	@return vecScriptScene of the ProgramOption
1234
*/
1235
7
std::vector<std::string> & ProgramOption::getVecScriptScene(){
1236
7
	return p_vecScriptScene;
1237
}
1238
1239
///Copy Function of class ProgramOption
1240
/**	@param other : ProgramOption we want ot copy
1241
*/
1242
void ProgramOption::copyProgramOption(const ProgramOption & other){
1243
	p_wantStatus = other.p_wantStatus;
1244
	p_vecStatusScene = other.p_vecStatusScene;
1245
	p_wantPush = other.p_wantPush;
1246
	p_vecPushScene = other.p_vecPushScene;
1247
	p_wantPull = other.p_wantPull;
1248
	p_vecPullScene = other.p_vecPullScene;
1249
	p_wantList = other.p_wantList;
1250
	p_wantScript = other.p_wantScript;
1251
	p_vecScriptScene = other.p_vecScriptScene;
1252
}
1253
1254
///Initialisation Function of class ProgramOption
1255
7
void ProgramOption::initialisationProgramOption(){
1256
7
	p_wantStatus = false;
1257
7
	p_wantPush = false;
1258
7
	p_wantPull = false;
1259
7
	p_wantList = false;
1260
7
	p_wantScript = false;
1261
7
}
1262