Hi, I know this is probably a really basic question answered somewhere in the documentation, but I am really new to programming so I struggle to find the answer!
I want to do something like this where the argument is just a vector:
TExec* ex = new TExec("ex", "function(argument);");
Thank you for your help! I think this is barking up the right tree, but I am still having some issues that I am not sure how to resolve. Here is how I used TExec:
TExec* exLV60 = new TExec("exLV60", "DrawCol(\"LV60_statusVector\");");
LV60_statusVector has already been initialized as std::vector<std::string>.
This is how I have defined my function:
void DrawCol(std::vector<std::string> &argument)
I am not sure why I am getting the following warnings:
Only global variable can be used at such call. LV60_statusVector must be declared outside of function scope.
And you should remove quotes around variable name.
Macro test.C should look like: