PhoenixGenerator  2.0.4
Set of tools to generate code
Loading...
Searching...
No Matches
PPackageAttribute.cpp
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7
8#include "PPackageAttribute.h"
9
14
16
21
26
28
35
37
39void PPackageAttribute::setName(const PString & name){
40 p_name = name;
41}
42
44
46void PPackageAttribute::setPixiName(const PString & pixiName){
47 p_pixiName = pixiName;
48}
49
51
53void PPackageAttribute::setCmakeFind(const PString & cmakeFind){
54 p_cmakeFind = cmakeFind;
55}
56
58
60void PPackageAttribute::setCmakeLib(const PString & cmakeLib){
61 p_cmakeLib = cmakeLib;
62}
63
65
67void PPackageAttribute::setUrl(const PString & url){
68 p_url = url;
69}
70
72
74void PPackageAttribute::setMinVersion(const PString & minVersion){
75 p_minVersion = minVersion;
76}
77
79
81void PPackageAttribute::setMaxVersion(const PString & maxVersion){
82 p_maxVersion = maxVersion;
83}
84
86
88const PString & PPackageAttribute::getName() const{
89 return p_name;
90}
91
93
96 return p_name;
97}
98
100
102const PString & PPackageAttribute::getPixiName() const{
103 return p_pixiName;
104}
105
107
110 return p_pixiName;
111}
112
114
116const PString & PPackageAttribute::getCmakeFind() const{
117 return p_cmakeFind;
118}
119
121
124 return p_cmakeFind;
125}
126
128
130const PString & PPackageAttribute::getCmakeLib() const{
131 return p_cmakeLib;
132}
133
135
138 return p_cmakeLib;
139}
140
142
144const PString & PPackageAttribute::getUrl() const{
145 return p_url;
146}
147
149
152 return p_url;
153}
154
156
158const PString & PPackageAttribute::getMinVersion() const{
159 return p_minVersion;
160}
161
163
166 return p_minVersion;
167}
168
170
172const PString & PPackageAttribute::getMaxVersion() const{
173 return p_maxVersion;
174}
175
177
180 return p_maxVersion;
181}
182
184
187 p_name = other.p_name;
188 p_pixiName = other.p_pixiName;
189 p_cmakeFind = other.p_cmakeFind;
190 p_cmakeLib = other.p_cmakeLib;
191 p_url = other.p_url;
194}
195
198 p_name = "";
199 p_pixiName = "";
200 p_cmakeFind = "";
201 p_cmakeLib = "";
202 p_url = "";
203 p_minVersion = "";
204 p_maxVersion = "";
205}
206
PString p_pixiName
Name of the package in pixi.
PString p_name
Name of the package.
PPackageAttribute()
Constructor of class PPackageAttribute.
virtual ~PPackageAttribute()
Destructor of class PPackageAttribute.
PString p_maxVersion
Maximum version allowed.
void setName(const PString &name)
Sets the name of the PPackageAttribute.
void setCmakeLib(const PString &cmakeLib)
Sets the cmakeLib of the PPackageAttribute.
void initialisationPPackageAttribute()
Initialisation Function of class PPackageAttribute.
void setPixiName(const PString &pixiName)
Sets the pixiName of the PPackageAttribute.
const PString & getName() const
Gets the name of the PPackageAttribute.
const PString & getMaxVersion() const
Gets the maxVersion of the PPackageAttribute.
PString p_minVersion
Minimum version required.
PPackageAttribute & operator=(const PPackageAttribute &other)
Operator = of class PPackageAttribute.
void copyPPackageAttribute(const PPackageAttribute &other)
Copy Function of class PPackageAttribute.
const PString & getUrl() const
Gets the url of the PPackageAttribute.
const PString & getCmakeFind() const
Gets the cmakeFind of the PPackageAttribute.
void setMaxVersion(const PString &maxVersion)
Sets the maxVersion of the PPackageAttribute.
const PString & getCmakeLib() const
Gets the cmakeLib of the PPackageAttribute.
void setUrl(const PString &url)
Sets the url of the PPackageAttribute.
void setCmakeFind(const PString &cmakeFind)
Sets the cmakeFind of the PPackageAttribute.
const PString & getMinVersion() const
Gets the minVersion of the PPackageAttribute.
const PString & getPixiName() const
Gets the pixiName of the PPackageAttribute.
void setMinVersion(const PString &minVersion)
Sets the minVersion of the PPackageAttribute.
PString p_url
URL of the package repository.
PString p_cmakeFind
CMake find package name.
PString p_cmakeLib
CMake library name.