⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myxml.h

📁 Visual_C++.NET实用编程百例
💻 H
📖 第 1 页 / 共 3 页
字号:
#pragma once 
#using <System.dll>
#using <System.Data.dll>
#using <System.Xml.dll>
#using <mscorlib.dll>

// 
// 此源代码由 xsd, Version=1.1.4322.573 自动生成。
// 
namespace CreatXML {
    using namespace System;
    using namespace System::Data;
    using namespace System::Xml;
    using namespace System::Runtime::Serialization;
    
    using namespace System;
    public __gc class myXML;
    
    
    [Serializable, 
    System::ComponentModel::DesignerCategoryAttribute(S"code"), 
    System::Diagnostics::DebuggerStepThrough, 
    System::ComponentModel::ToolboxItem(true)]
    public __gc class myXML : public System::Data::DataSet {
        public : __gc class studentDataTable;
        public : __gc class studentRow;
        public : __gc class studentRowChangeEvent;
        public : __gc class studentInfoDataTable;
        public : __gc class studentInfoRow;
        public : __gc class studentInfoRowChangeEvent;
        
        private: CreatXML::myXML::studentDataTable *  tablestudent;
        
        private: CreatXML::myXML::studentInfoDataTable *  tablestudentInfo;
        
        private: System::Data::DataRelation *  relationstudent_studentInfo;
        
        public: myXML();
        protected: myXML(System::Runtime::Serialization::SerializationInfo *  info, System::Runtime::Serialization::StreamingContext context);
        public: [property: System::ComponentModel::Browsable(false), 
        property: System::ComponentModel::DesignerSerializationVisibilityAttribute(System::ComponentModel::DesignerSerializationVisibility::Content)]
         __property CreatXML::myXML::studentDataTable *  get_student();
        
        public: [property: System::ComponentModel::Browsable(false), 
        property: System::ComponentModel::DesignerSerializationVisibilityAttribute(System::ComponentModel::DesignerSerializationVisibility::Content)]
         __property CreatXML::myXML::studentInfoDataTable *  get_studentInfo();
        
        public: virtual System::Data::DataSet *  Clone();
        
        protected: virtual System::Boolean ShouldSerializeTables();
        
        protected: virtual System::Boolean ShouldSerializeRelations();
        
        protected: virtual System::Void ReadXmlSerializable(System::Xml::XmlReader *  reader);
        
        protected: virtual System::Xml::Schema::XmlSchema *  GetSchemaSerializable();
        
        public private: System::Void InitVars();
        
        private: System::Void InitClass();
        
        private: System::Boolean ShouldSerializestudent();
        
        private: System::Boolean ShouldSerializestudentInfo();
        
        private: System::Void SchemaChanged(System::Object *  sender, System::ComponentModel::CollectionChangeEventArgs *  e);
        
        public: __delegate System::Void studentRowChangeEventHandler(System::Object *  sender, CreatXML::myXML::studentRowChangeEvent *  e);
        
        public: __delegate System::Void studentInfoRowChangeEventHandler(System::Object *  sender, CreatXML::myXML::studentInfoRowChangeEvent *  e);
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class studentDataTable : public System::Data::DataTable, public System::Collections::IEnumerable {
            
            private: System::Data::DataColumn *  columnstudentName;
            
            private: System::Data::DataColumn *  columnstudent_Id;
            
            public private: studentDataTable();
            public private: studentDataTable(System::Data::DataTable *  table);
            public: [property: System::ComponentModel::Browsable(false)]
             __property System::Int32 get_Count();
            
            public private:  __property System::Data::DataColumn *  get_studentNameColumn();
            
            public private:  __property System::Data::DataColumn *  get_student_IdColumn();
            
            public:  __property CreatXML::myXML::studentRow *  get_Item(System::Int32 index);
            
            public: __event CreatXML::myXML::studentRowChangeEventHandler *  studentRowChanged;
            
            public: __event CreatXML::myXML::studentRowChangeEventHandler *  studentRowChanging;
            
            public: __event CreatXML::myXML::studentRowChangeEventHandler *  studentRowDeleted;
            
            public: __event CreatXML::myXML::studentRowChangeEventHandler *  studentRowDeleting;
            
            public: System::Void AddstudentRow(CreatXML::myXML::studentRow *  row);
            
            public: CreatXML::myXML::studentRow *  AddstudentRow(System::String *  studentName);
            
            public: System::Collections::IEnumerator *  GetEnumerator();
            
            public: virtual System::Data::DataTable *  Clone();
            
            protected: virtual System::Data::DataTable *  CreateInstance();
            
            public private: System::Void InitVars();
            
            private: System::Void InitClass();
            
            public: CreatXML::myXML::studentRow *  NewstudentRow();
            
            protected: virtual System::Data::DataRow *  NewRowFromBuilder(System::Data::DataRowBuilder *  builder);
            
            protected: virtual System::Type *  GetRowType();
            
            protected: virtual System::Void OnRowChanged(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowChanging(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowDeleted(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowDeleting(System::Data::DataRowChangeEventArgs *  e);
            
            public: System::Void RemovestudentRow(CreatXML::myXML::studentRow *  row);
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class studentRow : public System::Data::DataRow {
            
            private: CreatXML::myXML::studentDataTable *  tablestudent;
            
            public private: studentRow(System::Data::DataRowBuilder *  rb);
            public:  __property System::String *  get_studentName();
            public:  __property  void set_studentName(System::String *  value);
            
            public: CreatXML::myXML::studentInfoRow *  GetstudentInfoRows()[];
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class studentRowChangeEvent : public System::EventArgs {
            
            private: CreatXML::myXML::studentRow *  eventRow;
            
            private: System::Data::DataRowAction eventAction;
            
            public: studentRowChangeEvent(CreatXML::myXML::studentRow *  row, System::Data::DataRowAction action);
            public:  __property CreatXML::myXML::studentRow *  get_Row();
            
            public:  __property System::Data::DataRowAction get_Action();
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class studentInfoDataTable : public System::Data::DataTable, public System::Collections::IEnumerable {
            
            private: System::Data::DataColumn *  columnname;
            
            private: System::Data::DataColumn *  columnaddress;
            
            private: System::Data::DataColumn *  columntelphone;
            
            private: System::Data::DataColumn *  columnstudent_Id;
            
            public private: studentInfoDataTable();
            public private: studentInfoDataTable(System::Data::DataTable *  table);
            public: [property: System::ComponentModel::Browsable(false)]
             __property System::Int32 get_Count();
            
            public private:  __property System::Data::DataColumn *  get_nameColumn();
            
            public private:  __property System::Data::DataColumn *  get_addressColumn();
            
            public private:  __property System::Data::DataColumn *  get_telphoneColumn();
            
            public private:  __property System::Data::DataColumn *  get_student_IdColumn();
            
            public:  __property CreatXML::myXML::studentInfoRow *  get_Item(System::Int32 index);
            
            public: __event CreatXML::myXML::studentInfoRowChangeEventHandler *  studentInfoRowChanged;
            
            public: __event CreatXML::myXML::studentInfoRowChangeEventHandler *  studentInfoRowChanging;
            
            public: __event CreatXML::myXML::studentInfoRowChangeEventHandler *  studentInfoRowDeleted;
            
            public: __event CreatXML::myXML::studentInfoRowChangeEventHandler *  studentInfoRowDeleting;
            
            public: System::Void AddstudentInfoRow(CreatXML::myXML::studentInfoRow *  row);
            
            public: CreatXML::myXML::studentInfoRow *  AddstudentInfoRow(System::String *  name, System::String *  address, System::String *  telphone, CreatXML::myXML::studentRow *  parentstudentRowBystudent_studentInfo);
            
            public: System::Collections::IEnumerator *  GetEnumerator();
            
            public: virtual System::Data::DataTable *  Clone();
            
            protected: virtual System::Data::DataTable *  CreateInstance();
            
            public private: System::Void InitVars();
            
            private: System::Void InitClass();
            
            public: CreatXML::myXML::studentInfoRow *  NewstudentInfoRow();
            
            protected: virtual System::Data::DataRow *  NewRowFromBuilder(System::Data::DataRowBuilder *  builder);
            
            protected: virtual System::Type *  GetRowType();
            
            protected: virtual System::Void OnRowChanged(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowChanging(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowDeleted(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowDeleting(System::Data::DataRowChangeEventArgs *  e);
            
            public: System::Void RemovestudentInfoRow(CreatXML::myXML::studentInfoRow *  row);
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class studentInfoRow : public System::Data::DataRow {
            
            private: CreatXML::myXML::studentInfoDataTable *  tablestudentInfo;
            
            public private: studentInfoRow(System::Data::DataRowBuilder *  rb);
            public:  __property System::String *  get_name();
            public:  __property  void set_name(System::String *  value);
            
            public:  __property System::String *  get_address();
            public:  __property  void set_address(System::String *  value);
            
            public:  __property System::String *  get_telphone();
            public:  __property  void set_telphone(System::String *  value);
            
            public:  __property CreatXML::myXML::studentRow *  get_studentRow();
            public:  __property  void set_studentRow(CreatXML::myXML::studentRow *  value);
            
            public: System::Boolean IsnameNull();
            
            public: System::Void SetnameNull();
            
            public: System::Boolean IsaddressNull();
            
            public: System::Void SetaddressNull();
            
            public: System::Boolean IstelphoneNull();
            
            public: System::Void SettelphoneNull();
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class studentInfoRowChangeEvent : public System::EventArgs {
            
            private: CreatXML::myXML::studentInfoRow *  eventRow;
            
            private: System::Data::DataRowAction eventAction;
            
            public: studentInfoRowChangeEvent(CreatXML::myXML::studentInfoRow *  row, System::Data::DataRowAction action);
            public:  __property CreatXML::myXML::studentInfoRow *  get_Row();
            
            public:  __property System::Data::DataRowAction get_Action();
        };
        };
    
    
    
    
    
    inline myXML::myXML() {
        this->InitClass();
        System::ComponentModel::CollectionChangeEventHandler *  schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
        this->Tables->CollectionChanged += schemaChangedHandler;
        this->Relations->CollectionChanged += schemaChangedHandler;
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -