Xalan-C++ API Documentation

The Xalan-C++ XSL Transformer Version 1.0

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XercesDOM_NodeHack.hpp

Go to the documentation of this file.
00001 #if !defined(XERCESDOM_NODEHACK_HEADER_GUARD_1357924680)
00002 #define XERCESDOM_NODEHACK_HEADER_GUARD_1357924680
00003 
00004 
00005 
00006 #include <XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
00007 
00008 
00009 
00010 #include <dom/DOM_Node.hpp>
00011 #include <dom/DOM_Attr.hpp>
00012 
00013 
00014 
00015 // An evil class to hack the Xerces smart-pointer class.  I'm
00016 // only doing this because I have to...
00017 class XALAN_XERCESPARSERLIAISON_EXPORT XercesDOM_NodeHack : public DOM_Node
00018 {
00019 public:
00020 
00021     XercesDOM_NodeHack(NodeImpl*    theImpl = 0);
00022 
00023     ~XercesDOM_NodeHack();
00024 
00025     NodeImpl*
00026     getImpl() const
00027     {
00028         return fImpl;
00029     }
00030 
00031     static NodeImpl*
00032     getImpl(const DOM_Node&     theNode)
00033     {
00034 #if defined(XALAN_OLD_STYLE_CASTS)
00035         return ((const XercesDOM_NodeHack&)theNode).getImpl();
00036 #else
00037         return static_cast<const XercesDOM_NodeHack&>(theNode).getImpl();
00038 #endif
00039     }
00040 };
00041 
00042 
00043 
00044 class XALAN_XERCESPARSERLIAISON_EXPORT XercesDOM_AttrHack : public DOM_Attr
00045 {
00046 public:
00047 
00048     XercesDOM_AttrHack(AttrImpl*    theImpl = 0);
00049 
00050     ~XercesDOM_AttrHack();
00051 };
00052 
00053 
00054 
00055 #endif  // !defined(XERCESDOM_NODEHACK_HEADER_GUARD_1357924680)

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSL Transformer Version 1.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.