PhoenixGenerator  2.0.0
Set of tools to generate code
PCMakeExecutable Class Reference

Describes a CMake executable. More...

#include <PCMakeListsGenerator.h>

+ Collaboration diagram for PCMakeExecutable:

Public Member Functions

PStringgetAddDefinitions ()
 Gets the addDefinitions of the PCMakeExecutable. More...
 
const PStringgetAddDefinitions () const
 Gets the addDefinitions of the PCMakeExecutable. More...
 
PPathgetInstallDirectory ()
 Gets the installDirectory of the PCMakeExecutable. More...
 
const PPathgetInstallDirectory () const
 Gets the installDirectory of the PCMakeExecutable. More...
 
PVecStringgetListDependecies ()
 Gets the listDependecies of the PCMakeExecutable. More...
 
const PVecStringgetListDependecies () const
 Gets the listDependecies of the PCMakeExecutable. More...
 
PVecPathgetListSources ()
 Gets the listSources of the PCMakeExecutable. More...
 
const PVecPathgetListSources () const
 Gets the listSources of the PCMakeExecutable. More...
 
PStringgetName ()
 Gets the name of the PCMakeExecutable. More...
 
const PStringgetName () const
 Gets the name of the PCMakeExecutable. More...
 
PStringgetOtherCommandAfter ()
 Gets the otherCommandAfter of the PCMakeExecutable. More...
 
const PStringgetOtherCommandAfter () const
 Gets the otherCommandAfter of the PCMakeExecutable. More...
 
PStringgetRemoveDefinitions ()
 Gets the removeDefinitions of the PCMakeExecutable. More...
 
const PStringgetRemoveDefinitions () const
 Gets the removeDefinitions of the PCMakeExecutable. More...
 
bool & getWantGenerateFindPackage ()
 Gets the wantGenerateFindPackage of the PCMakeExecutable. More...
 
bool getWantGenerateFindPackage () const
 Gets the wantGenerateFindPackage of the PCMakeExecutable. More...
 
PCMakeExecutableoperator= (const PCMakeExecutable &other)
 Operator = of class PCMakeExecutable. More...
 
 PCMakeExecutable ()
 Constructor of class PCMakeExecutable. More...
 
 PCMakeExecutable (const PCMakeExecutable &other)
 Copy Constructor of class PCMakeExecutable. More...
 
void setAddDefinitions (const PString &addDefinitions)
 Sets the addDefinitions of the PCMakeExecutable. More...
 
void setInstallDirectory (const PPath &installDirectory)
 Sets the installDirectory of the PCMakeExecutable. More...
 
void setListDependecies (const PVecString &listDependecies)
 Sets the listDependecies of the PCMakeExecutable. More...
 
void setListSources (const PVecPath &listSources)
 Sets the listSources of the PCMakeExecutable. More...
 
void setName (const PString &name)
 Sets the name of the PCMakeExecutable. More...
 
void setOtherCommandAfter (const PString &otherCommandAfter)
 Sets the otherCommandAfter of the PCMakeExecutable. More...
 
void setRemoveDefinitions (const PString &removeDefinitions)
 Sets the removeDefinitions of the PCMakeExecutable. More...
 
void setWantGenerateFindPackage (bool wantGenerateFindPackage)
 Sets the wantGenerateFindPackage of the PCMakeExecutable. More...
 
virtual ~PCMakeExecutable ()
 Destructor of class PCMakeExecutable. More...
 

Protected Member Functions

void copyPCMakeExecutable (const PCMakeExecutable &other)
 Copy Function of class PCMakeExecutable. More...
 

Private Member Functions

void initialisationPCMakeExecutable ()
 Initialisation Function of class PCMakeExecutable. More...
 

Private Attributes

PString p_addDefinitions
 String to pass to the add_definitions. More...
 
PPath p_installDirectory
 Name of the install directory of the executable. More...
 
PVecString p_listDependecies
 List of the executable libraries dependencies. More...
 
PVecPath p_listSources
 Lists of the sources. More...
 
PString p_name
 Name of the executable. 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 executable. More...
 

Detailed Description

Describes a CMake executable.

Definition at line 77 of file PCMakeListsGenerator.h.

Constructor & Destructor Documentation

◆ PCMakeExecutable() [1/2]

PCMakeExecutable::PCMakeExecutable ( )

Constructor of class PCMakeExecutable.

Definition at line 268 of file PCMakeListsGenerator.cpp.

268  {
270 }
void initialisationPCMakeExecutable()
Initialisation Function of class PCMakeExecutable.

References initialisationPCMakeExecutable().

