GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: src/RenderBackend/backend_list.cpp Lines: 8 8 100.0 %
Date: 2023-10-11 10:52:07 Branches: 12 12 100.0 %

Line Branch Exec Source
1
/***************************************
2
	Auteur : Pierre Aubert
3
	Mail : pierre.aubert@lapp.in2p3.fr
4
	Licence : CeCILL-C
5
****************************************/
6
7
#include "string_utils.h"
8
#include "backend_list.h"
9
10
///Get the status of the given scene
11
/**	@param scene : Scene we want the status
12
*/
13
2
void backend_printScene(const Scene & scene){
14


2
	std::cout << termCyan() << "Scene"<<termDefault()<<" : '"<<scene.getName()<<"'" << std::endl;
15
2
}
16
17
2
void backend_list(const RenderProject & renderProject){
18
2
	const std::map<std::string, Scene> & mapScene = renderProject.getMapScene();
19
4
	for(std::map<std::string, Scene>::const_iterator it(mapScene.begin()); it != mapScene.end(); ++it){
20
2
		backend_printScene(it->second);
21
	}
22
2
}
23
24