PhoenixHPCProxy
0.8.0
Lightweight HPC proxy
Loading...
Searching...
No Matches
HeaderParser.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 __HEADERPARSER_H__
8
#define __HEADERPARSER_H__
9
10
#include "PMultiFileParser.h"
11
#include "
Representation/representation.h
"
12
14
class
HeaderParser
:
public
PMultiFileParser{
15
public
:
16
HeaderParser
();
17
HeaderParser
(
const
HeaderParser
& other);
18
virtual
~HeaderParser
();
19
HeaderParser
&
operator =
(
const
HeaderParser
& other);
20
21
const
PVecSource
&
getVecSource
()
const
;
22
23
protected
:
24
void
copyHeaderParser
(
const
HeaderParser
& other);
25
26
virtual
bool
parseFile
();
27
virtual
void
preLoadFile
();
28
virtual
void
postLoadFile
();
29
30
private
:
31
void
initialisationHeaderParser
();
32
33
void
incrementCurrentChar
();
34
void
playOtherCode
();
35
36
bool
parseMacro
();
37
bool
parseDocString
();
38
bool
parseFunction
(
PFunction
& function);
39
void
parseTemplateDef
(PString & templateDef);
40
bool
parseArgument
(
PArgument
& argument);
41
void
parseType
(PString & type);
42
44
PString
p_lastDocString
;
46
PString
p_otherCode
;
48
PSource
p_currentSource
;
50
PVecSource
p_vecSource
;
51
};
52
53
54
55
#endif
56
HeaderParser::operator=
HeaderParser & operator=(const HeaderParser &other)
Definition of equal operator of HeaderParser.
Definition
HeaderParser.cpp:30
HeaderParser::~HeaderParser
virtual ~HeaderParser()
Destructor of HeaderParser.
Definition
HeaderParser.cpp:22
HeaderParser::parseFile
virtual bool parseFile()
Parse the input file.
Definition
HeaderParser.cpp:52
HeaderParser::playOtherCode
void playOtherCode()
Add the other code parsed into the current PSource.
Definition
HeaderParser.cpp:105
HeaderParser::preLoadFile
virtual void preLoadFile()
Initialisation to be done just before loading a file.
Definition
HeaderParser.cpp:77
HeaderParser::postLoadFile
virtual void postLoadFile()
Initialisation to be done just after loading a file.
Definition
HeaderParser.cpp:84
HeaderParser::p_otherCode
PString p_otherCode
Other code which is not a function prototype.
Definition
HeaderParser.h:46
HeaderParser::p_lastDocString
PString p_lastDocString
Last documentation string.
Definition
HeaderParser.h:44
HeaderParser::HeaderParser
HeaderParser()
Default constructor of HeaderParser.
Definition
HeaderParser.cpp:10
HeaderParser::p_currentSource
PSource p_currentSource
Current source to be parsed.
Definition
HeaderParser.h:48
HeaderParser::parseMacro
bool parseMacro()
Parse a macro.
Definition
HeaderParser.cpp:117
HeaderParser::parseTemplateDef
void parseTemplateDef(PString &templateDef)
Parse a template definition.
Definition
HeaderParser.cpp:187
HeaderParser::parseArgument
bool parseArgument(PArgument &argument)
Parse a PAttribute.
Definition
HeaderParser.cpp:223
HeaderParser::p_vecSource
PVecSource p_vecSource
Vector of parsed PSource.
Definition
HeaderParser.h:50
HeaderParser::parseDocString
bool parseDocString()
Parse a doc string.
Definition
HeaderParser.cpp:129
HeaderParser::parseType
void parseType(PString &type)
Parse a data type.
Definition
HeaderParser.cpp:269
HeaderParser::incrementCurrentChar
void incrementCurrentChar()
Increment current char position.
Definition
HeaderParser.cpp:96
HeaderParser::getVecSource
const PVecSource & getVecSource() const
Get the parsed vector of PSource.
Definition
HeaderParser.cpp:38
HeaderParser::parseFunction
bool parseFunction(PFunction &function)
Parse a PFunction.
Definition
HeaderParser.cpp:140
HeaderParser::initialisationHeaderParser
void initialisationHeaderParser()
Initialisation function of the class HeaderParser.
Definition
HeaderParser.cpp:89
HeaderParser::copyHeaderParser
void copyHeaderParser(const HeaderParser &other)
Copy function of HeaderParser.
Definition
HeaderParser.cpp:45
PArgument
Parameter of a function.
Definition
PRepr.h:14
PFunction
Function prototype.
Definition
PRepr.h:46
PSource
Configuration file which will produce a source and header in C++.
Definition
PRepr.h:88
representation.h
PVecSource
std::vector< PSource > PVecSource
Definition
representation.h:16
src
FrontEnd
HeaderParser.h
Generated by
1.13.2