SWComponentBase.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 _SWCOMPONENTBASE_HPP_
  14. #define _SWCOMPONENTBASE_HPP_
  15. #include "EnvHelper.hpp"
  16. #include "ComponentBase.hpp"
  17. namespace ech
  18. {
  19. class SWComponentBase : public ComponentBase
  20. {
  21. public:
  22. SWComponentBase(const char* name, EnvHelper * envHelper);
  23. virtual ~SWComponentBase();
  24. virtual void create(IPropertyTree *params);
  25. virtual unsigned add(IPropertyTree *params);
  26. virtual void modify(IPropertyTree *params);
  27. //virtual void remove(IPropertyTree *params);
  28. virtual IPropertyTree * addComponent(IPropertyTree *params);
  29. protected:
  30. Owned<IPropertyTree> m_pSchema;
  31. IPropertyTree* m_pBuildSet;
  32. StringArray m_notifyList;
  33. StringBuffer m_buildSetName;
  34. StringBuffer m_buildName;
  35. StringBuffer m_xsdFileName;
  36. StringBuffer m_processName;
  37. };
  38. }
  39. #endif