PandA-2024.02
|
#include <aadl_parser.hpp>
Public Member Functions | |
AadlParser (const DesignFlowManagerConstRef design_flow_manager, const std::string &file_name, const application_managerRef AppM, const ParameterConstRef parameters) | |
Constructor. More... | |
~AadlParser () override | |
Destuctor. More... | |
DesignFlowStep_Status | Exec () override |
Execute the step. More... | |
Public Member Functions inherited from ParserFlowStep | |
ParserFlowStep (const DesignFlowManagerConstRef design_flow_manager, const ParserFlowStep_Type parser_step_type, const std::string &file_name, const ParameterConstRef parameters) | |
Constructor. More... | |
~ParserFlowStep () override | |
Destructor. More... | |
std::string | GetSignature () const override |
Return the signature of this step. More... | |
std::string | GetName () const override |
Return the name of this design step. More... | |
bool | HasToBeExecuted () const override |
Check if this step has actually to be executed. More... | |
void | ComputeRelationships (DesignFlowStepSet &relationship, const DesignFlowStep::RelationshipType relationship_type) override |
Compute the relationships of a step with other steps. More... | |
DesignFlowStepFactoryConstRef | CGetDesignFlowStepFactory () const override |
Return the factory to create this type of steps. More... | |
Public Member Functions inherited from DesignFlowStep | |
DesignFlowStep (const DesignFlowManagerConstRef design_flow_manager, const ParameterConstRef parameters) | |
Constructor. More... | |
virtual | ~DesignFlowStep () |
Destructor. More... | |
virtual void | Initialize () |
Initialize the step (i.e., like a constructor, but executed just before exec. More... | |
DesignFlowStep_Status | GetStatus () const |
Return the status of this design step. More... | |
virtual void | WriteDot (std::ostream &out) const |
Write the label for a dot graph. More... | |
bool | IsComposed () const |
Returns if this step is composed. More... | |
int | CGetDebugLevel () const |
Return the debug level of the step. More... | |
virtual void | PrintInitialIR () const |
Dump the initial intermediate representation. More... | |
virtual void | PrintFinalIR () const |
Dump the final intermediate representation. More... | |
Protected Member Functions | |
void | YYParse (const AadlParserDataRef data, const AadlFlexLexerRef lexer) const |
Wrapper to yyparse. More... | |
Protected Member Functions inherited from ParserFlowStep | |
virtual std::string | GetKindText () const final |
Return the name of the type of this frontend flow step. More... | |
Protected Attributes | |
const application_managerRef | AppM |
The application manager. More... | |
Protected Attributes inherited from ParserFlowStep | |
const ParserFlowStep_Type | parser_step_type |
The type of the parse. More... | |
const std::string | file_name |
The name of the file to be parsed. More... | |
Protected Attributes inherited from DesignFlowStep | |
bool | composed |
True if this step represents a composition of design flow steps (e.g., a flow); must be set by specialized constructors. More... | |
const Wrefcount< const DesignFlowManager > | design_flow_manager |
The design flow manager. More... | |
const ParameterConstRef | parameters |
Set of input parameters. More... | |
int | debug_level |
The debug level. More... | |
const int | output_level |
The output level. More... | |
Additional Inherited Members | |
Public Types inherited from DesignFlowStep | |
enum | RelationshipType { DEPENDENCE_RELATIONSHIP, INVALIDATION_RELATIONSHIP, PRECEDENCE_RELATIONSHIP } |
The relationship type. More... | |
Static Public Member Functions inherited from ParserFlowStep | |
static const std::string | ComputeSignature (const ParserFlowStep_Type parser_step_type, const std::string &file_name) |
Compute the signature of a parser flow step. More... | |
Static Protected Member Functions inherited from ParserFlowStep | |
static const std::string | EnumToKindText (const ParserFlowStep_Type parser_step_type) |
Given a parser step type, return the name of the type. More... | |
Definition at line 83 of file aadl_parser.hpp.
AadlParser::AadlParser | ( | const DesignFlowManagerConstRef | design_flow_manager, |
const std::string & | file_name, | ||
const application_managerRef | AppM, | ||
const ParameterConstRef | parameters | ||
) |
Constructor.
design_flow_manager | is the design flow manager |
file_name | is the file to be parsed |
AppM | is the application manager |
parameters | is the set of input parameters |
Definition at line 85 of file aadl_parser.cpp.
References DesignFlowStep::debug_level, GET_CLASS, and ~AadlParser().
|
overridedefault |
|
overridevirtual |
Execute the step.
Implements DesignFlowStep.
Definition at line 94 of file aadl_parser.cpp.
References AppM, AadlInformation::AadlParameter::asn_type, DesignFlowStep::debug_level, DEBUG_LEVEL_VERY_PEDANTIC, AadlInformation::AadlParameter::direction, AadlInformation::AadlParameter::endianess, AadlInformation::AadlParameter::Endianess(), ParserFlowStep::file_name, fileIO_istream_open(), refcount< T >::get(), AadlInformation::AadlParameter::GetDirection(), GetFile(), INDENT_DBG_MEX, AadlInformation::AadlParameter::name, DesignFlowStep::parameters, STR_CST_aadl_data_view, STR_CST_aadl_parameter_direction, STR_CST_aadl_parameter_endianess, STR_CST_aadl_parameter_type, STR_CST_string_separator, SUCCESS, THROW_ASSERT, THROW_ERROR, and YYParse().
|
protected |
Wrapper to yyparse.
data | is the data to be passed to the parser |
lexer | is the lexer |
Referenced by Exec().
|
protected |