GCC Code Coverage Report


Directory: ./
File: src/Representation/GeneratorMode.h
Date: 2025-12-15 11:32:44
Exec Total Coverage
Lines: 0 0 -%
Functions: 0 0 -%
Branches: 0 0 -%

Line Branch Exec Source
1 /***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5 ****************************************/
6
7 #ifndef __GENERATOR_MODE_H__
8 #define __GENERATOR_MODE_H__
9
10 #include <map>
11 #include "PString.h"
12
13 namespace ProjectType{
14 ///@brief Type of the project to be generated
15 enum ProjectType{
16 CPP,
17 WRAPPER
18 };
19 }
20
21 class PClassConfig;
22
23 ///@brief All the genertor modes
24 struct GeneratorMode{
25 ///True to enable data stream interface generator
26 bool enableDataStream{false};
27 ///True to enable type stream interface generator
28 bool enableTypeStream{false};
29 ///True to enable config stream interface generator
30 bool enableConfigStream{false};
31 ///True to enable the unit tests
32 bool enableUnitTest{false};
33 ///True to enable check stream interface generator
34 bool enableCheckStream{false};
35
36 ///True to enable setters trait generator
37 bool enableSetter{true};
38 ///True to enable getters trait generator
39 bool enableGetter{true};
40 ///True to enable copy trait generator
41 bool enableCopy{true};
42 ///True to enable fromString trait generator
43 bool enableFromString{true};
44 ///Template definition for the class header
45 PString defTemplate;
46 ///Template declaration of the method implementation
47 PString templateDeclaration;
48 ///Include of the assert to be used
49 PString assertInclude{"assert.h"};
50 ///Assert to be used
51 PString assertCall{"assert"};
52 ///Name of the wrapper python module
53 PString moduleName;
54 ///Type of the project to be generated
55 ProjectType::ProjectType type{ProjectType::CPP};
56 ///Map of the generated class
57 std::map<std::string, PClassConfig> mapClass;
58 };
59
60 #include "PClassConfig.h"
61
62 #endif
63