PandA-2024.02
parser_flow_step.hpp
Go to the documentation of this file.
1 /*
2  *
3  * _/_/_/ _/_/ _/ _/ _/_/_/ _/_/
4  * _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/
5  * _/_/_/ _/_/_/_/ _/ _/_/ _/ _/ _/_/_/_/
6  * _/ _/ _/ _/ _/ _/ _/ _/ _/
7  * _/ _/ _/ _/ _/ _/_/_/ _/ _/
8  *
9  * ***********************************************
10  * PandA Project
11  * URL: http://panda.dei.polimi.it
12  * Politecnico di Milano - DEIB
13  * System Architectures Group
14  * ***********************************************
15  * Copyright (C) 2015-2024 Politecnico di Milano
16  *
17  * This file is part of the PandA framework.
18  *
19  * The PandA framework is free software; you can redistribute it and/or modify
20  * it under the terms of the GNU General Public License as published by
21  * the Free Software Foundation; either version 3 of the License, or
22  * (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program. If not, see <http://www.gnu.org/licenses/>.
31  *
32  */
41 #ifndef PARSER_STEP_HPP
42 #define PARSER_STEP_HPP
43 
45 #include "config_HAVE_FROM_AADL_ASN_BUILT.hpp"
46 
48 #include "design_flow_step.hpp"
49 
51 #if HAVE_FROM_AADL_ASN_BUILT
52  AADL,
53  ASN,
54 #endif
55 };
56 
58 {
59  protected:
62 
64  const std::string file_name;
65 
69  virtual std::string GetKindText() const final;
70 
76  static const std::string EnumToKindText(const ParserFlowStep_Type parser_step_type);
77 
78  public:
86  ParserFlowStep(const DesignFlowManagerConstRef design_flow_manager, const ParserFlowStep_Type parser_step_type,
87  const std::string& file_name, const ParameterConstRef parameters);
88 
92  ~ParserFlowStep() override;
93 
97  std::string GetSignature() const override;
98 
103  std::string GetName() const override;
104 
111  static const std::string ComputeSignature(const ParserFlowStep_Type parser_step_type, const std::string& file_name);
112 
117  bool HasToBeExecuted() const override;
118 
124  void ComputeRelationships(DesignFlowStepSet& relationship,
125  const DesignFlowStep::RelationshipType relationship_type) override;
126 
130  DesignFlowStepFactoryConstRef CGetDesignFlowStepFactory() const override;
131 };
132 #endif
static const std::string ComputeSignature(const ParserFlowStep_Type parser_step_type, const std::string &file_name)
Compute the signature of a parser flow step.
const std::string file_name
The name of the file to be parsed.
RelationshipType
The relationship type.
The base class for design step.
static const std::string EnumToKindText(const ParserFlowStep_Type parser_step_type)
Given a parser step type, return the name of the type.
std::string GetSignature() const override
Return the signature of this step.
Definition of hash function for EdgeDescriptor.
Definition: graph.hpp:1321
enum ParserFlowStep_Type { } ParserFlowStep_Type
Autoheader include.
Base class for step of design flow.
std::string GetName() const override
Return the name of this design step.
const ParserFlowStep_Type parser_step_type
The type of the parse.
void ComputeRelationships(DesignFlowStepSet &relationship, const DesignFlowStep::RelationshipType relationship_type) override
Compute the relationships of a step with other steps.
virtual std::string GetKindText() const final
Return the name of the type of this frontend flow step.
const Wrefcount< const DesignFlowManager > design_flow_manager
The design flow manager.
const ParameterConstRef parameters
Set of input parameters.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Definition: refcount.hpp:94
DesignFlowStepFactoryConstRef CGetDesignFlowStepFactory() const override
Return the factory to create this type of steps.
bool HasToBeExecuted() const override
Check if this step has actually to be executed.

Generated on Mon Feb 12 2024 13:02:55 for PandA-2024.02 by doxygen 1.8.13