I Can't change the parent of control rig

I want to pass information in C++
So I cannot specify the parent of the control rig to the my class.
because it is impossible to change the parent of controlrigBP.
tried passing it through the interface, but it wasn’t possible.
How can I pass variables in C++?