PhoenixGenerator  2.0.0
Set of tools to generate code
PCMakeLibrary Class Reference

Describes a CMake library. More...

#include <PCMakeListsGenerator.h>

+ Collaboration diagram for PCMakeLibrary:

Public Member Functions

PStringgetAddDefinitions ()
 Gets the addDefinitions of the PCMakeLibrary. More...
 
const PStringgetAddDefinitions () const
 Gets the addDefinitions of the PCMakeLibrary. More...
 
PPathgetInstallDirectory ()
 Gets the installDirectory of the PCMakeLibrary. More...
 
const PPathgetInstallDirectory () const
 Gets the installDirectory of the PCMakeLibrary. More...
 
bool & getIsShared ()
 Gets the isShared of the PCMakeLibrary. More...
 
bool getIsShared () const
 Gets the isShared of the PCMakeLibrary. More...
 
PVecPathgetListHeaders ()
 Gets the listHeaders of the PCMakeLibrary. More...
 
const PVecPathgetListHeaders () const
 Gets the listHeaders of the PCMakeLibrary. More...
 
PVecStringgetListLibDependecies ()
 Gets the listLibDependecies of the PCMakeLibrary. More...
 
const PVecStringgetListLibDependecies () const
 Gets the listLibDependecies of the PCMakeLibrary. More...
 
PVecPathgetListSources ()
 Gets the listSources of the PCMakeLibrary. More...
 
const PVecPathgetListSources () const
 Gets the listSources of the PCMakeLibrary. More...
 
PStringgetName ()
 Gets the name of the PCMakeLibrary. More...
 
const PStringgetName () const
 Gets the name of the PCMakeLibrary. More...
 
PStringgetOtherCommandAfter ()
 Gets the otherCommandAfter of the PCMakeLibrary. More...
 
const PStringgetOtherCommandAfter () const
 Gets the otherCommandAfter of the PCMakeLibrary. More...
 
PStringgetRemoveDefinitions ()
 Gets the removeDefinitions of the PCMakeLibrary. More...
 
const PStringgetRemoveDefinitions () const
 Gets the removeDefinitions of the PCMakeLibrary. More...
 
bool & getWantGenerateFindPackage ()
 Gets the wantGenerateFindPackage of the PCMakeLibrary. More...
 
bool getWantGenerateFindPackage () const
 Gets the wantGenerateFindPackage of the PCMakeLibrary. More...
 
PCMakeLibraryoperator= (const PCMakeLibrary &other)
 Operator = of class PCMakeLibrary. More...
 
 PCMakeLibrary ()
 Constructor of class PCMakeLibrary. More...
 
 PCMakeLibrary (const PCMakeLibrary &other)
 Copy Constructor of class PCMakeLibrary. More...
 
void setAddDefinitions (const PString &addDefinitions)
 Sets the addDefinitions of the PCMakeLibrary. More...
 
void setInstallDirectory (const PPath &installDirectory)
 Sets the installDirectory of the PCMakeLibrary. More...
 
void setIsShared (bool isShared)
 Sets the isShared of the PCMakeLibrary. More...
 
void setListHeaders (const PVecPath &listHeaders)
 Sets the listHeaders of the PCMakeLibrary. More...
 
void setListLibDependecies (const PVecString &listLibDependecies)
 Sets the listLibDependecies of the PCMakeLibrary. More...
 
void setListSources (const PVecPath &listSources)
 Sets the listSources of the PCMakeLibrary. More...
 
void setName (const PString &name)
 Sets the name of the PCMakeLibrary. More...
 
void setOtherCommandAfter (const PString &otherCommandAfter)
 Sets the otherCommandAfter of the PCMakeLibrary. More...
 
void setRemoveDefinitions (const PString &removeDefinitions)
 Sets the removeDefinitions of the PCMakeLibrary. More...
 
void setWantGenerateFindPackage (bool wantGenerateFindPackage)
 Sets the wantGenerateFindPackage of the PCMakeLibrary. More...
 
virtual ~PCMakeLibrary ()
 Destructor of class PCMakeLibrary. More...
 

Protected Member Functions

void copyPCMakeLibrary (const PCMakeLibrary &other)
 Copy Function of class PCMakeLibrary. More...
 

Private Member Functions

void initialisationPCMakeLibrary ()
 Initialisation Function of class PCMakeLibrary. More...
 

Private Attributes

PString p_addDefinitions
 String to pass to the add_definitions. More...
 
PPath p_installDirectory
 Name of the install directory of the library. More...
 
bool p_isShared
 True if the library is chared false if not. More...
 