+ Here is the call graph for this function:

◆ PCMakeExecutable() [2/2]

PCMakeExecutable::PCMakeExecutable ( const PCMakeExecutable other)

Copy Constructor of class PCMakeExecutable.

Parameters
other: PCMakeExecutable we want ot copy

Definition at line 275 of file PCMakeListsGenerator.cpp.

275  {
276  copyPCMakeExecutable(other);
277 }
void copyPCMakeExecutable(const PCMakeExecutable &other)
Copy Function of class PCMakeExecutable.

References copyPCMakeExecutable().

+ Here is the call graph for this function:

◆ ~PCMakeExecutable()

PCMakeExecutable::~PCMakeExecutable ( )
virtual

Destructor of class PCMakeExecutable.

Definition at line 280 of file PCMakeListsGenerator.cpp.

280  {
281 
282 }

Member Function Documentation

◆ copyPCMakeExecutable()

void PCMakeExecutable::copyPCMakeExecutable ( const PCMakeExecutable other)
protected

Copy Function of class PCMakeExecutable.

Parameters
other: PCMakeExecutable we want ot copy

Definition at line 464 of file PCMakeListsGenerator.cpp.

464  {
465  p_name = other.p_name;
473 }
PString p_addDefinitions
String to pass to the add_definitions.
PString p_removeDefinitions
String to pass to the remove_definitions.
PVecString p_listDependecies
List of the executable libraries dependencies.
PPath p_installDirectory
Name of the install directory of the executable.
PVecPath p_listSources
Lists of the sources.
PString p_otherCommandAfter
Other command after the definition of the target.
PString p_name
Name of the executable.
bool p_wantGenerateFindPackage
True if we want to have the CMake find_package file generated for the given executable.

References p_addDefinitions, p_installDirectory, p_listDependecies, p_listSources, p_name, p_otherCommandAfter, p_removeDefinitions, and p_wantGenerateFindPackage.

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

+ Here is the caller graph for this function:

◆ getAddDefinitions() [1/2]

PString & PCMakeExecutable::getAddDefinitions ( )

Gets the addDefinitions of the PCMakeExecutable.

Returns
addDefinitions of the PCMakeExecutable

Definition at line 429 of file PCMakeListsGenerator.cpp.

429  {
430  return p_addDefinitions;
431 }

References p_addDefinitions.

◆ getAddDefinitions() [2/2]

const PString & PCMakeExecutable::getAddDefinitions ( ) const

Gets the addDefinitions of the PCMakeExecutable.

Returns
addDefinitions of the PCMakeExecutable

Definition at line 422 of file PCMakeListsGenerator.cpp.

422  {
423  return p_addDefinitions;
424 }

References p_addDefinitions.

Referenced by saveCMakeExecutable().

+ Here is the caller graph for this function:

◆ getInstallDirectory() [1/2]

PPath & PCMakeExecutable::getInstallDirectory ( )

Gets the installDirectory of the PCMakeExecutable.

Returns
installDirectory of the PCMakeExecutable

Definition at line 373 of file PCMakeListsGenerator.cpp.

373  {
374  return p_installDirectory;
375 }

References p_installDirectory.

◆ getInstallDirectory() [2/2]

const PPath & PCMakeExecutable::getInstallDirectory ( ) const

Gets the installDirectory of the PCMakeExecutable.

Returns
installDirectory of the PCMakeExecutable

Definition at line 366 of file PCMakeListsGenerator.cpp.

366  {
367  return p_installDirectory;
368 }

References p_installDirectory.

Referenced by saveCMakeExecutable().

+ Here is the caller graph for this function:

◆ getListDependecies() [1/2]

PVecString & PCMakeExecutable::getListDependecies ( )

Gets the listDependecies of the PCMakeExecutable.

Returns
listDependecies of the PCMakeExecutable

Definition at line 387 of file PCMakeListsGenerator.cpp.

387  {
388  return p_listDependecies;
389 }

References p_listDependecies.

◆ getListDependecies() [2/2]

const PVecString & PCMakeExecutable::getListDependecies ( ) const

Gets the listDependecies of the PCMakeExecutable.

Returns
listDependecies of the PCMakeExecutable

Definition at line 380 of file PCMakeListsGenerator.cpp.

380  {
381  return p_listDependecies;
382 }

References p_listDependecies.

Referenced by saveCMakeExecutable().

+ Here is the caller graph for this function:

◆ getListSources() [1/2]

PVecPath & PCMakeExecutable::getListSources ( )

Gets the listSources of the PCMakeExecutable.

Returns
listSources of the PCMakeExecutable

Definition at line 401 of file PCMakeListsGenerator.cpp.

401  {
402  return p_listSources;
403 }

References p_listSources.

◆ getListSources() [2/2]

const PVecPath & PCMakeExecutable::getListSources ( ) const

Gets the listSources of the PCMakeExecutable.

Returns
listSources of the PCMakeExecutable

Definition at line 394 of file PCMakeListsGenerator.cpp.

394  {
395  return p_listSources;
396 }

References p_listSources.

Referenced by saveCMakeExecutable().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PCMakeExecutable::getName ( )

Gets the name of the PCMakeExecutable.

Returns
name of the PCMakeExecutable

Definition at line 359 of file PCMakeListsGenerator.cpp.

359  {
360  return p_name;
361 }

References p_name.

◆ getName() [2/2]

const PString & PCMakeExecutable::getName ( ) const

Gets the name of the PCMakeExecutable.

Returns
name of the PCMakeExecutable

Definition at line 352 of file PCMakeListsGenerator.cpp.

352  {
353  return p_name;
354 }

References p_name.

Referenced by saveCMakeExecutable().

+ Here is the caller graph for this function:

◆ getOtherCommandAfter() [1/2]

PString & PCMakeExecutable::getOtherCommandAfter ( )

Gets the otherCommandAfter of the PCMakeExecutable.

Returns
otherCommandAfter of the PCMakeExecutable

Definition at line 443 of file PCMakeListsGenerator.cpp.

443  {
444  return p_otherCommandAfter;
445 }

References p_otherCommandAfter.

◆ getOtherCommandAfter() [2/2]

const PString & PCMakeExecutable::getOtherCommandAfter ( ) const

Gets the otherCommandAfter of the PCMakeExecutable.

Returns
otherCommandAfter of the PCMakeExecutable

Definition at line 436 of file PCMakeListsGenerator.cpp.

436  {
437  return p_otherCommandAfter;
438 }

References p_otherCommandAfter.

Referenced by saveCMakeExecutable().

+ Here is the caller graph for this function:

◆ getRemoveDefinitions() [1/2]

PString & PCMakeExecutable::getRemoveDefinitions ( )

Gets the removeDefinitions of the PCMakeExecutable.

Returns
removeDefinitions of the PCMakeExecutable

Definition at line 415 of file PCMakeListsGenerator.cpp.

415  {
416  return p_removeDefinitions;
417 }

References p_removeDefinitions.

◆ getRemoveDefinitions() [2/2]

const PString & PCMakeExecutable::getRemoveDefinitions ( ) const

Gets the removeDefinitions of the PCMakeExecutable.

Returns
removeDefinitions of the PCMakeExecutable

Definition at line 408 of file PCMakeListsGenerator.cpp.

408  {
409  return p_removeDefinitions;
410 }

References p_removeDefinitions.

Referenced by saveCMakeExecutable().

+ Here is the caller graph for this function:

◆ getWantGenerateFindPackage() [1/2]

bool & PCMakeExecutable::getWantGenerateFindPackage ( )

Gets the wantGenerateFindPackage of the PCMakeExecutable.

Returns
wantGenerateFindPackage of the PCMakeExecutable

Definition at line 457 of file PCMakeListsGenerator.cpp.

457  {
459 }

References p_wantGenerateFindPackage.

◆ getWantGenerateFindPackage() [2/2]

bool PCMakeExecutable::getWantGenerateFindPackage ( ) const

Gets the wantGenerateFindPackage of the PCMakeExecutable.

Returns
wantGenerateFindPackage of the PCMakeExecutable

Definition at line 450 of file PCMakeListsGenerator.cpp.

450  {
452 }

References p_wantGenerateFindPackage.

◆ initialisationPCMakeExecutable()

void PCMakeExecutable::initialisationPCMakeExecutable ( )
private

Initialisation Function of class PCMakeExecutable.

Definition at line 476 of file PCMakeListsGenerator.cpp.

476  {
478 }

References p_wantGenerateFindPackage.

Referenced by PCMakeExecutable().

+ Here is the caller graph for this function:

◆ operator=()

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

Operator = of class PCMakeExecutable.

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

Definition at line 288 of file PCMakeListsGenerator.cpp.

288  {
289  copyPCMakeExecutable(other);
290  return *this;
291 }

References copyPCMakeExecutable().

+ Here is the call graph for this function:

◆ setAddDefinitions()

void PCMakeExecutable::setAddDefinitions ( const PString addDefinitions)

Sets the addDefinitions of the PCMakeExecutable.

Parameters
addDefinitions: addDefinitions of the PCMakeExecutable

Definition at line 331 of file PCMakeListsGenerator.cpp.

331  {
332  p_addDefinitions = addDefinitions;
333 }

References p_addDefinitions.

◆ setInstallDirectory()

void PCMakeExecutable::setInstallDirectory ( const PPath installDirectory)

Sets the installDirectory of the PCMakeExecutable.

Parameters
installDirectory: installDirectory of the PCMakeExecutable

Definition at line 303 of file PCMakeListsGenerator.cpp.

303  {
304  p_installDirectory = installDirectory;
305 }

References p_installDirectory.

◆ setListDependecies()

void PCMakeExecutable::setListDependecies ( const PVecString listDependecies)

Sets the listDependecies of the PCMakeExecutable.

Parameters
listDependecies: listDependecies of the PCMakeExecutable

Definition at line 310 of file PCMakeListsGenerator.cpp.

310  {
311  p_listDependecies = listDependecies;
312 }

References p_listDependecies.

◆ setListSources()

void PCMakeExecutable::setListSources ( const PVecPath listSources)

Sets the listSources of the PCMakeExecutable.

Parameters
listSources: listSources of the PCMakeExecutable

Definition at line 317 of file PCMakeListsGenerator.cpp.

317  {
318  p_listSources = listSources;
319 }

References p_listSources.

◆ setName()

void PCMakeExecutable::setName ( const PString name)

Sets the name of the PCMakeExecutable.

Parameters
name: name of the PCMakeExecutable

Definition at line 296 of file PCMakeListsGenerator.cpp.

296  {
297  p_name = name;
298 }

References p_name.

◆ setOtherCommandAfter()

void PCMakeExecutable::setOtherCommandAfter ( const PString otherCommandAfter)

Sets the otherCommandAfter of the PCMakeExecutable.

Parameters
otherCommandAfter: otherCommandAfter of the PCMakeExecutable

Definition at line 338 of file PCMakeListsGenerator.cpp.

338  {
339  p_otherCommandAfter = otherCommandAfter;
340 }

References p_otherCommandAfter.

◆ setRemoveDefinitions()

void PCMakeExecutable::setRemoveDefinitions ( const PString removeDefinitions)

Sets the removeDefinitions of the PCMakeExecutable.

Parameters
removeDefinitions: removeDefinitions of the PCMakeExecutable

Definition at line 324 of file PCMakeListsGenerator.cpp.

324  {
325  p_removeDefinitions = removeDefinitions;
326 }

References p_removeDefinitions.

◆ setWantGenerateFindPackage()

void PCMakeExecutable::setWantGenerateFindPackage ( bool  wantGenerateFindPackage)

Sets the wantGenerateFindPackage of the PCMakeExecutable.

Parameters
wantGenerateFindPackage: wantGenerateFindPackage of the PCMakeExecutable

Definition at line 345 of file PCMakeListsGenerator.cpp.

345  {
346  p_wantGenerateFindPackage = wantGenerateFindPackage;
347 }

References p_wantGenerateFindPackage.

Member Data Documentation

◆ p_addDefinitions

PString PCMakeExecutable::p_addDefinitions
private

String to pass to the add_definitions.

Definition at line 122 of file PCMakeListsGenerator.h.

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

◆ p_installDirectory

PPath PCMakeExecutable::p_installDirectory
private

Name of the install directory of the executable.

Definition at line 114 of file PCMakeListsGenerator.h.

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

◆ p_listDependecies

PVecString PCMakeExecutable::p_listDependecies
private

List of the executable libraries dependencies.

Definition at line 116 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeExecutable(), getListDependecies(), and setListDependecies().

◆ p_listSources

PVecPath PCMakeExecutable::p_listSources
private

Lists of the sources.

Definition at line 118 of file PCMakeListsGenerator.h.

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

◆ p_name

PString PCMakeExecutable::p_name
private

Name of the executable.

Definition at line 112 of file PCMakeListsGenerator.h.

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

◆ p_otherCommandAfter

PString PCMakeExecutable::p_otherCommandAfter
private

Other command after the definition of the target.

Definition at line 124 of file PCMakeListsGenerator.h.

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

◆ p_removeDefinitions

PString PCMakeExecutable::p_removeDefinitions
private

String to pass to the remove_definitions.

Definition at line 120 of file PCMakeListsGenerator.h.

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

◆ p_wantGenerateFindPackage

bool PCMakeExecutable::p_wantGenerateFindPackage
private

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

Definition at line 126 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeExecutable(), getWantGenerateFindPackage(), initialisationPCMakeExecutable(), and setWantGenerateFindPackage().


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