From: Yurii R. <yr...@us...> - 2003-02-03 06:31:21
|
Update of /cvsroot/eas-dev/eas-dev/libs/libsxmlstream/include In directory sc8-pr-cvs1:/tmp/cvs-serv18441/libs/libsxmlstream/include Modified Files: sxml.hxx sxmlstream.hxx Added Files: sxmlhandler.hxx Log Message: mofidifed build process; changes to libsxmlstream (seems that it is still broken); minor additions over the project --- NEW FILE: sxmlhandler.hxx --- /*******************************************************/ /* */ /* libsxmlstream */ /* */ /* Copyright (c) 2003. */ /* E/AS Software Foundation */ /* */ /* Author(s): */ /* Yurii A. Rashkovskii <yr...@op...> */ /* */ /* */ /* This program is free software; you can redistribute */ /* it and/or modify it under the terms of the GNU */ /* Lesser General Public License as published by the */ /* Free Software Foundation; version 2 of the License. */ /* */ /*******************************************************/ /* $Id: sxmlhandler.hxx,v 1.1 2003/02/03 06:30:47 yrashk Exp $ */ #ifndef _LIBSXMLSTREAM_SXMLHANDLER_HXX_ #define _LIBSXMLSTREAM_SXMLHANDLER_HXX_ #include <sxml.hxx> using namespace std; namespace openeas { namespace sxmlstream { }; }; #endif /* _LIBSXMLSTREAM_SXMLHANDLER_HXX_ */ Index: sxml.hxx =================================================================== RCS file: /cvsroot/eas-dev/eas-dev/libs/libsxmlstream/include/sxml.hxx,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- sxml.hxx 2 Feb 2003 06:59:11 -0000 1.4 +++ sxml.hxx 3 Feb 2003 06:30:46 -0000 1.5 @@ -27,6 +27,8 @@ using namespace std; +namespace openeas { namespace sxmlstream { + enum SXmlNode_t { SXmlNode_Element_t, SXmlNode_Attribute_t, @@ -44,8 +46,9 @@ SXmlNode& operator=(const SXmlNode& v); ~SXmlNode() { delete descendants; } - SXmlNode(const SXmlNode_t aType, const string aData) {data = aData; - type = aType;} + SXmlNode(const SXmlNode_t aType, const string aData) {descendants = new list<SXmlNode>; + data = aData; + type = aType;} bool isElement() const { return type == SXmlNode_Element_t; } bool isAttribute() const { return type == SXmlNode_Attribute_t; } @@ -73,5 +76,7 @@ static SXmlNode Namespace(const string aPrefix, const string aURI); }; + +}; }; #endif /* _LIBSXMLSTREAM_SXML_HXX_ */ Index: sxmlstream.hxx =================================================================== RCS file: /cvsroot/eas-dev/eas-dev/libs/libsxmlstream/include/sxmlstream.hxx,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- sxmlstream.hxx 28 Jan 2003 22:36:25 -0000 1.7 +++ sxmlstream.hxx 3 Feb 2003 06:30:47 -0000 1.8 @@ -23,9 +23,12 @@ #include <queue> #include <sxml.hxx> +#include <sxmlhandler.hxx> using namespace std; +namespace openeas { namespace sxmlstream { + class SXmlStream { protected: @@ -76,5 +79,6 @@ }; +}; }; #endif /* _LIBSXMLSTREAM_SXMLSTREAM_HXX_ */ |