PhoenixGenerator  2.0.0
Set of tools to generate code
PCMakeListsGenerator Class Reference

Describes a CMakeLists.txt file. More...

#include <PCMakeListsGenerator.h>

+ Collaboration diagram for PCMakeListsGenerator:

Public Member Functions

PPathgetCmakeModulePath ()
 Gets the cmakeModulePath of the PCMakeListsGenerator. More...
 
const PPathgetCmakeModulePath () const
 Gets the cmakeModulePath of the PCMakeListsGenerator. More...
 
std::vector< PCMakeExecutable > & getListExecutable ()
 Gets the listExecutable of the PCMakeListsGenerator. More...
 
const std::vector< PCMakeExecutable > & getListExecutable () const
 Gets the listExecutable of the PCMakeListsGenerator. More...
 
PVecPathgetListIncludeDirectories ()
 Gets the listIncludeDirectories of the PCMakeListsGenerator. More...
 
const PVecPathgetListIncludeDirectories () const
 Gets the listIncludeDirectories of the PCMakeListsGenerator. More...
 
std::vector< PCMakeLibrary > & getListLibraries ()
 Gets the listLibraries of the PCMakeListsGenerator. More...
 
const std::vector< PCMakeLibrary > & getListLibraries () const
 Gets the listLibraries of the PCMakeListsGenerator. More...
 
PVecPathgetListLinkDirecories ()
 Gets the listLinkDirecories of the PCMakeListsGenerator. More...
 
const PVecPathgetListLinkDirecories () const
 Gets the listLinkDirecories of the PCMakeListsGenerator. More...
 
PVecStringgetListPackage ()
 Gets the listPackage of the PCMakeListsGenerator. More...
 
const PVecStringgetListPackage () const
 Gets the listPackage of the PCMakeListsGenerator. More...
 
PStringgetProjectName ()
 Gets the projectName of the PCMakeListsGenerator. More...
 
const PStringgetProjectName () const
 Gets the projectName of the PCMakeListsGenerator. More...
 
PPathgetTestDirectory ()
 Gets the testDirectory of the PCMakeListsGenerator. More...
 
const PPathgetTestDirectory () const
 Gets the testDirectory of the PCMakeListsGenerator. More...
 
PCMakeListsGeneratoroperator= (const PCMakeListsGenerator &other)
 Operator = of class PCMakeListsGenerator. More...
 
 PCMakeListsGenerator ()
 Constructor of class PCMakeListsGenerator. More...
 
 PCMakeListsGenerator (const PCMakeListsGenerator &other)
 Copy Constructor of class PCMakeListsGenerator. More...
 
void setCmakeModulePath (const PPath &cmakeModulePath)
 Sets the cmakeModulePath of the PCMakeListsGenerator. More...
 
void setListExecutable (const std::vector< PCMakeExecutable > &listExecutable)
 Sets the listExecutable of the PCMakeListsGenerator. More...
 
void setListIncludeDirectories (const PVecPath &listIncludeDirectories)
 Sets the listIncludeDirectories of the PCMakeListsGenerator. More...
 
void setListLibraries (const std::vector< PCMakeLibrary > &listLibraries)
 Sets the listLibraries of the PCMakeListsGenerator. More...
 
void setListLinkDirecories (const PVecPath &listLinkDirecories)
 Sets the listLinkDirecories of the PCMakeListsGenerator. More...
 
void setListPackage (const PVecString &listPackage)
 Sets the listPackage of the PCMakeListsGenerator. More...
 
void setProjectName (const PString &projectName)
 Sets the projectName of the PCMakeListsGenerator. More...
 
void setTestDirectory (const PPath &testDirectory)
 Sets the testDirectory of the PCMakeListsGenerator. More...
 
virtual ~PCMakeListsGenerator ()
 Destructor of class PCMakeListsGenerator. More...
 

Protected Member Functions

void copyPCMakeListsGenerator (const PCMakeListsGenerator &other)
 Copy Function of class PCMakeListsGenerator. More...
 

