PhoenixHPCProxy  0.8.0
Lightweight HPC proxy
Loading...
Searching...
No Matches
PRepr.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 __PREPR_H__
8#define __PREPR_H__
9
10#include <vector>
11#include "PPath.h"
12
15 public:
16 PArgument();
17 PArgument(const PArgument & other);
18 virtual ~PArgument();
19 PArgument & operator = (const PArgument & other);
20 void setName(const PString & name);
21 void setType(const PString & type);
22 void setDefaultValue(const PString & defaultValue);
23 void setPtrRef(const PString & ptrRef);
24 const PString & getName() const;
25 PString & getName();
26 const PString & getType() const;
27 PString & getType();
28 const PString & getDefaultValue() const;
29 PString & getDefaultValue();
30 const PString & getPtrRef() const;
31 PString & getPtrRef();
32 protected:
33 void copyPArgument(const PArgument & other);
34 private:
36 PString p_name;
38 PString p_type;
42 PString p_ptrRef;
43};
44
47 public:
48 PFunction();
49 PFunction(const PFunction & other);
50 virtual ~PFunction();
51 PFunction & operator = (const PFunction & other);
52 void setName(const PString & name);
53 void setDocString(const PString & docString);
54 void setVecArgument(const std::vector<PArgument> & vecArgument);
55 void setOutputType(const PString & outputType);
56 void setTemplateDef(const PString & templateDef);
57 void setOtherCode(const PString & otherCode);
58 const PString & getName() const;
59 PString & getName();
60 const PString & getDocString() const;
61 PString & getDocString();
62 const std::vector<PArgument> & getVecArgument() const;
63 std::vector<PArgument> & getVecArgument();
64 const PString & getOutputType() const;
65 PString & getOutputType();
66 const PString & getTemplateDef() const;
67 PString & getTemplateDef();
68 const PString & getOtherCode() const;
69 PString & getOtherCode();
70 protected:
71 void copyPFunction(const PFunction & other);
72 private:
74 PString p_name;
76 PString p_docString;
78 std::vector<PArgument> p_vecArgument;
80 PString p_outputType;
84 PString p_otherCode;
85};
86
88class PSource{
89 public:
90 PSource();
91 PSource(const PSource & other);
92 virtual ~PSource();
93 PSource & operator = (const PSource & other);
94 void setName(const PPath & name);
95 void setVecFunction(const std::vector<PFunction> & vecFunction);
96 const PPath & getName() const;
97 PPath & getName();
98 const std::vector<PFunction> & getVecFunction() const;
99 std::vector<PFunction> & getVecFunction();
100 protected:
101 void copyPSource(const PSource & other);
102 private:
104 PPath p_name;
106 std::vector<PFunction> p_vecFunction;
107};
108
111 public:
112 PArchLib();
113 PArchLib(const PArchLib & other);
114 virtual ~PArchLib();
115 PArchLib & operator = (const PArchLib & other);
116 void setName(const PPath & name);
117 void setArchitecture(const PString & architecture);
118 const PPath & getName() const;
119 PPath & getName();
120 const PString & getArchitecture() const;
121 PString & getArchitecture();
122 protected:
123 void copyPArchLib(const PArchLib & other);
124 private:
126 PPath p_name;
129};
130
131
132
133#endif
134
virtual ~PArchLib()
Destructor of class PArchLib.
Definition PRepr.cpp:383
void setArchitecture(const PString &architecture)
Sets the architecture of the PArchLib.
Definition PRepr.cpp:406
const PString & getArchitecture() const
Gets the architecture of the PArchLib.
Definition PRepr.cpp:427
PArchLib()
Constructor of class PArchLib.
Definition PRepr.cpp:371
PString p_architecture
Architecture of the library.
Definition PRepr.h:128
void copyPArchLib(const PArchLib &other)
Copy Function of class PArchLib.
Definition PRepr.cpp:441
const PPath & getName() const
Gets the name of the PArchLib.
Definition PRepr.cpp:413
PPath p_name
Name of the library.
Definition PRepr.h:126
PArchLib & operator=(const PArchLib &other)
Operator = of class PArchLib.
Definition PRepr.cpp:391
void setName(const PPath &name)
Sets the name of the PArchLib.
Definition PRepr.cpp:399
const PString & getPtrRef() const
Gets the ptrRef of the PArgument.
Definition PRepr.cpp:109
void setPtrRef(const PString &ptrRef)
Sets the ptrRef of the PArgument.
Definition PRepr.cpp:60
virtual ~PArgument()
Destructor of class PArgument.
Definition PRepr.cpp:23
void copyPArgument(const PArgument &other)
Copy Function of class PArgument.
Definition PRepr.cpp:123
const PString & getDefaultValue() const
Gets the defaultValue of the PArgument.
Definition PRepr.cpp:95
PString p_ptrRef
Pointer or reference of the parameter.
Definition PRepr.h:42
PString p_defaultValue
Default value of the parameter.
Definition PRepr.h:40
PString p_type
Type of the column.
Definition PRepr.h:38
const PString & getName() const
Gets the name of the PArgument.
Definition PRepr.cpp:67
PArgument & operator=(const PArgument &other)
Operator = of class PArgument.
Definition PRepr.cpp:31
void setType(const PString &type)
Sets the type of the PArgument.
Definition PRepr.cpp:46
const PString & getType() const
Gets the type of the PArgument.
Definition PRepr.cpp:81
PString p_name
Name of the parameter.
Definition PRepr.h:36
void setName(const PString &name)
Sets the name of the PArgument.
Definition PRepr.cpp:39
PArgument()
Constructor of class PArgument.
Definition PRepr.cpp:11
void setDefaultValue(const PString &defaultValue)
Sets the defaultValue of the PArgument.
Definition PRepr.cpp:53
PString p_templateDef
Template definition of the function.
Definition PRepr.h:82
PFunction & operator=(const PFunction &other)
Operator = of class PFunction.
Definition PRepr.cpp:151
const PString & getName() const
Gets the name of the PFunction.
Definition PRepr.cpp:201
void setName(const PString &name)
Sets the name of the PFunction.
Definition PRepr.cpp:159
const PString & getDocString() const
Gets the docString of the PFunction.
Definition PRepr.cpp:215
PString p_docString
Documentation string of the current PFunction.
Definition PRepr.h:76
const PString & getOutputType() const
Gets the outputType of the PFunction.
Definition PRepr.cpp:243
PString p_otherCode
Other code which is not a function prototype.
Definition PRepr.h:84
const PString & getOtherCode() const
Gets the otherCode of the PFunction.
Definition PRepr.cpp:271
void copyPFunction(const PFunction &other)
Copy Function of class PFunction.
Definition PRepr.cpp:285
PString p_outputType
Output type of the function.
Definition PRepr.h:80
void setOutputType(const PString &outputType)
Sets the outputType of the PFunction.
Definition PRepr.cpp:180
const PString & getTemplateDef() const
Gets the templateDef of the PFunction.
Definition PRepr.cpp:257
PString p_name
Name of the function.
Definition PRepr.h:74
PFunction()
Constructor of class PFunction.
Definition PRepr.cpp:131
void setDocString(const PString &docString)
Sets the docString of the PFunction.
Definition PRepr.cpp:166
void setTemplateDef(const PString &templateDef)
Sets the templateDef of the PFunction.
Definition PRepr.cpp:187
void setOtherCode(const PString &otherCode)
Sets the otherCode of the PFunction.
Definition PRepr.cpp:194
virtual ~PFunction()
Destructor of class PFunction.
Definition PRepr.cpp:143
std::vector< PArgument > p_vecArgument
Vector of all the attributes of the PFunction.
Definition PRepr.h:78
void setVecArgument(const std::vector< PArgument > &vecArgument)
Sets the vecArgument of the PFunction.
Definition PRepr.cpp:173
const std::vector< PArgument > & getVecArgument() const
Gets the vecArgument of the PFunction.
Definition PRepr.cpp:229
void setVecFunction(const std::vector< PFunction > &vecFunction)
Sets the vecFunction of the PSource.
Definition PRepr.cpp:330
const PPath & getName() const
Gets the name of the PSource.
Definition PRepr.cpp:337
void copyPSource(const PSource &other)
Copy Function of class PSource.
Definition PRepr.cpp:365
const std::vector< PFunction > & getVecFunction() const
Gets the vecFunction of the PSource.
Definition PRepr.cpp:351
virtual ~PSource()
Destructor of class PSource.
Definition PRepr.cpp:307
PPath p_name
Name of the source file (without extention)
Definition PRepr.h:104
PSource & operator=(const PSource &other)
Operator = of class PSource.
Definition PRepr.cpp:315
std::vector< PFunction > p_vecFunction
Vector of all tables describes in the current PSource.
Definition PRepr.h:106
void setName(const PPath &name)
Sets the name of the PSource.
Definition PRepr.cpp:323
PSource()
Constructor of class PSource.
Definition PRepr.cpp:295