PhoenixGenerator  2.0.4
Set of tools to generate code
Loading...
Searching...
No Matches
PPackageAttribute Class Reference

Describes a package attributes. More...

#include <PPackageAttribute.h>

Public Member Functions

PString & getCmakeFind ()
 Gets the cmakeFind of the PPackageAttribute.
 
const PString & getCmakeFind () const
 Gets the cmakeFind of the PPackageAttribute.
 
PString & getCmakeLib ()
 Gets the cmakeLib of the PPackageAttribute.
 
const PString & getCmakeLib () const
 Gets the cmakeLib of the PPackageAttribute.
 
PString & getMaxVersion ()
 Gets the maxVersion of the PPackageAttribute.
 
const PString & getMaxVersion () const
 Gets the maxVersion of the PPackageAttribute.
 
PString & getMinVersion ()
 Gets the minVersion of the PPackageAttribute.
 
const PString & getMinVersion () const
 Gets the minVersion of the PPackageAttribute.
 
PString & getName ()
 Gets the name of the PPackageAttribute.
 
const PString & getName () const
 Gets the name of the PPackageAttribute.
 
PString & getPixiName ()
 Gets the pixiName of the PPackageAttribute.
 
const PString & getPixiName () const
 Gets the pixiName of the PPackageAttribute.
 
PString & getUrl ()
 Gets the url of the PPackageAttribute.
 
const PString & getUrl () const
 Gets the url of the PPackageAttribute.
 
PPackageAttributeoperator= (const PPackageAttribute &other)
 Operator = of class PPackageAttribute.
 
 PPackageAttribute ()
 Constructor of class PPackageAttribute.
 
 PPackageAttribute (const PPackageAttribute &other)
 Copy Constructor of class PPackageAttribute.
 
void setCmakeFind (const PString &cmakeFind)
 Sets the cmakeFind of the PPackageAttribute.
 
void setCmakeLib (const PString &cmakeLib)
 Sets the cmakeLib of the PPackageAttribute.
 
void setMaxVersion (const PString &maxVersion)
 Sets the maxVersion of the PPackageAttribute.
 
void setMinVersion (const PString &minVersion)
 Sets the minVersion of the PPackageAttribute.
 
void setName (const PString &name)
 Sets the name of the PPackageAttribute.
 
void setPixiName (const PString &pixiName)
 Sets the pixiName of the PPackageAttribute.
 
void setUrl (const PString &url)
 Sets the url of the PPackageAttribute.
 
virtual ~PPackageAttribute ()
 Destructor of class PPackageAttribute.
 

Protected Member Functions

void copyPPackageAttribute (const PPackageAttribute &other)
 Copy Function of class PPackageAttribute.
 

Private Member Functions

void initialisationPPackageAttribute ()
 Initialisation Function of class PPackageAttribute.
 

Private Attributes

PString p_cmakeFind
 CMake find package name.
 
PString p_cmakeLib
 CMake library name.
 
PString p_maxVersion
 Maximum version allowed.
 
PString p_minVersion
 Minimum version required.
 
PString p_name
 Name of the package.
 
PString p_pixiName
 Name of the package in pixi.
 
PString p_url
 URL of the package repository.
 

Detailed Description

Describes a package attributes.

Definition at line 15 of file PPackageAttribute.h.

Constructor & Destructor Documentation

◆ PPackageAttribute() [1/2]

PPackageAttribute::PPackageAttribute ( )

Constructor of class PPackageAttribute.

Definition at line 11 of file PPackageAttribute.cpp.

11 {
13}
void initialisationPPackageAttribute()
Initialisation Function of class PPackageAttribute.

References initialisationPPackageAttribute().

Referenced by copyPPackageAttribute(), operator=(), and PPackageAttribute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PPackageAttribute() [2/2]

PPackageAttribute::PPackageAttribute ( const PPackageAttribute & other)

Copy Constructor of class PPackageAttribute.

Parameters
other: PPackageAttribute we want ot copy

Definition at line 18 of file PPackageAttribute.cpp.

18 {
20}
void copyPPackageAttribute(const PPackageAttribute &other)
Copy Function of class PPackageAttribute.

