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

XSECBinTXFMInputStream.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  * XSECBinTXFMInputStream := Implement the BinInputStream around Transforms.
00021  *
00022  * Author(s): Berin Lautenbach
00023  *
00024  * $ID$
00025  *
00026  * $LOG$
00027  *                   
00028  */
00029 
00030 
00031 #ifndef XSECBINTXFMINPUTSTREAM_INCLUDE
00032 #define XSECBINTXFMINPUTSTREAM_INCLUDE
00033 
00034 #include <xsec/framework/XSECDefs.hpp>
00035 #include <xercesc/util/BinInputStream.hpp>
00036 
00037 class TXFMChain;
00038 class TXFMBase;
00039 
00060 class DSIG_EXPORT XSECBinTXFMInputStream : public XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream
00061 {
00062 
00063 public :
00064 
00067 
00076     XSECBinTXFMInputStream(TXFMChain * lst, bool deleteWhenDone = true);
00077 
00085     virtual ~XSECBinTXFMInputStream();
00086 
00088 
00091 
00099     void reset();
00100 
00102 
00105 
00112     virtual unsigned int curPos() const;
00113 
00128     virtual unsigned int readBytes(XMLByte* const  toFill, 
00129         const unsigned int maxToRead);
00130 
00131 
00132 private :
00133 
00134     TXFMBase                    * mp_txfm;          // End point of list
00135     TXFMChain                   * mp_chain;         // The actual chain
00136     bool                        m_deleteWhenDone;   // Do we delete?
00137     bool                        m_deleted;          // Have we deleted?
00138     bool                        m_done;             // Are we done?
00139     unsigned int                m_currentIndex;     // How much read?
00140 
00141 };
00142 
00143 
00144 
00145 #endif

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