//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2013 EMC Corp. // // @filename: // CParseHandlerCTEConfig.h // // @doc: // SAX parse handler class for parsing CTE configuration //--------------------------------------------------------------------------- #ifndef GPDXL_CParseHandlerCTEConfig_H #define GPDXL_CParseHandlerCTEConfig_H #include "gpos/base.h" #include "gpopt/engine/CCTEConfig.h" #include "naucrates/dxl/parser/CParseHandlerBase.h" namespace gpdxl { using namespace gpos; XERCES_CPP_NAMESPACE_USE //--------------------------------------------------------------------------- // @class: // CParseHandlerCTEConfig // // @doc: // SAX parse handler class for parsing CTE configuration options // //--------------------------------------------------------------------------- class CParseHandlerCTEConfig : public CParseHandlerBase { private: // CTE configuration CCTEConfig *m_cte_conf; // process the start of an element void StartElement( const XMLCh *const element_uri, // URI of element's namespace const XMLCh *const element_local_name, // local part of element's name const XMLCh *const element_qname, // element's qname const Attributes &attr // element's attributes ) override; // process the end of an element void EndElement( const XMLCh *const element_uri, // URI of element's namespace const XMLCh *const element_local_name, // local part of element's name const XMLCh *const element_qname // element's qname ) override; public: CParseHandlerCTEConfig(const CParseHandlerCTEConfig &) = delete; // ctor CParseHandlerCTEConfig(CMemoryPool *mp, CParseHandlerManager *parse_handler_mgr, CParseHandlerBase *parse_handler_root); // dtor ~CParseHandlerCTEConfig() override; // type of the parse handler EDxlParseHandlerType GetParseHandlerType() const override; // enumerator configuration CCTEConfig *GetCteConf() const; }; } // namespace gpdxl #endif // !GPDXL_CParseHandlerCTEConfig_H // EOF