| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | |||
| 8 | #include "class_attribute_utils.h" | ||
| 9 | |||
| 10 | ///Creates a PClassAttribute | ||
| 11 | /** @param type : type of the attribute | ||
| 12 | * @param name : name of the attribute | ||
| 13 | * @param documentation : documentation of the attribute | ||
| 14 | */ | ||
| 15 | 22 | PClassAttribute createClassAttribute(const PString & type, const PString & name, const PString & documentation){ | |
| 16 | 22 | PClassAttribute attr; | |
| 17 |
1/1✓ Branch 0 (3→4) taken 22 times.
|
22 | attr.setType(type); |
| 18 |
1/1✓ Branch 0 (4→5) taken 22 times.
|
22 | attr.setName(name); |
| 19 |
1/1✓ Branch 0 (5→6) taken 22 times.
|
22 | attr.setDocumentation(documentation); |
| 20 | 22 | return attr; | |
| 21 | ✗ | } | |
| 22 | |||
| 23 | ///Create an attribute | ||
| 24 | /** @param typeName : type of the attribute | ||
| 25 | * @param name : name of the attribute | ||
| 26 | * @param isPointer : true if the attribute is a pointer | ||
| 27 | * @param isReference : true if the attribute is a reference | ||
| 28 | * @param documentation : documentation of the attribute | ||
| 29 | * @return PClassAttribute | ||
| 30 | */ | ||
| 31 | ✗ | PClassAttribute createClassAttribute(const PString & typeName, const PString & name, bool isPointer, bool isReference, const PString & documentation){ | |
| 32 | ✗ | PClassAttribute attr; | |
| 33 | ✗ | attr.setType(typeName); | |
| 34 | ✗ | attr.setName(name); | |
| 35 | ✗ | attr.setIsPointer(isPointer); | |
| 36 | ✗ | attr.setIsReference(isReference); | |
| 37 | ✗ | attr.setDocumentation(documentation); | |
| 38 | |||
| 39 | ✗ | return attr; | |
| 40 | ✗ | } | |
| 41 | |||
| 42 | |||
| 43 |