Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

DSIGTransformXPathFilter.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * DSIGTransformXPathFilter := Class that performs XPath Filter 
00021  *                             transforms
00022  *
00023  * $Id: DSIGTransformXPathFilter.hpp 351364 2005-06-04 11:30:26Z blautenb $
00024  *
00025  */
00026 
00027 #ifndef DSIGTRANSFORMXPATHFILTER_INCLUDE
00028 #define DSIGTRANSFORMXPATHFILTER_INCLUDE
00029 
00030 #include <xsec/dsig/DSIGTransform.hpp>
00031 #include <xsec/utils/XSECSafeBuffer.hpp>
00032 
00033 
00034 XSEC_DECLARE_XERCES_CLASS(DOMNamedNodeMap);
00035 XSEC_DECLARE_XERCES_CLASS(DOMNode);
00036 
00037 #include <vector>
00038 
00039 class DSIGXPathFilterExpr;
00040 
00056 class DSIG_EXPORT DSIGTransformXPathFilter : public DSIGTransform {
00057 
00058 
00059 public:
00060 
00065     typedef std::vector<DSIGXPathFilterExpr *> exprVectorType;
00066 
00069     
00080     DSIGTransformXPathFilter(const XSECEnv * env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * node);
00081 
00094     DSIGTransformXPathFilter(const XSECEnv * env);
00095           
00104     virtual ~DSIGTransformXPathFilter();
00105     
00107 
00111 
00119     virtual transformType getTransformType();
00120 
00130     virtual void appendTransformer(TXFMChain * input);
00131 
00139     virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * 
00140         createBlankTransform(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * parentDoc);
00141 
00149     virtual void load(void);
00150 
00152 
00156 
00168     DSIGXPathFilterExpr * appendFilter(xpathFilterType filterType,
00169                                         const XMLCh * filterExpr);
00170 
00180     unsigned int getExprNum(void);
00181 
00192     DSIGXPathFilterExpr * expr(unsigned int n);
00193 
00195     
00196 private:
00197 
00198     DSIGTransformXPathFilter();
00199     DSIGTransformXPathFilter(const DSIGTransformXPathFilter & theOther);
00200 
00201     bool                        m_loaded;
00202 
00203     // The expressions
00204     exprVectorType              m_exprs;
00205 
00206 
00207 };
00208 
00209 #endif /* DSIGTRANSFORMXPATHFILTER_INCLUDE */

Generated on Sun Jan 28 19:37:22 2007 for XML-Security-C by  doxygen 1.4.2