ws_codesignPlugin.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2019 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. #pragma warning (disable : 4786)
  14. #ifndef WS_CODESIGN_API
  15. #define WS_CODESIGN_API DECL_EXPORT
  16. #endif //WS_CODESIGN_API
  17. #include "ws_codesign_esp.ipp"
  18. //ESP Bindings
  19. #include "httpprot.hpp"
  20. //ESP Service
  21. #include "ws_codesignService.hpp"
  22. #include "espplugin.hpp"
  23. extern "C"
  24. {
  25. ESP_FACTORY IEspService * esp_service_factory(const char *name, const char* type, IPropertyTree *cfg, const char *process)
  26. {
  27. if (strcmp(type, "ws_codesign")==0)
  28. {
  29. Cws_codesignEx* service = new Cws_codesignEx;
  30. service->init(cfg, process, name);
  31. return service;
  32. }
  33. return nullptr;
  34. }
  35. ESP_FACTORY IEspRpcBinding * esp_binding_factory(const char *name, const char* type, IPropertyTree *cfg, const char *process)
  36. {
  37. if (strcmp(type, "ws_codesignSoapBinding")==0)
  38. {
  39. return new Cws_codesignSoapBinding(cfg, name, process);
  40. }
  41. return nullptr;
  42. }
  43. ESP_FACTORY IEspProtocol * esp_protocol_factory(const char *name, const char* type, IPropertyTree *cfg, const char *process)
  44. {
  45. return http_protocol_factory(name, type, cfg, process);
  46. }
  47. } // extern "C"