Annotation of parser3/src/types/pa_vdom.h, revision 1.2
1.2 ! parser 1: /** @file
! 2: Parser: @b DOM parser class decl.
! 3:
! 4: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
! 5:
! 6: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
! 7:
! 8: $Id: pa_vdom.h,v 1.1.2.1 2001/09/07 08:45:58 parser Exp $
! 9: */
! 10:
! 11: #ifndef PA_VDOM_H
! 12: #define PA_VDOM_H
! 13:
! 14: #include "classes.h"
! 15: #include "pa_common.h"
! 16: #include "pa_vstateless_object.h"
! 17:
! 18: #include <XalanTransformer/XalanTransformer.hpp>
! 19:
! 20: extern Methoded *Dom_class;
! 21:
! 22: /// value of type 'DOM'. implemented with @c DOM
! 23: class VDOM : public VStateless_object {
! 24: public: // Value
! 25:
! 26: const char *type() const { return "dom"; }
! 27: /// VDOM: clone
! 28: Value *as_expr_result(bool return_string_as_is=false) { return this; }
! 29:
! 30: protected: // VAliased
! 31:
! 32: /// disable .CLASS element. @see VAliased::get_element
! 33: bool hide_class() { return true; }
! 34:
! 35: public: // usage
! 36:
! 37: /// @test XalanTransformer free somehow
! 38: VDOM(Pool& apool, XalanParsedSource* aparsedSource) : VStateless_object(apool, *Dom_class),
! 39: theXalanTransformer(new XalanTransformer),
! 40: fparsedSource(aparsedSource) {
! 41: }
! 42:
! 43: XalanTransformer& getXalanTransformer() {return *theXalanTransformer; }
! 44:
! 45: XalanParsedSource* getParsedSource() { return fparsedSource; }
! 46: void setParsedSource(XalanParsedSource* aparsedSource) { fparsedSource=aparsedSource; }
! 47:
! 48: private:
! 49:
! 50: XalanTransformer *theXalanTransformer;
! 51: XalanParsedSource* fparsedSource;
! 52:
! 53: };
! 54:
! 55: #endif
E-mail: