thor.hpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 __THOR__
  14. #define __THOR__
  15. #define THOR_VERSION_MAJOR 4
  16. #define THOR_VERSION_MINOR 1
  17. typedef unsigned activity_id;
  18. typedef unsigned graph_id;
  19. #define ACTPF
  20. #define GIDPF
  21. typedef unsigned __int64 rowcount_t;
  22. #define RCPF I64F
  23. #define RCMAX ((rowcount_t)(__int64)-1)
  24. #define RCUNBOUND RCMAX
  25. #define RCUNSET RCMAX
  26. typedef size32_t rowidx_t;
  27. #define RCIDXMAX ((rowidx_t)(size32_t)-1)
  28. #define RIPF ""
  29. #define RIMAX ((rowidx_t)-1)
  30. #define RIUNSET RIMAX
  31. #include "jexcept.hpp"
  32. template <class T>
  33. inline rowidx_t validRIDX(T X)
  34. {
  35. if (X != (rowidx_t)X)
  36. throw MakeStringException(0, "rowidx_t value truncation");
  37. return (rowidx_t)X;
  38. }
  39. #if 0
  40. #define CATCHALL ...
  41. #else
  42. struct DummyCatchAll{ int i; };
  43. #define CATCHALL DummyCatchAll
  44. #endif
  45. constexpr const char * thorDefaultConfigYaml = R"!!(
  46. version: 1.0
  47. thor:
  48. daliServers: dali
  49. watchdogEnabled: true
  50. watchdogProgressEnabled: true
  51. )!!";
  52. #endif