44 #include "config_HAVE_FROM_AADL_ASN_BUILT.hpp" 49 #if HAVE_FROM_AADL_ASN_BUILT 73 const auto step_to_be_created = signature.substr(
GetPrefix().size() + 2);
74 const auto parser_flow_step_type =
75 static_cast<ParserFlowStep_Type>(std::stoi(step_to_be_created.substr(0, step_to_be_created.find(
"::"))));
76 const auto file_name = step_to_be_created.substr(step_to_be_created.find(
"::") + 2);
77 switch(parser_flow_step_type)
79 #if HAVE_FROM_AADL_ASN_BUILT 80 case ParserFlowStep_Type::AADL:
84 case ParserFlowStep_Type::ASN:
DesignFlowStepRef CreateFlowStep(const std::string &signature) const override
Return a step given the signature.
const ParameterConstRef parameters
The set of input parameters.
This class contains the base representation for a generic parser step.
Specification of the aadl parsing interface function.
enum ParserFlowStep_Type { } ParserFlowStep_Type
Autoheader include.
const application_managerRef AppM
The application manager.
#define THROW_UNREACHABLE(str_expr)
helper function used to specify that some points should never be reached
ParserFlowStepFactory(const DesignFlowManagerConstRef design_flow_manager, const application_managerRef AppM, const ParameterConstRef parameters)
Constructor.
Factory for parser flow step.
refcount< T > lock() const
refcount< DesignFlowStep > DesignFlowStepRef
const Wrefcount< const DesignFlowManager > design_flow_manager
The design flow manager.
~ParserFlowStepFactory() override
Destructor.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
const std::string GetPrefix() const override
Return the prefix of the steps created by the factory.
Specification of the asn parsing interface function.
#define THROW_ASSERT(cond, str_expr)
helper function used to check an assert and if needed to throw an error in a standard way ...