From: <sv...@ww...> - 2005-02-05 18:20:36
|
Author: mkrose Date: 2005-02-05 10:20:23 -0800 (Sat, 05 Feb 2005) New Revision: 1463 Modified: trunk/CSP/SimData/CHANGES.current trunk/CSP/SimData/Include/SimData/Object.h Log: Expose _postCreate so that complete objects can be created from Python + XML data. This is experimental (used by CSP layout), and some issues remain to be resolved (e.g. Link members aren't automatically constructed). Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1463 Modified: trunk/CSP/SimData/CHANGES.current =================================================================== --- trunk/CSP/SimData/CHANGES.current 2005-02-05 17:58:05 UTC (rev 1462) +++ trunk/CSP/SimData/CHANGES.current 2005-02-05 18:20:23 UTC (rev 1463) @@ -1,11 +1,17 @@ Version 0.4.0 (in progress) =========================== +2005-02-05: onsight + * Expose _postCreate so that complete objects can be created from + Python + XML data. This is experimental (used by CSP layout), + and some issues remain to be resolved (e.g. Link members aren't + automatically constructed). + 2005-01-19: delta * Got ride of a few throw(Type) for 2 main reasons. It will ease the maintenance and it avoids a few warnings on vs2005. In fact, vs2003 already treats throw(Type) like throw(...). - + 2005-01-03: onsight * Fix logging priority/category calls in Compile.py. Modified: trunk/CSP/SimData/Include/SimData/Object.h =================================================================== --- trunk/CSP/SimData/Include/SimData/Object.h 2005-02-05 17:58:05 UTC (rev 1462) +++ trunk/CSP/SimData/Include/SimData/Object.h 2005-02-05 18:20:23 UTC (rev 1463) @@ -149,7 +149,7 @@ Object const &operator=(Object const &); void _setPath(hasht); - + hasht _path; protected: @@ -243,6 +243,12 @@ */ static hasht _getHash(const char* c); + /** Expose the postCreate method. Experimental --- use with great caution. + * Ordinarily postCreate is called only by DataArchive after deserializing + * an object. This method is intended to assist with object creation directly + * from XML data (typically in Python). + */ + void _postCreate() { postCreate(); } }; |