Custom animation node needs to write to a variable

I have a custom animation node in c++ that captures some intermediate bone transforms. I need it to save the results to a variable for later use in the event graph. Is there any way to do this?