Private Member Functions

void initialisationPCMakeListsGenerator ()
 Initialisation Function of class PCMakeListsGenerator. More...
 

Private Attributes

PPath p_cmakeModulePath
 CMAKE_MODULE_PATH variable. More...
 
std::vector< PCMakeExecutablep_listExecutable
 List of the executable. More...
 
PVecPath p_listIncludeDirectories
 Lists of the include directories. More...
 
std::vector< PCMakeLibraryp_listLibraries
 List of the libraries. More...
 
PVecPath p_listLinkDirecories
 Lists of the link directories. More...
 
PVecString p_listPackage
 List of the packages dependencies. More...
 
PString p_projectName
 Name of the project. More...
 
PPath p_testDirectory
 Test sub-directory. More...
 

Detailed Description

Describes a CMakeLists.txt file.

Definition at line 130 of file PCMakeListsGenerator.h.

Constructor & Destructor Documentation

◆ PCMakeListsGenerator() [1/2]

PCMakeListsGenerator::PCMakeListsGenerator ( )

Constructor of class PCMakeListsGenerator.

Definition at line 481 of file PCMakeListsGenerator.cpp.

481  {
483 }
void initialisationPCMakeListsGenerator()
Initialisation Function of class PCMakeListsGenerator.

References initialisationPCMakeListsGenerator().

+ Here is the call graph for this function:

◆ PCMakeListsGenerator() [2/2]

PCMakeListsGenerator::PCMakeListsGenerator ( const PCMakeListsGenerator other)

Copy Constructor of class PCMakeListsGenerator.

Parameters
other: PCMakeListsGenerator we want ot copy

Definition at line 488 of file PCMakeListsGenerator.cpp.

488  {
490 }
void copyPCMakeListsGenerator(const PCMakeListsGenerator &other)
Copy Function of class PCMakeListsGenerator.

References copyPCMakeListsGenerator().

+ Here is the call graph for this function:

◆ ~PCMakeListsGenerator()

PCMakeListsGenerator::~PCMakeListsGenerator ( )
virtual

Destructor of class PCMakeListsGenerator.

Definition at line 493 of file PCMakeListsGenerator.cpp.

493  {
494 
495 }

Member Function Documentation

◆ copyPCMakeListsGenerator()

void PCMakeListsGenerator::copyPCMakeListsGenerator ( const PCMakeListsGenerator other)
protected

Copy Function of class PCMakeListsGenerator.

Parameters
other: PCMakeListsGenerator we want ot copy

Definition at line 677 of file PCMakeListsGenerator.cpp.

677  {
686 }
PVecPath p_listLinkDirecories
Lists of the link directories.
PVecString p_listPackage
List of the packages dependencies.
std::vector< PCMakeExecutable > p_listExecutable
List of the executable.
PString p_projectName
Name of the project.
PVecPath p_listIncludeDirectories
Lists of the include directories.
PPath p_testDirectory
Test sub-directory.
std::vector< PCMakeLibrary > p_listLibraries
List of the libraries.
PPath p_cmakeModulePath
CMAKE_MODULE_PATH variable.

References p_cmakeModulePath, p_listExecutable, p_listIncludeDirectories, p_listLibraries, p_listLinkDirecories, p_listPackage, p_projectName, and p_testDirectory.

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

+ Here is the caller graph for this function:

◆ getCmakeModulePath() [1/2]

PPath & PCMakeListsGenerator::getCmakeModulePath ( )

Gets the cmakeModulePath of the PCMakeListsGenerator.

Returns
cmakeModulePath of the PCMakeListsGenerator

Definition at line 586 of file PCMakeListsGenerator.cpp.

586  {
587  return p_cmakeModulePath;
588 }

References p_cmakeModulePath.

◆ getCmakeModulePath() [2/2]

const PPath & PCMakeListsGenerator::getCmakeModulePath ( ) const

