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

DSIGTransform.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  * DSIGTransform := Base (virtual) class that defines a DSIG Transform
00021  *
00022  * Author(s): Berin Lautenbach
00023  *
00024  * $Id: DSIGTransform.hpp,v 1.11 2005/06/04 11:30:25 blautenb Exp $
00025  *
00026  */
00027 
00028 #ifndef DSIGTRANSFORM_INCLUDE
00029 #define DSIGTRANSFORM_INCLUDE
00030 
00031 #include <xsec/dsig/DSIGConstants.hpp>
00032 #include <xsec/framework/XSECDefs.hpp>
00033 
00034 XSEC_DECLARE_XERCES_CLASS(DOMNode);
00035 XSEC_DECLARE_XERCES_CLASS(DOMElement);
00036 XSEC_DECLARE_XERCES_CLASS(DOMDocument);
00037 
00038 #include <stdio.h>
00039 
00040 class XSECEnv;
00041 class TXFMChain;
00042 
00061 class DSIG_EXPORT DSIGTransform {
00062 
00063 public:
00064 
00067     
00082     DSIGTransform(const XSECEnv * env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * node) : 
00083           mp_txfmNode(node),
00084           mp_env(env) {};
00085 
00098     DSIGTransform(const XSECEnv * env) : 
00099           mp_txfmNode(NULL),
00100           mp_env(env) {};
00101 
00102           
00111     virtual ~DSIGTransform() {};
00112     
00114 
00118 
00126     virtual transformType getTransformType() = 0;
00127     
00135     virtual void appendTransformer(TXFMChain * input) = 0;
00136 
00144     virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * 
00145         createBlankTransform(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * parentDoc) = 0;
00146 
00154     virtual void load(void) = 0;
00155 
00157 
00158 protected:
00159 
00163 
00169     XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * createTransformNode();
00170 
00171 
00172     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode                  
00173                             * mp_txfmNode;          // The node that we read from
00174     const XSECEnv           * mp_env;   // Owning signature
00175 
00176 private:
00177 
00178     DSIGTransform();
00179     DSIGTransform(const DSIGTransform &theOther);
00180 
00181 };
00182 
00183 
00184 
00185 #endif /* #define DSIGTRANSFORM_INCLUDE */

Generated on Sun Jul 3 17:37:25 2005 for XML-Security-C by  doxygen 1.4.2