Migrate to New Agent API
This is a program that translates sc-machine usage from old API into new API.
Changed files include:
- cmake instructions that mention codegen;
- keynodes files with codegen;
- module files with codegen;
- agent files with codegen;
- in-line declarations of
SC_PROPERTY
; #include
statements with removed files;- outdated
scAgentsCommon::CoreKeynodes
usages; - outdated sc-events usages;
- deprecated methods usages;
- deprecated sc-types usages;
utils::AgentUtils
usages;- outdated agent registration and unregistration statements.
Example of usage:
Note
Provide path to source files that does not contain subfolders with other projects. All files located at that path may be modified by this tool, even if they are from another project or don't have sc-machine usages.
There may be a situation when this program won't be able to replace code correctly, these places in code are marked with //todo(codegen-removal):