Update of /cvsroot/eas-dev/eas-dev/libs/libsxmlstream/include
In directory sc8-pr-cvs1:/tmp/cvs-serv31727/libs/libsxmlstream/include
Added Files:
sxml.hxx sxmlstream.hxx
Log Message:
Moving main Makefile to root; Started `libsxmlstream' implementation
--- NEW FILE: sxml.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: sxml.hxx,v 1.1 2003/01/25 20:00:36 yrashk Exp $ */
#ifndef _LIBSXMLSTREAM_SXML_HXX_
#define _LIBSXMLSTREAM_SXML_HXX_
#include <string>
#include <vector>
using namespace std;
typedef enum
{
SXml_Element_t,
SXml_Attribute_t,
SXml_Char_t,
SXml_Namespace_t
} SXml_t;
struct _SXml {
SXml_t type;
string data;
vector<_SXml *> childs;
};
typedef _SXml * SXml;
/* Type checks */
#define Is_SXml_t(x,y) ( x->type == y )
#define Is_SXml_Element(x) Is_SXml_t(x,SXml_Element_t)
#define Is_SXml_Attribute(x) Is_SXml_t(x,SXml_Attribute_t)
#define Is_SXml_Char(x) Is_SXml_t(x,SXml_Char_t)
#define Is_SXml_Namespace(x) Is_SXml_t(x,SXml_Namespace_t)
/* SXml creation */
SXml SXml_create(SXml_t aType, string aData);
SXml SXml_Element_create(string aName);
SXml SXml_Attribute_create(string aName, string aValue);
SXml SXml_Char_create(string aData);
SXml SXml_Namespace_create(string aPrefix, string aURI);
/* Childs operations */
void SXml_create_child(SXml e, SXml c);
#endif /* _LIBSXMLSTREAM_SXML_HXX_ */
--- NEW FILE: sxmlstream.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: sxmlstream.hxx,v 1.1 2003/01/25 20:00:36 yrashk Exp $ */
#ifndef _LIBSXMLSTREAM_SXMLSTREAM_HXX_
#define _LIBSXMLSTREAM_SXMLSTREAM_HXX_
#include <sxml.hxx>
class SXMLStream
{
public:
protected:
};
#endif /* _LIBSXMLSTREAM_SXMLSTREAM_HXX_ */
|