PhoenixGenerator  2.0.4
Set of tools to generate code
Loading...
Searching...
No Matches
PPackageAttribute.h
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#ifndef __PPACKAGEATTRIBUTE_H__
8#define __PPACKAGEATTRIBUTE_H__
9
10#include <string>
11#include "PString.h"
12
13
16 public:
19 virtual ~PPackageAttribute();
21 void setName(const PString & name);
22 void setPixiName(const PString & pixiName);
23 void setCmakeFind(const PString & cmakeFind);
24 void setCmakeLib(const PString & cmakeLib);
25 void setUrl(const PString & url);
26 void setMinVersion(const PString & minVersion);
27 void setMaxVersion(const PString & maxVersion);
28 const PString & getName() const;
29 PString & getName();
30 const PString & getPixiName() const;
31 PString & getPixiName();
32 const PString & getCmakeFind() const;
33 PString & getCmakeFind();
34 const PString & getCmakeLib() const;
35 PString & getCmakeLib();
36 const PString & getUrl() const;
37 PString & getUrl();
38 const PString & getMinVersion() const;
39 PString & getMinVersion();
40 const PString & getMaxVersion() const;
41 PString & getMaxVersion();
42 protected:
43 void copyPPackageAttribute(const PPackageAttribute & other);
44 private:
47 PString p_name;
49 PString p_pixiName;
51 PString p_cmakeFind;
53 PString p_cmakeLib;
55 PString p_url;
57 PString p_minVersion;
59 PString p_maxVersion;
60};
61
62
63
64#endif
65
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.