References copyPPackageAttribute(), and PPackageAttribute().

+ Here is the call graph for this function:

◆ ~PPackageAttribute()

PPackageAttribute::~PPackageAttribute ( )
virtual

Destructor of class PPackageAttribute.

Definition at line 23 of file PPackageAttribute.cpp.

23 {
24
25}

Member Function Documentation

◆ copyPPackageAttribute()

void PPackageAttribute::copyPPackageAttribute ( const PPackageAttribute & other)
protected

Copy Function of class PPackageAttribute.

Parameters
other: PPackageAttribute we want ot copy

Definition at line 186 of file PPackageAttribute.cpp.

186 {
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}
PString p_pixiName
Name of the package in pixi.
PString p_name
Name of the package.
PString p_maxVersion
Maximum version allowed.
PString p_minVersion
Minimum version required.
PString p_url
URL of the package repository.
PString p_cmakeFind
CMake find package name.
PString p_cmakeLib
CMake library name.

References p_cmakeFind, p_cmakeLib, p_maxVersion, p_minVersion, p_name, p_pixiName, p_url, and PPackageAttribute().

Referenced by operator=(), and PPackageAttribute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCmakeFind() [1/2]

PString & PPackageAttribute::getCmakeFind ( )

Gets the cmakeFind of the PPackageAttribute.

Returns
cmakeFind of the PPackageAttribute

Definition at line 123 of file PPackageAttribute.cpp.

123 {
124 return p_cmakeFind;
125}

References p_cmakeFind.

◆ getCmakeFind() [2/2]

const PString & PPackageAttribute::getCmakeFind ( ) const

Gets the cmakeFind of the PPackageAttribute.

Returns
cmakeFind of the PPackageAttribute

Definition at line 116 of file PPackageAttribute.cpp.

116 {
117 return p_cmakeFind;
118}

References p_cmakeFind.

Referenced by check_package_file(), and generateCmakeFindBody().

+ Here is the caller graph for this function:

◆ getCmakeLib() [1/2]

PString & PPackageAttribute::getCmakeLib ( )

Gets the cmakeLib of the PPackageAttribute.

Returns
cmakeLib of the PPackageAttribute

Definition at line 137 of file PPackageAttribute.cpp.

137 {
138 return p_cmakeLib;
139}

References p_cmakeLib.

◆ getCmakeLib() [2/2]

const PString & PPackageAttribute::getCmakeLib ( ) const

Gets the cmakeLib of the PPackageAttribute.

Returns
cmakeLib of the PPackageAttribute

Definition at line 130 of file PPackageAttribute.cpp.

130 {
131 return p_cmakeLib;
132}

References p_cmakeLib.

Referenced by check_package_file(), generatePhoenixGlobalDep(), and generateTargetLinkBody().

+ Here is the caller graph for this function:

◆ getMaxVersion() [1/2]

PString & PPackageAttribute::getMaxVersion ( )

Gets the maxVersion of the PPackageAttribute.

Returns
maxVersion of the PPackageAttribute

Definition at line 179 of file PPackageAttribute.cpp.

179 {
180 return p_maxVersion;
181}

References p_maxVersion.

◆ getMaxVersion() [2/2]

const PString & PPackageAttribute::getMaxVersion ( ) const

Gets the maxVersion of the PPackageAttribute.

Returns
maxVersion of the PPackageAttribute

Definition at line 172 of file PPackageAttribute.cpp.

172 {
173 return p_maxVersion;
174}

References p_maxVersion.

Referenced by generatePixiBody(), and is_generate_empty_config_ok().

+ Here is the caller graph for this function:

◆ getMinVersion() [1/2]

PString & PPackageAttribute::getMinVersion ( )

Gets the minVersion of the PPackageAttribute.

Returns
minVersion of the PPackageAttribute

Definition at line 165 of file PPackageAttribute.cpp.

165 {
166 return p_minVersion;
167}

References p_minVersion.

◆ getMinVersion() [2/2]

const PString & PPackageAttribute::getMinVersion ( ) const

Gets the minVersion of the PPackageAttribute.

