00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef TXFMOUTPUTFILE_INCLUDE
00028 #define TXFMOUTPUTFILE_INCLUDE
00029
00030 #include <xsec/transformers/TXFMBase.hpp>
00031
00032 #include <fstream>
00033
00034 using std::ofstream;
00035
00048 class DSIG_EXPORT TXFMOutputFile : public TXFMBase {
00049
00050 private:
00051
00052 ofstream f;
00053
00054 public:
00055
00056 TXFMOutputFile(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc) :
00057 TXFMBase(doc) {input = NULL;}
00058 ~TXFMOutputFile();
00059
00060
00061
00062 void setInput(TXFMBase *newInput);
00063
00064
00065
00066 virtual TXFMBase::ioType getInputType(void);
00067 virtual TXFMBase::ioType getOutputType(void);
00068 virtual TXFMBase::nodeType getNodeType(void);
00069
00070
00071
00072 bool setFile(char * const fileName);
00073
00074
00075
00076 virtual unsigned int readBytes(XMLByte * const toFill, const unsigned int maxToFill);
00077 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *getDocument();
00078 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *getFragmentNode();
00079 virtual const XMLCh * getFragmentId();
00080
00081 private:
00082 TXFMOutputFile();
00083 };
00084
00085
00086 #endif