Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

xml_tree_struct.h

Go to the documentation of this file.
00001 
00002 // Common Text Transformation Library
00003 // Copyright (C) 1997-2006 by Igor Kholodov. 
00004 //
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 //
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the
00017 // Free Software Foundation, Inc.,
00018 // 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019 //
00020 // mailto:cttl@users.sourceforge.net
00021 // http://sourceforge.net/projects/cttl/
00023 
00029 // xml_tree_struct.h
00030 
00031 #ifndef _XML_TREE_STRUCT_H_INCLUDED_
00032 #define _XML_TREE_STRUCT_H_INCLUDED_
00033 
00034 // Constants describing xml nodes: elements, attributes, and text
00035 enum {
00036     NEXT_ELEMENT,
00037     ELEMENT_NAME,
00038     FIRST_ATTRIBUTE,
00039     LAST_ATTRIBUTE,
00040     FIRST_TEXT,
00041     LAST_TEXT,
00042     FIRST_ELEMENT,
00043     LAST_ELEMENT,
00044     ELEMENT_SIZE
00045 };
00046 
00047 enum {
00048     NEXT_ATTRIBUTE,
00049     ATTRIBUTE_NAME,
00050     ATTRIBUTE_VALUE,
00051     ATTRIBUTE_SIZE
00052 };
00053 
00054 enum {
00055     NEXT_TEXT,
00056     TEXT_VALUE,
00057     TEXT_SIZE
00058 };
00059 
00060 // Constants describing fields of xml nodes:
00061 const_scalar_type( NEXT_ELEMENT )       FLD_NEXT_ELEMENT;
00062 const_scalar_type( ELEMENT_NAME )       FLD_ELEMENT_NAME;
00063 const_scalar_type( FIRST_ATTRIBUTE )    FLD_FIRST_ATTRIBUTE;
00064 const_scalar_type( LAST_ATTRIBUTE )     FLD_LAST_ATTRIBUTE;
00065 const_scalar_type( FIRST_TEXT )         FLD_FIRST_TEXT;
00066 const_scalar_type( LAST_TEXT )          FLD_LAST_TEXT;
00067 const_scalar_type( FIRST_ELEMENT )      FLD_FIRST_ELEMENT;
00068 const_scalar_type( LAST_ELEMENT )       FLD_LAST_ELEMENT;
00069 
00070 const_scalar_type( NEXT_ATTRIBUTE )     FLD_NEXT_ATTRIBUTE;
00071 const_scalar_type( ATTRIBUTE_NAME )     FLD_ATTRIBUTE_NAME;
00072 const_scalar_type( ATTRIBUTE_VALUE )    FLD_ATTRIBUTE_VALUE;
00073 
00074 const_scalar_type( NEXT_TEXT )          FLD_NEXT_TEXT;
00075 const_scalar_type( TEXT_VALUE )         FLD_TEXT_VALUE;
00076 
00077 #endif //_XML_TREE_STRUCT_H_INCLUDED_

Generated on Thu Nov 2 17:43:27 2006 for CTTL XML stream parser sample by  doxygen 1.3.9.1