From: stephan b. <sg...@us...> - 2004-12-28 16:04:52
|
Update of /cvsroot/pclasses/pclasses2/src/s11n In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7851/src/s11n Modified Files: SIO.h Log Message: - Added "public" macro PCLASSES_SIO_INCLUDED. - Un-typedef'd S11nNode, as it is now a concrete type. Index: SIO.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/s11n/SIO.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- SIO.h 28 Dec 2004 04:21:41 -0000 1.8 +++ SIO.h 28 Dec 2004 16:04:42 -0000 1.9 @@ -2,6 +2,11 @@ #define p_SIO_H_INCLUDED 1 //////////////////////////////////////////////////////////////////////// +// PCLASSES_SIO_INCLUDED is the "official" way for P code to know if +// SIO is included yet. +#define PCLASSES_SIO_INCLUDED 1 + +//////////////////////////////////////////////////////////////////////// // SIO.h: // Author: stephan beal <st...@s1...> // License: LGPL, copyright(c) 2004, 2005 stephan beal @@ -50,25 +55,12 @@ */ namespace SIO { - /** - The concrete "data node" type used by serialization operations. - - Note that it is considered poor form to use an S11nNode's - API directly, as it's type and interface may change. The - only guaranty the SIO API gives regarding S11nNode's API is - that NodeTraits::funcname(S11nNode &...) operations will work - as expected/documented. More clearly: use NodeTraits to - manipulate and query nodes, not the node API directly. In - fact S11nNode's useful API is all private, so you CAN'T - touch it without going through NodeTraits. :) Gotcha! - */ -// typedef ::P::s11n::s11n_node S11nNode; /** NodeTraits provide the interface for fetching and manipulating S11nNode data. */ - typedef ::P::s11n::node_traits<S11nNode> NodeTraits; + typedef ::P::s11n::node_traits<S11nNode> NodeTraits; /** The parent type of Serializers supported by this interface. |