I have a situation where I have a C ++ class object that needs to be sent across the borders of the process (process 1 to process 2) using Linux pipes. I searched on the Internet how to do serialization in C ++. I found boost , but this requires some changes to the class. In my situation, I cannot change the class.
There are many pointers in this class, and nesting continues up to 3 levels (class 1 has a pointer 1 of type Class 2-> Class 2 has a pointer 2 of type Class 3 → Class 3 has a pointer 3 of class 4 → Class 4). Is there a way to send this object using pipes so that it can be recreated in the second process?
Thanks.
source share