Gets the cmakeModulePath of the PCMakeListsGenerator.

Returns
cmakeModulePath of the PCMakeListsGenerator

Definition at line 579 of file PCMakeListsGenerator.cpp.

579  {
580  return p_cmakeModulePath;
581 }

References p_cmakeModulePath.

Referenced by saveCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ getListExecutable() [1/2]

std::vector< PCMakeExecutable > & PCMakeListsGenerator::getListExecutable ( )

Gets the listExecutable of the PCMakeListsGenerator.

Returns
listExecutable of the PCMakeListsGenerator

Definition at line 656 of file PCMakeListsGenerator.cpp.

656  {
657  return p_listExecutable;
658 }

References p_listExecutable.

◆ getListExecutable() [2/2]

const std::vector< PCMakeExecutable > & PCMakeListsGenerator::getListExecutable ( ) const

Gets the listExecutable of the PCMakeListsGenerator.

Returns
listExecutable of the PCMakeListsGenerator

Definition at line 649 of file PCMakeListsGenerator.cpp.

649  {
650  return p_listExecutable;
651 }

References p_listExecutable.

Referenced by saveCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ getListIncludeDirectories() [1/2]

PVecPath & PCMakeListsGenerator::getListIncludeDirectories ( )

Gets the listIncludeDirectories of the PCMakeListsGenerator.

Returns
listIncludeDirectories of the PCMakeListsGenerator

Definition at line 614 of file PCMakeListsGenerator.cpp.

614  {
616 }

References p_listIncludeDirectories.

◆ getListIncludeDirectories() [2/2]

const PVecPath & PCMakeListsGenerator::getListIncludeDirectories ( ) const

Gets the listIncludeDirectories of the PCMakeListsGenerator.

Returns
listIncludeDirectories of the PCMakeListsGenerator

Definition at line 607 of file PCMakeListsGenerator.cpp.

607  {
609 }

References p_listIncludeDirectories.

Referenced by saveCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ getListLibraries() [1/2]

std::vector< PCMakeLibrary > & PCMakeListsGenerator::getListLibraries ( )

Gets the listLibraries of the PCMakeListsGenerator.

Returns
listLibraries of the PCMakeListsGenerator

Definition at line 642 of file PCMakeListsGenerator.cpp.

642  {
643  return p_listLibraries;
644 }

References p_listLibraries.

◆ getListLibraries() [2/2]

const std::vector< PCMakeLibrary > & PCMakeListsGenerator::getListLibraries ( ) const

Gets the listLibraries of the PCMakeListsGenerator.

Returns
listLibraries of the PCMakeListsGenerator

Definition at line 635 of file PCMakeListsGenerator.cpp.

635  {
636  return p_listLibraries;
637 }

References p_listLibraries.

Referenced by saveCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ getListLinkDirecories() [1/2]

PVecPath & PCMakeListsGenerator::getListLinkDirecories ( )

Gets the listLinkDirecories of the PCMakeListsGenerator.

Returns
listLinkDirecories of the PCMakeListsGenerator

Definition at line 628 of file PCMakeListsGenerator.cpp.

628  {
629  return p_listLinkDirecories;
630 }

References p_listLinkDirecories.

◆ getListLinkDirecories() [2/2]

const PVecPath & PCMakeListsGenerator::getListLinkDirecories ( ) const

Gets the listLinkDirecories of the PCMakeListsGenerator.

Returns
listLinkDirecories of the PCMakeListsGenerator

Definition at line 621 of file PCMakeListsGenerator.cpp.

621  {
622  return p_listLinkDirecories;
623 }

References p_listLinkDirecories.

Referenced by saveCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ getListPackage() [1/2]

PVecString & PCMakeListsGenerator::getListPackage ( )

Gets the listPackage of the PCMakeListsGenerator.

Returns
listPackage of the PCMakeListsGenerator

Definition at line 600 of file PCMakeListsGenerator.cpp.

600  {
601  return p_listPackage;
602 }

