Can someone please explain how to best make a deep copy of something like a CAntennaConfiguration (in C++)?
If I receive message, such as SET_READER_CONFIG, with an AntennaConfiguration within it, I'd like to store my own copy of that AntennaConfiguration that is independent of the original message object. Similarly, when I need to send a GET_READER_CONFIG_RESPONSE with those AntennaConfigurations, I'd like to make a copy of my stored object and attach that to the response message. I'm finding that if I just maintain references to these objects, that they get destroyed when the originating LLRP message gets destroyed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can someone please explain how to best make a deep copy of something like a CAntennaConfiguration (in C++)?
If I receive message, such as SET_READER_CONFIG, with an AntennaConfiguration within it, I'd like to store my own copy of that AntennaConfiguration that is independent of the original message object. Similarly, when I need to send a GET_READER_CONFIG_RESPONSE with those AntennaConfigurations, I'd like to make a copy of my stored object and attach that to the response message. I'm finding that if I just maintain references to these objects, that they get destroyed when the originating LLRP message gets destroyed.