From: stephan b. <sg...@us...> - 2004-12-27 18:24:42
|
Update of /cvsroot/pclasses/pclasses2/src/s11n In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29703/src/s11n Modified Files: data_node_serialize.h Log Message: Removed the 3-args versions of de/serialize(). They are never used, provide nothing, and can potentially Cause Grief and Confusion. Index: data_node_serialize.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/s11n/data_node_serialize.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- data_node_serialize.h 26 Dec 2004 00:55:20 -0000 1.2 +++ data_node_serialize.h 27 Dec 2004 18:24:30 -0000 1.3 @@ -167,52 +167,6 @@ namespace s11n { - - /** - Returns func( target, src ). Note that using this function - bypasses internal API marshalling for src. This is, - however, useful in some cases. Note that if src initiates - recursive serialization on objects of it's own type the - framework will revert to using it's API marshalling, - bypassing SerializerFunctorT. A solution is sought for this - problem, but none exists yet. - */ - template <typename DataNodeType,typename SerializableT, typename SerializerFunctorT> - bool serialize( DataNodeType & target, const SerializableT & src, const SerializerFunctorT & func ) - { - try - { - return func( target, src ); - } - catch(...) - { - CERR << "Unknown exception during serialize<>(DataNode,SerializableT,SerializerFunctorT)!\n"; - return false; - } - } - - /** - Returns func( src, target ). Note that using this function - bypasses internal API marshalling for the target. This is, - however, useful in some cases. - - See the complementary form of serialize() for important - information regarding recursive deserialization. - */ - template <typename DataNodeType, typename DeserializableT, typename DeserializerFunctorT> - bool deserialize( const DataNodeType & src, DeserializableT & target, const DeserializerFunctorT & func ) - { - try - { - return func( src, target ); - } - catch(...) - { - CERR << "Unknown exception during deserialize<>(DataNode,DeserializableT,DeserializerFunctorT)!\n"; - return false; - } - } - /** Serializes src to target using the default API marshaling mechanism. |