GCC Code Coverage Report


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