proj home

Files   Classes   Functions   Hierarchy  

xmlparser.h

Go to the documentation of this file.
00001 #ifndef XMLPARSER_H
00002 #define XMLPARSER_H
00003 
00004 /*
00005 Spec:
00006 
00007 Initially support tags with no internal properties.
00008   e.g. <mytag id="557"> </mytag> is not supported.
00009   through "<mytag" ... ">" would capture the structure.
00010 
00011 Strict:
00012 <tag> ... </tag> supported.
00013 
00014 Support both reading and writing.
00015 
00016 Structure with strict: Tokenize on tags.
00017 Full and partial tokenization supported.
00018  Partial tokenization tokenizes on an extraction request.  If the tag is found
00019  the string is tokenized with respect to the tag.
00020 
00021 stringc data( stringc& tag1) from stringtagparser is implemented
00022  as returning a string sublist.
00023 
00024 class stringsublist
00025 {
00026 public:
00027 
00028   // If the tag was not found then invalid.
00029   bool valid;
00030 
00031   list<string>& seq;
00032 
00033   list<string>::iterator subbeg;
00034   list<string>::iterator subend;
00035 
00036 };
00037 
00038 stringsublist read(stringc& tag1);
00039 
00040 Deleting tags separate function.
00041 
00042 bool write(stringc& tag1, stringc value)
00043 bool write(stringc& tag1, stringsublist)
00044 
00045  serialize and serializeInverse supported.
00046 
00047 
00048 
00049 
00050 */
00051 
00052 #include <stringsublist.h>
00053 #include <tokenizer.h>
00054 
00055 class xmlparser
00056 {
00057 public: 
00058 
00060   tokenizer ss;
00061 
00062   /* Withing tag1 write the substring. */
00063   //TODO boolc write(stringc& tag1, stringc& data)
00064 };
00065 
00066 
00067 #endif
00068 

Generated on Fri Mar 4 00:49:29 2011 for Chelton Evans Source by  doxygen 1.5.8