Returns
minVersion of the PPackageAttribute

Definition at line 158 of file PPackageAttribute.cpp.

158 {
159 return p_minVersion;
160}

References p_minVersion.

Referenced by generatePixiBody(), and is_generate_empty_config_ok().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PPackageAttribute::getName ( )

Gets the name of the PPackageAttribute.

Returns
name of the PPackageAttribute

Definition at line 95 of file PPackageAttribute.cpp.

95 {
96 return p_name;
97}

References p_name.

◆ getName() [2/2]

const PString & PPackageAttribute::getName ( ) const

Gets the name of the PPackageAttribute.

Returns
name of the PPackageAttribute

Definition at line 88 of file PPackageAttribute.cpp.

88 {
89 return p_name;
90}

References p_name.

Referenced by generateCmakeFindBody(), generateMarkdownDepList(), generatePhoenixFindModule(), generatePhoenixGlobalDep(), generatePhoenixPullExtraModule(), and generateTargetLinkBody().

+ Here is the caller graph for this function:

◆ getPixiName() [1/2]

PString & PPackageAttribute::getPixiName ( )

Gets the pixiName of the PPackageAttribute.

Returns
pixiName of the PPackageAttribute

Definition at line 109 of file PPackageAttribute.cpp.

109 {
110 return p_pixiName;
111}

References p_pixiName.

◆ getPixiName() [2/2]

const PString & PPackageAttribute::getPixiName ( ) const

Gets the pixiName of the PPackageAttribute.

Returns
pixiName of the PPackageAttribute

Definition at line 102 of file PPackageAttribute.cpp.

102 {
103 return p_pixiName;
104}

References p_pixiName.

Referenced by check_package_file(), and generatePixiBody().

+ Here is the caller graph for this function:

◆ getUrl() [1/2]

PString & PPackageAttribute::getUrl ( )

Gets the url of the PPackageAttribute.

Returns
url of the PPackageAttribute

Definition at line 151 of file PPackageAttribute.cpp.

151 {
152 return p_url;
153}

References p_url.

◆ getUrl() [2/2]

const PString & PPackageAttribute::getUrl ( ) const

Gets the url of the PPackageAttribute.

Returns
url of the PPackageAttribute

Definition at line 144 of file PPackageAttribute.cpp.

144 {
145 return p_url;
146}

References p_url.

Referenced by check_package_file(), generateMarkdownDepList(), and generatePhoenixPullExtraModule().

+ Here is the caller graph for this function:

◆ initialisationPPackageAttribute()

void PPackageAttribute::initialisationPPackageAttribute ( )
private

Initialisation Function of class PPackageAttribute.

Definition at line 197 of file PPackageAttribute.cpp.

197 {
198 p_name = "";
199 p_pixiName = "";
200 p_cmakeFind = "";
201 p_cmakeLib = "";
202 p_url = "";
203 p_minVersion = "";
204 p_maxVersion = "";
205}

References p_cmakeFind, p_cmakeLib, p_maxVersion, p_minVersion, p_name, p_pixiName, and p_url.

Referenced by PPackageAttribute().

+ Here is the caller graph for this function:

◆ operator=()

PPackageAttribute & PPackageAttribute::operator= ( const PPackageAttribute & other)

Operator = of class PPackageAttribute.

Parameters
other: PPackageAttribute we want ot copy
Returns
copied class PPackageAttribute

Definition at line 31 of file PPackageAttribute.cpp.

31 {
33 return *this;
34}

References copyPPackageAttribute(), and PPackageAttribute().

+ Here is the call graph for this function:

◆ setCmakeFind()

void PPackageAttribute::setCmakeFind ( const PString & cmakeFind)

Sets the cmakeFind of the PPackageAttribute.

Parameters
cmakeFind: cmakeFind of the PPackageAttribute

Definition at line 53 of file PPackageAttribute.cpp.

53 {
54 p_cmakeFind = cmakeFind;
55}

References p_cmakeFind.

Referenced by check_package_file().

+ Here is the caller graph for this function:

◆ setCmakeLib()

void PPackageAttribute::setCmakeLib ( const PString & cmakeLib)

