-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
исправлен порядок добавления калков для SMR (#21)
- Loading branch information
1 parent
55c0cea
commit 7ff57d1
Showing
4 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
\file rdosmr.cpp | ||
\authors Барс Александр | ||
\authors Урусов Андрей ([email protected]) | ||
\date | ||
\brief | ||
\date | ||
\brief | ||
\indent 4T | ||
*/ | ||
|
||
|
@@ -124,7 +124,7 @@ void RDOSMR::setConstValue(const RDOParserSrcInfo& const_info, LPRDOFUNArithm& p | |
ASSERT(pArithm); | ||
pArithm->checkParamType(pConstant->getTypeInfo()); | ||
rdo::runtime::LPRDOCalc pCalc = pArithm->createCalc(pConstant->getTypeInfo()); | ||
RDOParser::s_parser()->runtime()->addInitCalc(rdo::Factory<rdo::runtime::RDOCalcSetConst>::create(pConstant->getNumber(), pCalc)); | ||
this->addCalc(rdo::Factory<rdo::runtime::RDOCalcSetConst>::create(pConstant->getNumber(), pCalc)); | ||
RDOParser::s_parser()->insertChanges(pConstant->src_text(), pArithm->src_text()); | ||
} | ||
|
||
|
@@ -147,7 +147,7 @@ void RDOSMR::setResParValue(const RDOParserSrcInfo& res_info, const RDOParserSrc | |
pArithm->checkParamType(pParam->getTypeInfo()); | ||
const std::size_t parNumb = pResource->getType()->getRTPParamNumber(par_info.src_text()); | ||
rdo::runtime::LPRDOCalc pCalc = pArithm->createCalc(pParam->getTypeInfo()); | ||
RDOParser::s_parser()->runtime()->addInitCalc(rdo::Factory<rdo::runtime::RDOSetResourceParamCalc>::create(pResource->getID(), parNumb, pCalc)); | ||
this->addCalc(rdo::Factory<rdo::runtime::RDOSetResourceParamCalc>::create(pResource->getID(), parNumb, pCalc)); | ||
RDOParser::s_parser()->insertChanges(res_info.src_text() + "." + par_info.src_text(), pArithm->src_text()); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters