THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/03/2006 at 02:57, xxxxxxxx wrote:
Cinema 4D Version: 8.5
Platform: Windows ;
Language(s) : C++ ;
It's not really clear in the documentation but, if I implement the Read()/Write()/CopyTo() functions in my tag plugin, AND my plugin also has some values stored in it's BaseContainer, is the BaseContainer read for me? or do I need to read those in too?
If they get read automatically, is there some way for me to stop them from being read? Does it depend on whether or not I call the SUPER (parent) class routines and/or my return value from the R/W/C ?
On 08/03/2006 at 05:50, xxxxxxxx wrote:
Read/Write/Copy are independant from the Basecontainer. All values in the basecontainer are stored and will be restored when the object is read (or initialised). This cannot be avoided.
But I don´t see a reason why you´d want that. Maybe you elaborate on what you need it for.
On 08/03/2006 at 06:43, xxxxxxxx wrote:
As Katachi says, the BaseContainer is handled independently of Read/Write/CopyTo. In addition to that, its data is read/copied prior to Read/Write/CopyTo so that non-BaseContainer data dependent upon this can utilize it.
That said, what would be your reason to avoid having the BaseContainer data read or copied? You could, if you just want to reinitialize certain data under these circumstances, reinitialize it in the Read and/or CopyTo methods. With CopyTo, just be careful to reinitialize the destination's BaseContainer data (and not the source's) : static_cast<BaseList2D*>(dnode)->GetDataInstance().
On 08/03/2006 at 11:53, xxxxxxxx wrote:
That's pretty much how I understood it, but I wanted to be sure.