References p_listPackage.

◆ getListPackage() [2/2]

const PVecString & PCMakeListsGenerator::getListPackage ( ) const

Gets the listPackage of the PCMakeListsGenerator.

Returns
listPackage of the PCMakeListsGenerator

Definition at line 593 of file PCMakeListsGenerator.cpp.

593  {
594  return p_listPackage;
595 }

References p_listPackage.

Referenced by saveCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ getProjectName() [1/2]

PString & PCMakeListsGenerator::getProjectName ( )

Gets the projectName of the PCMakeListsGenerator.

Returns
projectName of the PCMakeListsGenerator

Definition at line 572 of file PCMakeListsGenerator.cpp.

572  {
573  return p_projectName;
574 }

References p_projectName.

◆ getProjectName() [2/2]

const PString & PCMakeListsGenerator::getProjectName ( ) const

Gets the projectName of the PCMakeListsGenerator.

Returns
projectName of the PCMakeListsGenerator

Definition at line 565 of file PCMakeListsGenerator.cpp.

565  {
566  return p_projectName;
567 }

References p_projectName.

Referenced by saveCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ getTestDirectory() [1/2]

PPath & PCMakeListsGenerator::getTestDirectory ( )

Gets the testDirectory of the PCMakeListsGenerator.

Returns
testDirectory of the PCMakeListsGenerator

Definition at line 670 of file PCMakeListsGenerator.cpp.

670  {
671  return p_testDirectory;
672 }

References p_testDirectory.

◆ getTestDirectory() [2/2]

const PPath & PCMakeListsGenerator::getTestDirectory ( ) const

Gets the testDirectory of the PCMakeListsGenerator.

Returns
testDirectory of the PCMakeListsGenerator

Definition at line 663 of file PCMakeListsGenerator.cpp.

663  {
664  return p_testDirectory;
665 }

References p_testDirectory.

Referenced by saveCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ initialisationPCMakeListsGenerator()

void PCMakeListsGenerator::initialisationPCMakeListsGenerator ( )
private

Initialisation Function of class PCMakeListsGenerator.

Definition at line 689 of file PCMakeListsGenerator.cpp.

689  {
690 
691 }

Referenced by PCMakeListsGenerator().

+ Here is the caller graph for this function:

◆ operator=()

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

Operator = of class PCMakeListsGenerator.

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

Definition at line 501 of file PCMakeListsGenerator.cpp.

501  {
503  return *this;
504 }

References copyPCMakeListsGenerator().

+ Here is the call graph for this function:

◆ setCmakeModulePath()

void PCMakeListsGenerator::setCmakeModulePath ( const PPath cmakeModulePath)

Sets the cmakeModulePath of the PCMakeListsGenerator.

Parameters
cmakeModulePath: cmakeModulePath of the PCMakeListsGenerator

Definition at line 516 of file PCMakeListsGenerator.cpp.

516  {
517  p_cmakeModulePath = cmakeModulePath;
518 }

References p_cmakeModulePath.

◆ setListExecutable()

void PCMakeListsGenerator::setListExecutable ( const std::vector< PCMakeExecutable > &  listExecutable)

Sets the listExecutable of the PCMakeListsGenerator.

Parameters
listExecutable: listExecutable of the PCMakeListsGenerator

Definition at line 551 of file PCMakeListsGenerator.cpp.

551  {
552  p_listExecutable = listExecutable;
553 }

References p_listExecutable.

◆ setListIncludeDirectories()

void PCMakeListsGenerator::setListIncludeDirectories ( const PVecPath listIncludeDirectories)

Sets the listIncludeDirectories of the PCMakeListsGenerator.

Parameters
listIncludeDirectories: listIncludeDirectories of the PCMakeListsGenerator

Definition at line 530 of file PCMakeListsGenerator.cpp.

530  {
531  p_listIncludeDirectories = listIncludeDirectories;
532 }

References p_listIncludeDirectories.

