Liquid XML Data Binder 2020
Liquid XML Data Binder (C++, Java, VB6) / Examples / Simple Sequence / Example Usage / Missing Optional Elements / C++ Sample : Simple Sequence
In This Topic
    C++ Sample : Simple Sequence
    In This Topic
    /**********************************************************************************************
     * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
     * See www.liquid-technologies.com for product details.
     *
     * Please see products End User License Agreement for distribution permissions.
     *
     * WARNING: THIS FILE IS GENERATED
     * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
     *
     * Generation  :  by Liquid XML Data Binder 17.0.1.9233
     * Using Schema: SimpleSequence.xsd
     **********************************************************************************************/
    #ifndef _SimpleSequenceLib_SimpleSequenceLib_CDVD_h 
    #define _SimpleSequenceLib_SimpleSequenceLib_CDVD_h 
    
    // Include Base classes
    
    // ##HAND_CODED_BLOCK_START ID="Additional Includes"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
    
    // Add Additional Includes here...
    
    // ##HAND_CODED_BLOCK_END ID="Additional Includes"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
    
    // Forward declarations - done like this to keep the intellisense happy
    namespace SimpleSequenceLib {   class CClassFactory; };
    
    namespace SimpleSequenceLib
    {
        /*
         * CDVD
         *  
         * This class wraps the element DVD in the schema
         */
        class SimpleSequenceLib_DLL CDVD : public CInstanceMonitor
                        , public virtual SimpleSequenceLib::CXmlCommonBase
    // ##HAND_CODED_BLOCK_START ID="Additional Base Classes"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
    // Add Additional base classes here...
    // ##HAND_CODED_BLOCK_END ID="Additional Base Classes"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
        {
        public:
            static SimpleSequenceLib::CDVDPtr CreateInstance(LPCTSTR lpctElementName=_T("DVD"));
    
        protected:
            CDVD(LPCTSTR lpctElementName=_T("DVD"));
            virtual ~CDVD();
            friend class SimpleSequenceLib::CClassFactory;
        
            virtual void Init();
            virtual void AccessProperty(int iPropertyIndex, bool read, LtXmlLib18::LtVariant& rValue);
            virtual LtXmlLib18Data::CParentElementInfo* GetClassInfo() const;
            virtual LtXmlLib18Data::CElementInfo** GetClassElementInfo() const;
            virtual LtXmlLib18Data::CAttributeInfo** GetClassAttributeInfo() const;
            
            static  void CleanMetaData();
                    void Cleanup();
            virtual void OnEvent(LtXmlLib18::CXmlObjectBase* pMsgSource, LtXmlLib18::IEventSink::MsgType eMsgType, void* pData);
    
        public:
            std::tstring GetGenre() const;
            void SetGenre(std::tstring val);
            bool IsValidGenre() const;
            void SetValidGenre(bool val);
        protected:
            bool m_IsValidGenre;
            std::tstring m_Genre;
    
        public:
            DOUBLE GetCost() const;
            void SetCost(DOUBLE val);
        protected:
            DOUBLE m_Cost;
    
        public:
            std::tstring GetTitle() const;
            void SetTitle(std::tstring val);
        protected:
            std::tstring m_Title;
    
        public:
            std::tstring GetDescription() const;
            void SetDescription(std::tstring val);
        protected:
            std::tstring m_Description;
    
        public:
            LtXmlLib18::CDateTime GetReleaseDate() const;
            void SetReleaseDate(LtXmlLib18::CDateTime val);
        protected:
            LtXmlLib18::CDateTime m_ReleaseDate;
    
    
    
        public:
            // Performs a 'deep copy' of all the data in the class (and its children)
            virtual SimpleSequenceLib::CDVDPtr Clone() const;
    
            virtual std::tstring GetTargetNamespace() const;
            virtual std::tstring GetNamespace() const;
            virtual LtXmlLib18::CXmlObjectBase* GetBase();
    
        // Internal data for XML serialization
        private:
            static LtXmlLib18Data::CParentElementInfo* ms_pParentElementInfo;
            static LtXmlLib18Data::CElementInfo** ms_ppElementInfo;
            static LtXmlLib18Data::CAttributeInfo** ms_ppAttributeInfo;
    
    // ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
    
    // Add Additional Methods here...
    
    // ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
        };
    }; // end namespace (SimpleSequenceLib)
    
    
    #endif // _SimpleSequenceLib_CDVD_h 
    
    
    
    
    
     DVD.cpp

    Main Menu Samples List