fttransform.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef FTTRANSFORM_HPP
  14. #define FTTRANSFORM_HPP
  15. #include "rmtfile.hpp"
  16. #include "ftbase.hpp"
  17. interface ITransformer : public IInterface
  18. {
  19. public:
  20. virtual void beginTransform(IFileIOStream * out) = 0;
  21. virtual void endTransform(IFileIOStream * out) = 0;
  22. virtual size32_t getBlock(IFileIOStream * out) = 0;
  23. virtual bool getInputCRC(crc32_t & value) = 0;
  24. virtual void setInputCRC(crc32_t value) = 0;
  25. virtual bool setPartition(RemoteFilename & remoteInputName, offset_t _startOffset, offset_t _length, bool compressedInput, const char *decryptKey) = 0;
  26. virtual offset_t tell() = 0;
  27. };
  28. #endif