PhoenixHPCProxy  0.8.0
Lightweight HPC proxy
Loading...
Searching...
No Matches
PRepr.cpp
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
8#include "PRepr.h"
9
14
16
19 copyPArgument(other);
20}
21
26
28
32 copyPArgument(other);
33 return *this;
34}
35
37
39void PArgument::setName(const PString & name){
40 p_name = name;
41}
42
44
46void PArgument::setType(const PString & type){
47 p_type = type;
48}
49
51
53void PArgument::setDefaultValue(const PString & defaultValue){
54 p_defaultValue = defaultValue;
55}
56
58
60void PArgument::setPtrRef(const PString & ptrRef){
61 p_ptrRef = ptrRef;
62}
63
65
67const PString & PArgument::getName() const{
68 return p_name;
69}
70
72
75 return p_name;
76}
77
79
81const PString & PArgument::getType() const{
82 return p_type;
83}
84
86
89 return p_type;
90}
91
93
95const PString & PArgument::getDefaultValue() const{
96 return p_defaultValue;
97}
98
100
103 return p_defaultValue;
104}
105
107
109const PString & PArgument::getPtrRef() const{
110 return p_ptrRef;
111}
112
114
117 return p_ptrRef;
118}
119
121
124 p_name = other.p_name;
125 p_type = other.p_type;
127 p_ptrRef = other.p_ptrRef;
128}
129
134
136
139 copyPFunction(other);
140}
141
146
148
152 copyPFunction(other);
153 return *this;
154}
155
157
159void PFunction::setName(const PString & name){
160 p_name = name;
161}
162
164
166void PFunction::setDocString(const PString & docString){
167 p_docString = docString;
168}
169
171
173void PFunction::setVecArgument(const std::vector<PArgument> & vecArgument){
174 p_vecArgument = vecArgument;
175}
176
178
180void PFunction::setOutputType(const PString & outputType){
181 p_outputType = outputType;
182}
183
185
187void PFunction::setTemplateDef(const PString & templateDef){
188 p_templateDef = templateDef;
189}
190
192
194void PFunction::setOtherCode(const PString & otherCode){
195 p_otherCode = otherCode;
196}
197
199
201const PString & PFunction::getName() const{
202 return p_name;
203}
204
206
209 return p_name;
210}
211
213
215const PString & PFunction::getDocString() const{
216 return p_docString;
217}
218
220
223 return p_docString;
224}
225
227
229const std::vector<PArgument> & PFunction::getVecArgument() const{
230 return p_vecArgument;
231}
232
234
236std::vector<PArgument> & PFunction::getVecArgument(){
237 return p_vecArgument;
238}
239
241
243const PString & PFunction::getOutputType() const{
244 return p_outputType;
245}
246
248
251 return p_outputType;
252}
253
255
257const PString & PFunction::getTemplateDef() const{
258 return p_templateDef;
259}
260
262
265 return p_templateDef;
266}
267
269
271const PString & PFunction::getOtherCode() const{
272 return p_otherCode;
273}
274
276
279 return p_otherCode;
280}
281
283
286 p_name = other.p_name;
287 p_docString = other.p_docString;
291 p_otherCode = other.p_otherCode;
292}
293
298
300
303 copyPSource(other);
304}
305
310
312
316 copyPSource(other);
317 return *this;
318}
319
321
323void PSource::setName(const PPath & name){
324 p_name = name;
325}
326
328
330void PSource::setVecFunction(const std::vector<PFunction> & vecFunction){
331 p_vecFunction = vecFunction;
332}
333
335
337const PPath & PSource::getName() const{
338 return p_name;
339}
340
342
345 return p_name;
346}
347
349
351const std::vector<PFunction> & PSource::getVecFunction() const{
352 return p_vecFunction;
353}
354
356
358std::vector<PFunction> & PSource::getVecFunction(){
359 return p_vecFunction;
360}
361
363
365void PSource::copyPSource(const PSource & other){
366 p_name = other.p_name;
368}
369
374
376
379 copyPArchLib(other);
380}
381
386
388
392 copyPArchLib(other);
393 return *this;
394}
395
397
399void PArchLib::setName(const PPath & name){
400 p_name = name;
401}
402
404
406void PArchLib::setArchitecture(const PString & architecture){
407 p_architecture = architecture;
408}
409
411
413const PPath & PArchLib::getName() const{
414 return p_name;
415}
416
418
421 return p_name;
422}
423
425
427const PString & PArchLib::getArchitecture() const{
428 return p_architecture;
429}
430
432
435 return p_architecture;
436}
437
439
442 p_name = other.p_name;
444}
445
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