PluginDeploymentEngine.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 PLUGINDEPLOYMENTENGINE_HPP_INCL
  14. #define PLUGINDEPLOYMENTENGINE_HPP_INCL
  15. #pragma warning(disable : 4786)
  16. #include "deploymentengine.hpp"
  17. //---------------------------------------------------------------------------
  18. // CPluginDeploymentEngine
  19. //---------------------------------------------------------------------------
  20. class CPluginDeploymentEngine : public CDeploymentEngine
  21. {
  22. public:
  23. IMPLEMENT_IINTERFACE;
  24. CPluginDeploymentEngine(IEnvDeploymentEngine& envDepEngine,
  25. IConstEnvironment& environment,
  26. IPropertyTree& process,
  27. const char* instanceType=NULL);
  28. protected:
  29. virtual int createInstallFileMap(IPropertyTree& node, const char* destPath,
  30. mmapStr2PairStrStr& fileMap) const;
  31. void getPluginDirectory(const char* destPath, StringBuffer& sPluginDest) const;
  32. void getDefaultPlugins(StringArray& plugins, StringBuffer& sPluginsPath,
  33. const char* destDir) const;
  34. void getPlugins(StringArray& plugins, StringBuffer& sPluginsPath,
  35. const char* pluginDest) const;
  36. };
  37. //---------------------------------------------------------------------------
  38. #endif // PLUGINDEPLOYMENTENGINE_HPP_INCL