-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/remove codegen #65
base: main
Are you sure you want to change the base?
Conversation
...em-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp
Outdated
Show resolved
Hide resolved
...em-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp
Outdated
Show resolved
Hide resolved
...em-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp
Outdated
Show resolved
Hide resolved
...em-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp
Outdated
Show resolved
Hide resolved
...em-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp
Outdated
Show resolved
Hide resolved
...rm-dependent-components/problem-solver/cxx/sections-module/agent/get_decomposition_agent.cpp
Outdated
Show resolved
Hide resolved
...rm-dependent-components/problem-solver/cxx/sections-module/agent/get_decomposition_agent.cpp
Outdated
Show resolved
Hide resolved
platform-dependent-components/problem-solver/cxx/sections-module/agent/remove_section_agent.cpp
Show resolved
Hide resolved
platform-dependent-components/problem-solver/cxx/sections-module/agent/remove_section_agent.cpp
Outdated
Show resolved
Hide resolved
...ependent-components/problem-solver/cxx/sections-module/test/units/add_section_agent_test.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix comments and it'll look ok 👍
...em-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp
Outdated
Show resolved
Hide resolved
platform-dependent-components/problem-solver/cxx/sections-module/agent/add_section_agent.cpp
Outdated
Show resolved
Hide resolved
#include "keynodes/identifiers_keynodes.hpp" | ||
#include "translate_main_system_idtfs_from_sc_to_file_agent.hpp" | ||
|
||
using namespace identifiersModule; | ||
|
||
SC_AGENT_IMPLEMENTATION(TranslateMainSystemIdtfsFromScToFileAgent) | ||
ScResult TranslateMainSystemIdtfsFromScToFileAgent::DoProgram(ScActionInitiatedEvent const & event, ScAction & action) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this agent has question_initiated in docs translate_agent_input.png
streamIdtfs << "{\"" << mainIdentifier << "\", " | ||
<< "{\"" << systemIdentifier << "\", \"" << stringType << "\"}},\n"; | ||
streamIdtfs << R"({")" << mainIdentifier << R"(", )" | ||
<< R"({")" << systemIdentifier << R"(", ")" << stringType << R"("}},\n)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ScTemplateResultItem genResult; | ||
context->GenerateByTemplate(scTemplate, genResult); | ||
|
||
if (genResult.Size() != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about this condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can just get from genResult by alias
genResult shouldn't be empty if scTemplate isn't empty
No description provided.