1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /*##############################################################################
- HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems®.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ############################################################################## */
- #ifndef _SCHEMA_APP_INFO_HPP_
- #define _SCHEMA_APP_INFO_HPP_
- #include "SchemaCommon.hpp"
- #include "jstring.hpp"
- namespace CONFIGURATOR
- {
- class IPropertyTree;
- class CAppInfo : public CXSDNodeBase
- {
- public:
- virtual ~CAppInfo()
- {
- }
- GETTERSETTER(ViewType)
- GETTERSETTER(ColIndex)
- GETTERSETTER(ToolTip)
- GETTERSETTER(Title)
- GETTERSETTER(AutoGenForWizard)
- GETTERSETTER(AutoGenDefaultValue)
- GETTERSETTER(Width)
- GETTERSETTER(AutoGenDefaultValueForMultiNode)
- GETTERSETTER(ViewChildNodes)
- GETTERSETTER(XPath)
- GETTERSETTER(DocTableID)
- GETTERSETTER(Required)
- virtual void dump(::std::ostream &cout, unsigned int offset = 0) const;
- virtual void getDocumentation(StringBuffer &strDoc) const;
- virtual void loadXMLFromEnvXml(const ::IPropertyTree *pEnvTree);
- bool getDocLineBreak() const
- {
- return m_bDocLineBreak;
- }
- static CAppInfo* load(CXSDNodeBase* pParentNode, const ::IPropertyTree *pSchemaRoot, const char* xpath);
- protected:
- 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,\
- const char* pAutoGenDefaultValue = NULL, const char* pAutoGenDefaultForMultiNode = NULL, const char* pViewChildNodes = NULL, const char* pXPath = NULL, const char* pDocTableID = NULL, bool bDocLineBreak = false, \
- const char* pRequired = NULL ) \
- : CXSDNodeBase::CXSDNodeBase(pParentNode, XSD_APP_INFO), m_strViewType(pViewType), m_strColIndex(pColIndex), m_strToolTip(pToolTip), m_strTitle(pTitle), m_strWidth(pWidth), m_strAutoGenForWizard(pAutoGenForWizard),\
- m_strAutoGenDefaultValue(pAutoGenDefaultValue), m_strAutoGenDefaultValueForMultiNode(pAutoGenDefaultForMultiNode), m_strViewChildNodes(pViewChildNodes), m_strXPath(pXPath), m_strDocTableID(pDocTableID), \
- m_bDocLineBreak(bDocLineBreak), m_strRequired(pRequired)
- {
- }
- bool m_bDocLineBreak;
- private:
- CAppInfo(CXSDNodeBase* pParentNode = NULL) : CXSDNodeBase::CXSDNodeBase(pParentNode, XSD_APP_INFO)
- {
- }
- };
- }
- #endif // _SCHEMA_APP_INFO_HPP_
|