SchemaSelector.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2015 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 _SCHEMA_SELECTOR_HPP_
  14. #define _SCHEMA_SELECTOR_HPP_
  15. #include "SchemaCommon.hpp"
  16. #include "jstring.hpp"
  17. namespace CONFIGURATOR
  18. {
  19. class CSelector : public CXSDNode
  20. {
  21. public:
  22. virtual ~CSelector()
  23. {
  24. }
  25. virtual void dump(::std::ostream &cout, unsigned int offset = 0) const;
  26. virtual void populateEnvXPath(::StringBuffer strXPath, unsigned int index = 1);
  27. virtual void getDocumentation(::StringBuffer &strDoc) const
  28. {
  29. UNIMPLEMENTED;
  30. }
  31. static CSelector* load(CXSDNodeBase* pParentNode, const ::IPropertyTree *pSchemaRoot, const char* xpath);
  32. GETTERSETTER(ID)
  33. GETTERSETTER(XPath)
  34. protected:
  35. CSelector(CXSDNodeBase* pParentNode) : CXSDNode::CXSDNode(pParentNode, XSD_SELECTOR)
  36. {
  37. }
  38. };
  39. }
  40. #endif // _SCHEMA_SELECTOR_HPP_