PVecPath p_listHeaders
 Lists of the headers. More...
 
PVecString p_listLibDependecies
 List of the library libraries dependencies. More...
 
PVecPath p_listSources
 Lists of the sources. More...
 
PString p_name
 Name of the library. More...
 
PString p_otherCommandAfter
 Other command after the definition of the target. More...
 
PString p_removeDefinitions
 String to pass to the remove_definitions. More...
 
bool p_wantGenerateFindPackage
 True if we want to have the CMake find_package file generated for the given lib. More...
 

Detailed Description

Describes a CMake library.

Definition at line 14 of file PCMakeListsGenerator.h.

Constructor & Destructor Documentation

◆ PCMakeLibrary() [1/2]

PCMakeLibrary::PCMakeLibrary ( )

Constructor of class PCMakeLibrary.

Definition at line 10 of file PCMakeListsGenerator.cpp.

10  {
12 }
void initialisationPCMakeLibrary()
Initialisation Function of class PCMakeLibrary.

References initialisationPCMakeLibrary().

+ Here is the call graph for this function:

◆ PCMakeLibrary() [2/2]

PCMakeLibrary::PCMakeLibrary ( const PCMakeLibrary other)

Copy Constructor of class PCMakeLibrary.

Parameters
other: PCMakeLibrary we want ot copy

Definition at line 17 of file PCMakeListsGenerator.cpp.

17  {
18  copyPCMakeLibrary(other);
19 }
void copyPCMakeLibrary(const PCMakeLibrary &other)
Copy Function of class PCMakeLibrary.

References copyPCMakeLibrary().

+ Here is the call graph for this function:

◆ ~PCMakeLibrary()

PCMakeLibrary::~PCMakeLibrary ( )
virtual

Destructor of class PCMakeLibrary.

Definition at line 22 of file PCMakeListsGenerator.cpp.

22  {
23 
24 }

Member Function Documentation

◆ copyPCMakeLibrary()

void PCMakeLibrary::copyPCMakeLibrary ( const PCMakeLibrary other)
protected

Copy Function of class PCMakeLibrary.

Parameters
other: PCMakeLibrary we want ot copy

Definition at line 248 of file PCMakeListsGenerator.cpp.

248  {
249  p_name = other.p_name;
257  p_isShared = other.p_isShared;
259 }
bool p_isShared
True if the library is chared false if not.
bool p_wantGenerateFindPackage
True if we want to have the CMake find_package file generated for the given lib.
PVecPath p_listSources
Lists of the sources.
PString p_otherCommandAfter
Other command after the definition of the target.
PVecPath p_listHeaders
Lists of the headers.
PString p_name
Name of the library.
PVecString p_listLibDependecies
List of the library libraries dependencies.
PPath p_installDirectory
Name of the install directory of the library.
PString p_removeDefinitions
String to pass to the remove_definitions.
PString p_addDefinitions
String to pass to the add_definitions.

References p_addDefinitions, p_installDirectory, p_isShared, p_listHeaders, p_listLibDependecies, p_listSources, p_name, p_otherCommandAfter, p_removeDefinitions, and p_wantGenerateFindPackage.

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

+ Here is the caller graph for this function:

◆ getAddDefinitions() [1/2]

PString & PCMakeLibrary::getAddDefinitions ( )

Gets the addDefinitions of the PCMakeLibrary.

Returns
addDefinitions of the PCMakeLibrary

Definition at line 199 of file PCMakeListsGenerator.cpp.

199  {
200  return p_addDefinitions;
201 }

References p_addDefinitions.

◆ getAddDefinitions() [2/2]

const PString & PCMakeLibrary::getAddDefinitions ( ) const

Gets the addDefinitions of the PCMakeLibrary.

Returns
addDefinitions of the PCMakeLibrary

Definition at line 192 of file PCMakeListsGenerator.cpp.

192  {
193  return p_addDefinitions;
194 }

References p_addDefinitions.

Referenced by saveCMakeLibrary().

+ Here is the caller graph for this function:

◆ getInstallDirectory() [1/2]

PPath & PCMakeLibrary::getInstallDirectory ( )

Gets the installDirectory of the PCMakeLibrary.

Returns
installDirectory of the PCMakeLibrary

Definition at line 129 of file PCMakeListsGenerator.cpp.

129  {
130  return p_installDirectory;
131 }

References p_installDirectory.

◆ getInstallDirectory() [2/2]

const PPath & PCMakeLibrary::getInstallDirectory ( ) const

Gets the installDirectory of the PCMakeLibrary.

Returns
installDirectory of the PCMakeLibrary

Definition at line 122 of file PCMakeListsGenerator.cpp.

122  {
123  return p_installDirectory;
124 }

References p_installDirectory.

Referenced by saveCMakeLibrary().

+ Here is the caller graph for this function:

◆ getIsShared() [1/2]

bool & PCMakeLibrary::getIsShared ( )

Gets the isShared of the PCMakeLibrary.

Returns
isShared of the PCMakeLibrary

Definition at line 227 of file PCMakeListsGenerator.cpp.

227  {
228  return p_isShared;
229 }

References p_isShared.

◆ getIsShared() [2/2]

bool PCMakeLibrary::getIsShared ( ) const

Gets the isShared of the PCMakeLibrary.

Returns
isShared of the PCMakeLibrary

Definition at line 220 of file PCMakeListsGenerator.cpp.

220  {
221  return p_isShared;
222 }

References p_isShared.

Referenced by getFullLibraryName(), and saveCMakeLibrary().

+ Here is the caller graph for this function:

◆ getListHeaders() [1/2]

PVecPath & PCMakeLibrary::getListHeaders ( )

Gets the listHeaders of the PCMakeLibrary.

Returns
listHeaders of the PCMakeLibrary

Definition at line 171 of file PCMakeListsGenerator.cpp.

171  {
172  return p_listHeaders;
173 }

References p_listHeaders.

◆ getListHeaders() [2/2]

const PVecPath & PCMakeLibrary::getListHeaders ( ) const

Gets the listHeaders of the PCMakeLibrary.

Returns
listHeaders of the PCMakeLibrary

Definition at line 164 of file PCMakeListsGenerator.cpp.

164  {
165  return p_listHeaders;
166 }

References p_listHeaders.

Referenced by saveCMakeLibrary(), and saveCMakeLibraryFindPackageFile().

+ Here is the caller graph for this function:

◆ getListLibDependecies() [1/2]

PVecString & PCMakeLibrary::getListLibDependecies ( )

Gets the listLibDependecies of the PCMakeLibrary.

Returns
listLibDependecies of the PCMakeLibrary

Definition at line 143 of file PCMakeListsGenerator.cpp.

143  {
144  return p_listLibDependecies;
145 }

References p_listLibDependecies.

◆ getListLibDependecies() [2/2]

const PVecString & PCMakeLibrary::getListLibDependecies ( ) const

Gets the listLibDependecies of the PCMakeLibrary.

Returns
listLibDependecies of the PCMakeLibrary

Definition at line 136 of file PCMakeListsGenerator.cpp.

136  {
137  return p_listLibDependecies;
138 }

References p_listLibDependecies.

Referenced by saveCMakeLibrary().

+ Here is the caller graph for this function:

◆ getListSources() [1/2]

PVecPath & PCMakeLibrary::getListSources ( )

Gets the listSources of the PCMakeLibrary.

Returns
listSources of the PCMakeLibrary

Definition at line 157 of file PCMakeListsGenerator.cpp.

157  {
158  return p_listSources;
159 }

References p_listSources.

◆ getListSources() [2/2]

const PVecPath & PCMakeLibrary::getListSources ( ) const

Gets the listSources of the PCMakeLibrary.

Returns
listSources of the PCMakeLibrary

Definition at line 150 of file PCMakeListsGenerator.cpp.

150  {
151  return p_listSources;
152 }

References p_listSources.

Referenced by saveCMakeLibrary().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PCMakeLibrary::getName ( )

Gets the name of the PCMakeLibrary.

Returns
name of the PCMakeLibrary

Definition at line 115 of file PCMakeListsGenerator.cpp.

115  {
116  return p_name;
117 }

References p_name.

◆ getName() [2/2]

const PString & PCMakeLibrary::getName ( ) const

Gets the name of the PCMakeLibrary.

Returns
name of the PCMakeLibrary

Definition at line 108 of file PCMakeListsGenerator.cpp.

108  {
109  return p_name;
110 }

References p_name.

Referenced by getFullLibraryName(), saveCMakeLibrary(), and saveCMakeLibraryFindPackageFile().

+ Here is the caller graph for this function:

◆ getOtherCommandAfter() [1/2]

PString & PCMakeLibrary::getOtherCommandAfter ( )

Gets the otherCommandAfter of the PCMakeLibrary.

Returns
otherCommandAfter of the PCMakeLibrary

Definition at line 213 of file PCMakeListsGenerator.cpp.

213  {
214  return p_otherCommandAfter;
215 }

References p_otherCommandAfter.

◆ getOtherCommandAfter() [2/2]

const PString & PCMakeLibrary::getOtherCommandAfter ( ) const

Gets the otherCommandAfter of the PCMakeLibrary.

Returns
otherCommandAfter of the PCMakeLibrary

Definition at line 206 of file PCMakeListsGenerator.cpp.

206  {
207  return p_otherCommandAfter;
208 }

References p_otherCommandAfter.

Referenced by saveCMakeLibrary().

+ Here is the caller graph for this function:

◆ getRemoveDefinitions() [1/2]

PString & PCMakeLibrary::getRemoveDefinitions ( )

Gets the removeDefinitions of the PCMakeLibrary.

Returns
removeDefinitions of the PCMakeLibrary

Definition at line 185 of file PCMakeListsGenerator.cpp.

185  {
186  return p_removeDefinitions;
187 }

References p_removeDefinitions.

◆ getRemoveDefinitions() [2/2]

const PString & PCMakeLibrary::getRemoveDefinitions ( ) const

Gets the removeDefinitions of the PCMakeLibrary.

Returns
removeDefinitions of the PCMakeLibrary

Definition at line 178 of file PCMakeListsGenerator.cpp.

178  {
179  return p_removeDefinitions;
180 }

References p_removeDefinitions.

Referenced by saveCMakeLibrary().

+ Here is the caller graph for this function:

◆ getWantGenerateFindPackage() [1/2]

bool & PCMakeLibrary::getWantGenerateFindPackage ( )

Gets the wantGenerateFindPackage of the PCMakeLibrary.

Returns
wantGenerateFindPackage of the PCMakeLibrary

Definition at line 241 of file PCMakeListsGenerator.cpp.

241  {
243 }

References p_wantGenerateFindPackage.

◆ getWantGenerateFindPackage() [2/2]

bool PCMakeLibrary::getWantGenerateFindPackage ( ) const

Gets the wantGenerateFindPackage of the PCMakeLibrary.

Returns
wantGenerateFindPackage of the PCMakeLibrary

Definition at line 234 of file PCMakeListsGenerator.cpp.

234  {
236 }

References p_wantGenerateFindPackage.

Referenced by saveCMakeLibrary(), and saveCMakeLibraryFindPackageFile().

+ Here is the caller graph for this function:

◆ initialisationPCMakeLibrary()

void PCMakeLibrary::initialisationPCMakeLibrary ( )
private

Initialisation Function of class PCMakeLibrary.

Definition at line 262 of file PCMakeListsGenerator.cpp.

262  {
263  p_isShared = false;
265 }

References p_isShared, and p_wantGenerateFindPackage.

Referenced by PCMakeLibrary().

+ Here is the caller graph for this function:

◆ operator=()

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

Operator = of class PCMakeLibrary.

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

Definition at line 30 of file PCMakeListsGenerator.cpp.

30  {
31  copyPCMakeLibrary(other);
32  return *this;
33 }

References copyPCMakeLibrary().

+ Here is the call graph for this function:

◆ setAddDefinitions()

void PCMakeLibrary::setAddDefinitions ( const PString addDefinitions)

Sets the addDefinitions of the PCMakeLibrary.

Parameters
addDefinitions: addDefinitions of the PCMakeLibrary

Definition at line 80 of file PCMakeListsGenerator.cpp.

80  {
81  p_addDefinitions = addDefinitions;
82 }

References p_addDefinitions.

◆ setInstallDirectory()

void PCMakeLibrary::setInstallDirectory ( const PPath installDirectory)

Sets the installDirectory of the PCMakeLibrary.

Parameters
installDirectory: installDirectory of the PCMakeLibrary

Definition at line 45 of file PCMakeListsGenerator.cpp.

45  {
46  p_installDirectory = installDirectory;
47 }

References p_installDirectory.

◆ setIsShared()

void PCMakeLibrary::setIsShared ( bool  isShared)

Sets the isShared of the PCMakeLibrary.

Parameters
isShared: isShared of the PCMakeLibrary

Definition at line 94 of file PCMakeListsGenerator.cpp.

94  {
95  p_isShared = isShared;
96 }

References p_isShared.

◆ setListHeaders()

void PCMakeLibrary::setListHeaders ( const PVecPath listHeaders)

Sets the listHeaders of the PCMakeLibrary.

Parameters
listHeaders: listHeaders of the PCMakeLibrary

Definition at line 66 of file PCMakeListsGenerator.cpp.

66  {
67  p_listHeaders = listHeaders;
68 }

