SchemaLength.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_LENGTH_HPP_
  14. #define _SCHEMA_LENGTH_HPP_
  15. #include "SchemaCommon.hpp"
  16. namespace CONFIGURATOR
  17. {
  18. class CLength : public CXSDNode
  19. {
  20. public:
  21. virtual ~CLength()
  22. {
  23. }
  24. static CLength* load(CXSDNodeBase* pParentNode, const ::IPropertyTree *pSchemaRoot, const char* xpath);
  25. virtual void dump(::std::ostream& cout, unsigned int offset = 0) const;
  26. virtual void getDocumentation(StringBuffer &strDoc) const
  27. {
  28. UNIMPLEMENTED;
  29. }
  30. virtual const char* getXML(const char* /*pComponent*/)
  31. {
  32. UNIMPLEMENTED;
  33. return NULL;
  34. }
  35. virtual void populateEnvXPath(::StringBuffer strXPath, unsigned int index = 1)
  36. {
  37. UNIMPLEMENTED;
  38. }
  39. GETTERSETTER(Value)
  40. GETTERSETTERINT(Length)
  41. private:
  42. CLength(CXSDNodeBase* pParentNode = NULL) : CXSDNode::CXSDNode(pParentNode, XSD_LENGTH), m_nLength(-1)
  43. {
  44. }
  45. };
  46. }
  47. #endif // _SCHEMA_LENGTH_HPP_