◆ setListLibraries()

void PCMakeListsGenerator::setListLibraries ( const std::vector< PCMakeLibrary > &  listLibraries)

Sets the listLibraries of the PCMakeListsGenerator.

Parameters
listLibraries: listLibraries of the PCMakeListsGenerator

Definition at line 544 of file PCMakeListsGenerator.cpp.

544  {
545  p_listLibraries = listLibraries;
546 }

References p_listLibraries.

◆ setListLinkDirecories()

void PCMakeListsGenerator::setListLinkDirecories ( const PVecPath listLinkDirecories)

Sets the listLinkDirecories of the PCMakeListsGenerator.

Parameters
listLinkDirecories: listLinkDirecories of the PCMakeListsGenerator

Definition at line 537 of file PCMakeListsGenerator.cpp.

537  {
538  p_listLinkDirecories = listLinkDirecories;
539 }

References p_listLinkDirecories.

◆ setListPackage()

void PCMakeListsGenerator::setListPackage ( const PVecString listPackage)

Sets the listPackage of the PCMakeListsGenerator.

Parameters
listPackage: listPackage of the PCMakeListsGenerator

Definition at line 523 of file PCMakeListsGenerator.cpp.

523  {
524  p_listPackage = listPackage;
525 }

References p_listPackage.

◆ setProjectName()

void PCMakeListsGenerator::setProjectName ( const PString projectName)

Sets the projectName of the PCMakeListsGenerator.

Parameters
projectName: projectName of the PCMakeListsGenerator

Definition at line 509 of file PCMakeListsGenerator.cpp.

509  {
510  p_projectName = projectName;
511 }

References p_projectName.

◆ setTestDirectory()

void PCMakeListsGenerator::setTestDirectory ( const PPath testDirectory)

Sets the testDirectory of the PCMakeListsGenerator.

Parameters
testDirectory: testDirectory of the PCMakeListsGenerator

Definition at line 558 of file PCMakeListsGenerator.cpp.

558  {
559  p_testDirectory = testDirectory;
560 }

References p_testDirectory.

Member Data Documentation

◆ p_cmakeModulePath

PPath PCMakeListsGenerator::p_cmakeModulePath
private

CMAKE_MODULE_PATH variable.

Definition at line 167 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeListsGenerator(), getCmakeModulePath(), and setCmakeModulePath().

◆ p_listExecutable

std::vector<PCMakeExecutable> PCMakeListsGenerator::p_listExecutable
private

List of the executable.

Definition at line 177 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeListsGenerator(), getListExecutable(), and setListExecutable().

◆ p_listIncludeDirectories

PVecPath PCMakeListsGenerator::p_listIncludeDirectories
private

Lists of the include directories.

Definition at line 171 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeListsGenerator(), getListIncludeDirectories(), and setListIncludeDirectories().

◆ p_listLibraries

std::vector<PCMakeLibrary> PCMakeListsGenerator::p_listLibraries
private

List of the libraries.

Definition at line 175 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeListsGenerator(), getListLibraries(), and setListLibraries().

◆ p_listLinkDirecories

PVecPath PCMakeListsGenerator::p_listLinkDirecories
private

Lists of the link directories.

Definition at line 173 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeListsGenerator(), getListLinkDirecories(), and setListLinkDirecories().

◆ p_listPackage

PVecString PCMakeListsGenerator::p_listPackage
private

List of the packages dependencies.

Definition at line 169 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeListsGenerator(), getListPackage(), and setListPackage().

◆ p_projectName

PString PCMakeListsGenerator::p_projectName
private

Name of the project.

Definition at line 165 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeListsGenerator(), getProjectName(), and setProjectName().

◆ p_testDirectory

PPath PCMakeListsGenerator::p_testDirectory
private

Test sub-directory.

Definition at line 179 of file PCMakeListsGenerator.h.

Referenced by copyPCMakeListsGenerator(), getTestDirectory(), and setTestDirectory().


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