GCC Code Coverage Report


Directory: ./
File: src/Representation/GeneratorMode.h
Date: 2026-09-08 15:48:42
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 NANOBIND_WRAPPER
19 };
20 }
21
22 class PClassConfig;
23
24 typedef std::map<std::string, PClassConfig> MapClassConfig;
25
26 ///@brief All the genertor modes
27 struct GeneratorMode{
28 ///True to enable data stream interface generator
29 bool enableDataStream{false};
30 ///True to enable type stream interface generator
31 bool enableTypeStream{false};
32 ///True to enable config stream interface generator
33 bool enableConfigStream{false};
34 ///True to enable the unit tests
35 bool enableUnitTest{false};
36 ///True to enable check stream interface generator
37 bool enableCheckStream{false};
38
39 ///True to enable setters trait generator
40 bool enableSetter{true};
41 ///True to enable getters trait generator
42 bool enableGetter{true};
43 ///True to enable copy trait generator
44 bool enableCopy{true};
45 ///True to enable fromString trait generator
46 bool enableFromString{true};
47 ///Template definition for the class header
48 PString defTemplate;
49 ///Template declaration of the method implementation
50 PString templateDeclaration;
51 ///Include of the assert to be used
52 PString assertInclude{"assert.h"};
53 ///Assert to be used
54 PString assertCall{"assert"};
55 ///Name of the wrapper python module
56 PString moduleName;
57 ///Type of the project to be generated
58 ProjectType::ProjectType type{ProjectType::CPP};
59 ///Map of the generated class in the wrapper mode
60 MapClassConfig mapClass;
61 };
62
63 #include "PClassConfig.h"
64
65 #endif
66