XSDValueSetParser.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2017 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 _CONFIG2_XSDVALUESETPARSER_HPP_
  14. #define _CONFIG2_XSDVALUESETPARSER_HPP_
  15. #include <string>
  16. #include <memory>
  17. #include <map>
  18. #include <boost/property_tree/ptree.hpp>
  19. #include "XSDSchemaParser.hpp"
  20. namespace pt = boost::property_tree;
  21. class XSDValueSetParser : public XSDSchemaParser
  22. {
  23. public:
  24. XSDValueSetParser(std::shared_ptr<SchemaItem> pValueSet) :
  25. XSDSchemaParser(pValueSet) { }
  26. virtual ~XSDValueSetParser() { }
  27. virtual void parseXSD(const pt::ptree &valueSetTree);
  28. void setGroupByName(const std::string &name) { m_groupByName = name; }
  29. protected:
  30. XSDValueSetParser() { }
  31. protected:
  32. std::string m_groupByName;
  33. };
  34. #endif // _CONFIG2_XSDVALUESETPARSER_HPP_