thorhelper.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 THORHELPER_HPP
  14. #define THORHELPER_HPP
  15. #include "jiface.hpp"
  16. #include "jptree.hpp"
  17. #ifdef THORHELPER_EXPORTS
  18. #define THORHELPER_API DECL_EXPORT
  19. #else
  20. #define THORHELPER_API DECL_IMPORT
  21. #endif
  22. interface IXmlToRawTransformer : extends IInterface
  23. {
  24. virtual IDataVal & transform(IDataVal & result, size32_t len, const void * text, bool isDataset) = 0;
  25. virtual IDataVal & transformTree(IDataVal & result, IPropertyTree &tree, bool isDataset) = 0;
  26. };
  27. interface ICsvToRawTransformer : extends IInterface
  28. {
  29. virtual IDataVal & transform(IDataVal & result, size32_t len, const void * text, bool isDataset) = 0;
  30. };
  31. enum ThorReplyCodes { DAMP_THOR_ACK, DAMP_THOR_REPLY_GOOD, DAMP_THOR_REPLY_ERROR, DAMP_THOR_REPLY_ABORT, DAMP_THOR_REPLY_PAUSED };
  32. #endif // THORHELPER_HPP