SystemC allows signals (or members etc.) to be traced via the sc_trace function, the result being a VCD file that can be used in other programs. The naming of these signals is rather arbitrary though, with the function accepting any string (that doesn't have to relate to the variable itself) as a name for the signal to be dumped.
The question is: Can I somehow get the mapping from the sc_interface objects to the string that is used as their name via the SystemC API? I'm logging a lot of data in other ways and it'd be nice to be able to connect the values I retrieve to the VCD data in some way and I can't think of a way to do that if I only have the dumped values and a random string identifier.