Sets the cmakeLib of the PPackageAttribute.

Parameters
cmakeLib: cmakeLib of the PPackageAttribute

Definition at line 60 of file PPackageAttribute.cpp.

60 {
61 p_cmakeLib = cmakeLib;
62}

References p_cmakeLib.

Referenced by check_package_file().

+ Here is the caller graph for this function:

◆ setMaxVersion()

void PPackageAttribute::setMaxVersion ( const PString & maxVersion)

Sets the maxVersion of the PPackageAttribute.

Parameters
maxVersion: maxVersion of the PPackageAttribute

Definition at line 81 of file PPackageAttribute.cpp.

81 {
82 p_maxVersion = maxVersion;
83}

References p_maxVersion.

◆ setMinVersion()

void PPackageAttribute::setMinVersion ( const PString & minVersion)

Sets the minVersion of the PPackageAttribute.

Parameters
minVersion: minVersion of the PPackageAttribute

Definition at line 74 of file PPackageAttribute.cpp.

74 {
75 p_minVersion = minVersion;
76}

References p_minVersion.

◆ setName()

void PPackageAttribute::setName ( const PString & name)

Sets the name of the PPackageAttribute.

Parameters
name: name of the PPackageAttribute

Definition at line 39 of file PPackageAttribute.cpp.

39 {
40 p_name = name;
41}

References p_name.

◆ setPixiName()

void PPackageAttribute::setPixiName ( const PString & pixiName)

Sets the pixiName of the PPackageAttribute.

Parameters
pixiName: pixiName of the PPackageAttribute

Definition at line 46 of file PPackageAttribute.cpp.

46 {
47 p_pixiName = pixiName;
48}

References p_pixiName.

Referenced by check_package_file().

+ Here is the caller graph for this function:

◆ setUrl()

void PPackageAttribute::setUrl ( const PString & url)

Sets the url of the PPackageAttribute.

Parameters
url: url of the PPackageAttribute

Definition at line 67 of file PPackageAttribute.cpp.

67 {
68 p_url = url;
69}

References p_url.

Referenced by check_package_file().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_cmakeFind

PString PPackageAttribute::p_cmakeFind
private

CMake find package name.

Definition at line 51 of file PPackageAttribute.h.

Referenced by copyPPackageAttribute(), getCmakeFind(), getCmakeFind(), initialisationPPackageAttribute(), and setCmakeFind().

◆ p_cmakeLib

PString PPackageAttribute::p_cmakeLib
private

CMake library name.

Definition at line 53 of file PPackageAttribute.h.

Referenced by copyPPackageAttribute(), getCmakeLib(), getCmakeLib(), initialisationPPackageAttribute(), and setCmakeLib().

◆ p_maxVersion

PString PPackageAttribute::p_maxVersion
private

Maximum version allowed.

Definition at line 59 of file PPackageAttribute.h.

Referenced by copyPPackageAttribute(), getMaxVersion(), getMaxVersion(), initialisationPPackageAttribute(), and setMaxVersion().

◆ p_minVersion

PString PPackageAttribute::p_minVersion
private

Minimum version required.

Definition at line 57 of file PPackageAttribute.h.

Referenced by copyPPackageAttribute(), getMinVersion(), getMinVersion(), initialisationPPackageAttribute(), and setMinVersion().

◆ p_name

PString PPackageAttribute::p_name
private

Name of the package.

Definition at line 47 of file PPackageAttribute.h.

Referenced by copyPPackageAttribute(), getName(), getName(), initialisationPPackageAttribute(), and setName().

◆ p_pixiName

PString PPackageAttribute::p_pixiName
private

Name of the package in pixi.

Definition at line 49 of file PPackageAttribute.h.

Referenced by copyPPackageAttribute(), getPixiName(), getPixiName(), initialisationPPackageAttribute(), and setPixiName().

◆ p_url

PString PPackageAttribute::p_url
private

URL of the package repository.

Definition at line 55 of file PPackageAttribute.h.

Referenced by copyPPackageAttribute(), getUrl(), getUrl(), initialisationPPackageAttribute(), and setUrl().


The documentation for this class was generated from the following files: