xmlfilereader.h File Reference

This file holds the declaration for the XMLReader. More...

#include <gvectors-config.h>
#include <stdlib.h>
#include <string>
#include <libxml++/libxml++.h>
#include <gvectortypes.h>
#include <gvexceptions.h>
#include <vectorstore.h>
#include <filereader.h>
#include <visualvector.h>
#include <color.h>

Go to the source code of this file.

Namespaces

namespace  GVectors

Classes

class  GVectors::XMLReader< Fct >
 The template class for reading XML vector store files. More...

Variables

const std::string GVectors::VERSION_0_1 = "0.1"
 The version of the XML Vector Store file.
const std::string GVectors::NODE_NAME_VECTOR = "vector"
 The node name of a vector.
const std::string GVectors::NODE_NAME_COORDINATES = "coordinates"
 The name of the coordinates node.
const std::string GVectors::NODE_NAME_COMPONENTS [4]
 The names of the nodes in a coordinates node.
const std::string GVectors::NODE_NAME_XCOMP = "xcomp"
 The name of the x component node.
const std::string GVectors::NODE_NAME_YCOMP = "ycomp"
 The name of the y component node.
const std::string GVectors::NODE_NAME_ZCOMP = "zcomp"
 The name of the z component node.
const std::string GVectors::NODE_NAME_COLOR = "color"
 The name of the color node.
const std::string GVectors::NODE_NAME_COLORS [4]
 The names of the nodes in a color node.
const std::string GVectors::NODE_NAME_RED = "red"
 The name of the red component node.
const std::string GVectors::NODE_NAME_GREEN = "green"
 The name of the green component node.
const std::string GVectors::NODE_NAME_BLUE = "blue"
 The name of the blue component node.


Detailed Description

This file holds the declaration for the XMLReader class, which reads a VectorStore stored as XML file from disk.

See below for the DTD used with XML vector store file.

<!-- Elements -->
<!ELEMENT vectorstore (vector+)>
<!ELEMENT vector (coordinates,color,vector*)>
<!ELEMENT coordinates (xcomp,ycomp,zcomp)>
<!ELEMENT xcomp (#PCDATA)>
<!ELEMENT ycomp (#PCDATA)>
<!ELEMENT zcomp (#PCDATA)>
<!ELEMENT color (red,green,blue)>
<!ELEMENT red (#PCDATA)>
<!ELEMENT green (#PCDATA)>
<!ELEMENT blue (#PCDATA)>

<!-- Attributes -->
<!ATTLIST vectorstore version CDATA #REQUIRED>
<!ATTLIST vector tag CDATA #REQUIRED>

The DTD is boundled with the source tarball, or can be retrieved online by pointing the browser to

http://www.guengel.ch/dtd/vectorstore1.0.dtd


Generated on Sat Sep 8 19:37:29 2007 for libgvectors by  doxygen 1.4.7