configgenengine.hpp 1.8 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 CONFIGGENENGINE_HPP_INCL
  14. #define CONFIGGENENGINE_HPP_INCL
  15. #include "DeploymentEngine.hpp"
  16. //---------------------------------------------------------------------------
  17. // CConfigGenEngine
  18. //---------------------------------------------------------------------------
  19. class CConfigGenEngine : public CDeploymentEngine
  20. {
  21. public:
  22. IMPLEMENT_IINTERFACE;
  23. CConfigGenEngine(IEnvDeploymentEngine& envDepEngine,
  24. IDeploymentCallback& callback, IPropertyTree& process,
  25. const char* inputDir="", const char* outputDir="",
  26. const char* instanceType=NULL, bool createIni=false);
  27. protected:
  28. virtual int determineInstallFiles(IPropertyTree& node, CInstallFiles& installFiles) const;
  29. virtual void deployInstance(IPropertyTree& node, bool useTempDir);
  30. virtual void beforeDeploy();
  31. void createFakePlugins(StringBuffer& destFilePath) const;
  32. private:
  33. StringBuffer m_inDir;
  34. StringBuffer m_outDir;
  35. };
  36. //---------------------------------------------------------------------------
  37. #endif // CONFIGGENENGINE_HPP_INCL