SchemaAppInfo.hpp 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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_APP_INFO_HPP_
  14. #define _SCHEMA_APP_INFO_HPP_
  15. #include "SchemaCommon.hpp"
  16. #include "jstring.hpp"
  17. namespace CONFIGURATOR
  18. {
  19. class IPropertyTree;
  20. class CAppInfo : public CXSDNodeBase
  21. {
  22. public:
  23. virtual ~CAppInfo()
  24. {
  25. }
  26. GETTERSETTER(ViewType)
  27. GETTERSETTER(ColIndex)
  28. GETTERSETTER(ToolTip)
  29. GETTERSETTER(Title)
  30. GETTERSETTER(AutoGenForWizard)
  31. GETTERSETTER(AutoGenDefaultValue)
  32. GETTERSETTER(Width)
  33. GETTERSETTER(AutoGenDefaultValueForMultiNode)
  34. GETTERSETTER(ViewChildNodes)
  35. GETTERSETTER(XPath)
  36. GETTERSETTER(DocTableID)
  37. GETTERSETTER(Required)
  38. virtual void dump(::std::ostream &cout, unsigned int offset = 0) const;
  39. virtual void getDocumentation(StringBuffer &strDoc) const;
  40. virtual void loadXMLFromEnvXml(const ::IPropertyTree *pEnvTree);
  41. bool getDocLineBreak() const
  42. {
  43. return m_bDocLineBreak;
  44. }
  45. static CAppInfo* load(CXSDNodeBase* pParentNode, const ::IPropertyTree *pSchemaRoot, const char* xpath);
  46. protected:
  47. CAppInfo(CXSDNodeBase* pParentNode, const char *pViewType = NULL, const char *pColIndex = NULL, const char* pToolTip = NULL, const char* pTitle = NULL, const char* pWidth = NULL, const char* pAutoGenForWizard = NULL,\
  48. const char* pAutoGenDefaultValue = NULL, const char* pAutoGenDefaultForMultiNode = NULL, const char* pViewChildNodes = NULL, const char* pXPath = NULL, const char* pDocTableID = NULL, bool bDocLineBreak = false, \
  49. const char* pRequired = NULL ) \
  50. : CXSDNodeBase::CXSDNodeBase(pParentNode, XSD_APP_INFO), m_strViewType(pViewType), m_strColIndex(pColIndex), m_strToolTip(pToolTip), m_strTitle(pTitle), m_strWidth(pWidth), m_strAutoGenForWizard(pAutoGenForWizard),\
  51. m_strAutoGenDefaultValue(pAutoGenDefaultValue), m_strAutoGenDefaultValueForMultiNode(pAutoGenDefaultForMultiNode), m_strViewChildNodes(pViewChildNodes), m_strXPath(pXPath), m_strDocTableID(pDocTableID), \
  52. m_bDocLineBreak(bDocLineBreak), m_strRequired(pRequired)
  53. {
  54. }
  55. bool m_bDocLineBreak;
  56. private:
  57. CAppInfo(CXSDNodeBase* pParentNode = NULL) : CXSDNodeBase::CXSDNodeBase(pParentNode, XSD_APP_INFO)
  58. {
  59. }
  60. };
  61. }
  62. #endif // _SCHEMA_APP_INFO_HPP_