EnvSupportLib.hpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2018 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 HPCCSYSTEMS_PLATFORM_CONFIGSUPPORTLIB_HPP
  14. #define HPCCSYSTEMS_PLATFORM_CONFIGSUPPORTLIB_HPP
  15. #include "SchemaItem.hpp"
  16. #include "EnvironmentNode.hpp"
  17. class HPCCConfigSupport;
  18. class EnvironmentMgr;
  19. class EnvSupportLib
  20. {
  21. public:
  22. EnvSupportLib(const std::string &libName, EnvironmentMgr *pEnvMgr);
  23. ~EnvSupportLib();
  24. void processEvent(const std::string &event, const std::shared_ptr<SchemaItem> &pSchema, const std::shared_ptr<EnvironmentNode> &pEventNode, Status &status) const;
  25. void validate(const std::shared_ptr<SchemaItem> &pSchema, const std::shared_ptr<EnvironmentNode> &pEnvironment, Status &status) const;
  26. private:
  27. HINSTANCE m_libHandle;
  28. std::string m_libName;
  29. HPCCConfigSupport *m_pSupportLib;
  30. };
  31. #endif //HPCCSYSTEMS_PLATFORM_CONFIGSUPPORTLIB_HPP