Directory: | ./ |
---|---|
File: | src/Function/AbstractDataFunction.cpp |
Date: | 2025-03-14 12:18:05 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 13 | 16 | 81.2% |
Branches: | 2 | 2 | 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 | |||
8 | |||
9 | |||
10 | #include "AbstractDataFunction.h" | ||
11 | |||
12 | ///Default constructor of AbstractDataFunction | ||
13 | /** @param name : name of the function | ||
14 | */ | ||
15 |
1/1✓ Branch 2 taken 4 times.
|
4 | AbstractDataFunction::AbstractDataFunction(const PString & name){ |
16 |
1/1✓ Branch 1 taken 4 times.
|
4 | initialisationAbstractDataFunction(name); |
17 | 4 | } | |
18 | |||
19 | ///Destructor of AbstractDataFunction | ||
20 | ✗ | AbstractDataFunction::~AbstractDataFunction(){ | |
21 | |||
22 | } | ||
23 | |||
24 | ///Set the name of the function | ||
25 | /** @param name : name of the function | ||
26 | */ | ||
27 | ✗ | void AbstractDataFunction::setName(const PString & name){ | |
28 | ✗ | p_name = name; | |
29 | } | ||
30 | |||
31 | ///Name of the function | ||
32 | /** @return name of the function | ||
33 | */ | ||
34 | 4 | const PString & AbstractDataFunction::getName() const{ | |
35 | 4 | return p_name; | |
36 | } | ||
37 | |||
38 | ///Set the prototype of the current function | ||
39 | /** @param prototype : prototype of the current function | ||
40 | */ | ||
41 | 3 | void AbstractDataFunction::setPrototype(const PString & prototype){ | |
42 | 3 | p_prototype = prototype; | |
43 | 3 | } | |
44 | |||
45 | ///Get the prototype of the current function | ||
46 | /** @return prototype of the current function | ||
47 | */ | ||
48 | 4 | const PString & AbstractDataFunction::getPrototype() const{ | |
49 | 4 | return p_prototype; | |
50 | } | ||
51 | |||
52 | ///Initialisation function of the class AbstractDataFunction | ||
53 | /** @param name : name of the function | ||
54 | */ | ||
55 | 4 | void AbstractDataFunction::initialisationAbstractDataFunction(const PString & name){ | |
56 | 4 | p_name = name; | |
57 | 4 | } | |
58 | |||
59 | |||
60 | |||
61 | |||
62 | |||
63 |