References p_listHeaders.

◆ setListLibDependecies()

void PCMakeLibrary::setListLibDependecies ( const PVecString listLibDependecies)

Sets the listLibDependecies of the PCMakeLibrary.

Parameters
listLibDependecies: listLibDependecies of the PCMakeLibrary

Definition at line 52 of file PCMakeListsGenerator.cpp.

52  {
53  p_listLibDependecies = listLibDependecies;
54 }

References p_listLibDependecies.

◆ setListSources()

void PCMakeLibrary::setListSources ( const PVecPath listSources)

Sets the listSources of the PCMakeLibrary.

Parameters
listSources: listSources of the PCMakeLibrary

Definition at line 59 of file PCMakeListsGenerator.cpp.

59  {
60  p_listSources = listSources;
61 }

References p_listSources.

◆ setName()

void PCMakeLibrary::setName ( const PString name)

Sets the name of the PCMakeLibrary.

Parameters
name: name of the PCMakeLibrary

Definition at line 38 of file PCMakeListsGenerator.cpp.

38  {
39  p_name = name;
40 }

References p_name.

◆ setOtherCommandAfter()

void PCMakeLibrary::setOtherCommandAfter ( const PString otherCommandAfter)

Sets the otherCommandAfter of the PCMakeLibrary.

Parameters
otherCommandAfter: otherCommandAfter of the PCMakeLibrary

Definition at line 87 of file PCMakeListsGenerator.cpp.

87  {
88  p_otherCommandAfter = otherCommandAfter;
89 }

References p_otherCommandAfter.

◆ setRemoveDefinitions()

void PCMakeLibrary::setRemoveDefinitions ( const PString removeDefinitions)

Sets the removeDefinitions of the PCMakeLibrary.

Parameters
removeDefinitions: removeDefinitions of the PCMakeLibrary

Definition at line 73 of file PCMakeListsGenerator.cpp.

73  {
74  p_removeDefinitions = removeDefinitions;
75 }

References p_removeDefinitions.

◆ setWantGenerateFindPackage()

void PCMakeLibrary::setWantGenerateFindPackage ( bool  wantGenerateFindPackage)

Sets the wantGenerateFindPackage of the PCMakeLibrary.

Parameters
wantGenerateFindPackage: wantGenerateFindPackage of the PCMakeLibrary

Definition at line 101 of file PCMakeListsGenerator.cpp.

101  {
102  p_wantGenerateFindPackage = wantGenerateFindPackage;
103 }

References p_wantGenerateFindPackage.

Member Data Documentation

◆ p_addDefinitions

PString PCMakeLibrary::p_addDefinitions
private

String to pass to the add_definitions.

Definition at line 67 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getAddDefinitions(), and setAddDefinitions().

◆ p_installDirectory

PPath PCMakeLibrary::p_installDirectory
private

Name of the install directory of the library.

Definition at line 57 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getInstallDirectory(), and setInstallDirectory().

◆ p_isShared

bool PCMakeLibrary::p_isShared
private

True if the library is chared false if not.

Definition at line 71 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getIsShared(), initialisationPCMakeLibrary(), and setIsShared().

◆ p_listHeaders

PVecPath PCMakeLibrary::p_listHeaders
private

Lists of the headers.

Definition at line 63 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getListHeaders(), and setListHeaders().

◆ p_listLibDependecies

PVecString PCMakeLibrary::p_listLibDependecies
private

List of the library libraries dependencies.

Definition at line 59 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getListLibDependecies(), and setListLibDependecies().

◆ p_listSources

PVecPath PCMakeLibrary::p_listSources
private

Lists of the sources.

Definition at line 61 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getListSources(), and setListSources().

◆ p_name

PString PCMakeLibrary::p_name
private

Name of the library.

Definition at line 55 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getName(), and setName().

◆ p_otherCommandAfter

PString PCMakeLibrary::p_otherCommandAfter
private

Other command after the definition of the target.

Definition at line 69 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getOtherCommandAfter(), and setOtherCommandAfter().

◆ p_removeDefinitions

PString PCMakeLibrary::p_removeDefinitions
private

String to pass to the remove_definitions.

Definition at line 65 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getRemoveDefinitions(), and setRemoveDefinitions().

◆ p_wantGenerateFindPackage

bool PCMakeLibrary::p_wantGenerateFindPackage
private

True if we want to have the CMake find_package file generated for the given lib.

Definition at line 73 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeLibrary(), getWantGenerateFindPackage(), initialisationPCMakeLibrary(), and setWantGenerateFindPackage().


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