Rudiments
/home/dmuse/src/rudiments/include/rudiments/codetree.h
00001 // Copyright (c) 2012 David Muse
00002 // See the COPYING file for more information.
00003 
00004 #ifndef RUDIMENTS_CODETREE_H
00005 #define RUDIMENTS_CODETREE_H
00006 
00007 #include <rudiments/private/codetreeincludes.h>
00008 
00009 #ifdef RUDIMENTS_NAMESPACE
00010 namespace rudiments {
00011 #endif
00012 
00013 class codetreeprivate;
00014 
00193 class codetree {
00194         public:
00195 
00197                 codetree();
00198 
00200                 ~codetree();
00201 
00207                 bool    parse(const char *input,
00208                                         const char *grammar,
00209                                         const char *starttoken,
00210                                         rudiments::xmldomnode *output,
00211                                         const char **codeposition);
00212 
00216                 bool    write(rudiments::xmldomnode *input,
00217                                         const char *grammar,
00218                                         rudiments::stringbuffer *output);
00219 
00221                 void    setDebugLevel(uint8_t debuglevel);
00222 
00223         #include <rudiments/private/codetree.h>
00224 };
00225 
00226 // @endcond
00227 
00228 #ifdef RUDIMENTS_NAMESPACE
00229 }
00230 #endif
00231 
00232 #endif