Re: [Libxmlplusplus-general] Re: multi-node-types API changes
- From: Christophe de VIENNE <cdevienne alphacent com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [Libxmlplusplus-general] Re: multi-node-types API changes
- Date: Wed, 18 Dec 2002 17:53:52 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Mercredi 18 Décembre 2002 16:12, Murray Cumming a écrit :
> Actually I'd prefer to change it because it obscures the API. But we can
> do that later.
I personnaly prefer not.
I see it this way : A node is a part of a tree and have both a parent and some
children, except for certain type of node.
And even if it obscure a little bit the API (very little), it gives the great
advantage to be able to manipulate a complete tree without having to know
about each node type.
If these methods go to the ElementNode, they will still returns Node *, and on
each we'll have to check the type to know if we can descend into it, and then
cast it.
This will be, at last, more heavy I think.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAj4AqCAACgkQB+sU3TyOQjA42ACg46RHwq1aSeVKnU+ZjkVi3VV2
shIAoKwKg9ljap91eG4EU0LqArMWmtOf
=4CQ2
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]