• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IXmlBBase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IXmlBBase的典型用法代码示例。如果您正苦于以下问题:C# IXmlBBase类的具体用法?C# IXmlBBase怎么用?C# IXmlBBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IXmlBBase类属于命名空间,在下文中一共展示了IXmlBBase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: connectSons

 public static void connectSons(IXmlBBase father, ICollection l)
 {
     if (l != null)
     {
         foreach (IXmlBBase item in l)
             connectSon(father, item);
     }
 }
开发者ID:Assmann-Siemens,项目名称:ERTMSFormalSpecs,代码行数:8,代码来源:XmlBBaseAcceptor.cs


示例2: SetDefaultValue

 /// <summary>
 /// Sets the default values for the element provided as parameter
 /// </summary>
 /// <param name="model"></param>
 public void SetDefaultValue(IXmlBBase model)
 {
     // We are creating a new element, notification about changes in that element
     // are not necessary.
     Util.DontNotify(() =>
     {
         // ReSharper disable once ConvertToLambdaExpression
         visit(model, true);
     });
 }
开发者ID:JamesOakey,项目名称:ERTMSFormalSpecs,代码行数:14,代码来源:ObjectFactory.cs


示例3: performTest

        private void performTest(XmlBBaseAcceptor acceptor,
            String fname,
            int count,
            int inMem)
        {
            XmlBStringContext ctxt = new XmlBStringContext();
            String b;

            long start = 0; //System.currentTimeMillis();

            if (!ctxt.readFile(fname))
            {
                System.Console.WriteLine("Could not open file : " +
                           fname);
                return;
            }
            IXmlBBase[] el = new IXmlBBase[inMem];
            try
            {
                int ptr = 0;
                for (int i = 0; i < count; i++)
                {
                    if (i % 1000 == 0)
                        System.Console.WriteLine("" + (i) + "/" + count);
                    el[ptr] = acceptor.genericAccept(ctxt);
                    ctxt.setPtr(0);
                    ptr++;
                    if (ptr >= el.Length)
                        ptr = 0;
                }
                long stop = 0;//System.currentTimeMillis();
                System.Console.WriteLine("Done parsing.    Total time: " +
                           (stop - start) + " millisecs   Time/instance: " +
                           (stop - start) / count);
                // System.Console.WriteLine (el[0].toString());
                start = 0;//System.currentTimeMillis();
                for (int i = 0; i < count; i++)
                {
                    if (i % 1000 == 0)
                        System.Console.WriteLine("" + (i) + "/" + count);
                    b = el[0].ToString();
                }
                stop = 0;//System.currentTimeMillis();
                System.Console.WriteLine("Done unparsing.  Total time: " +
                           (stop - start) + " millisecs   Time/instance: " +
                           (stop - start) / count);
            }
            catch (Exception)
            {
                ctxt.dumpError();
            }
        }
开发者ID:Assmann-Siemens,项目名称:ERTMSFormalSpecs,代码行数:52,代码来源:XmlBTester.cs


示例4: genericSave

        public bool genericSave(IXmlBBase obj,
            string fName)
        {
            FileStream fs;
            StreamWriter pw;

            fs = new FileStream(fName, FileMode.Create);
            pw = new StreamWriter(fs);
            genericUnParse(pw, obj);
            pw.Flush();
            fs.Close();
            return true;
        }
开发者ID:Assmann-Siemens,项目名称:ERTMSFormalSpecs,代码行数:13,代码来源:XmlBBaseAcceptor.cs


示例5: visit

 public override void visit(IXmlBBase obj, bool visitSubNodes)
 {
     IGraphicalDisplay graphicalDisplay = obj as IGraphicalDisplay;
     if (graphicalDisplay != null)
     {
         graphicalDisplay.X = -1;
         graphicalDisplay.Y = -1;
         graphicalDisplay.Width = 0;
         graphicalDisplay.Height = 0;
         graphicalDisplay.Hidden = false;
         graphicalDisplay.Pinned = false;
     }
     base.visit(obj);
 }
开发者ID:nikiforovandrey,项目名称:ERTMSFormalSpecs,代码行数:14,代码来源:ObjectFactory.cs


示例6: visit

        /// <summary>
        ///     Cleans up the declared elements dictionaries
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="visitSubNodes"></param>
        public override void visit(IXmlBBase obj, bool visitSubNodes)
        {
            ModelElement modelElement = obj as ModelElement;
            if (modelElement != null && ClearCaches)
            {
                modelElement.ClearCache();
            }

            ISubDeclarator subDeclarator = obj as ISubDeclarator;
            if (subDeclarator != null)
            {
                subDeclarator.InitDeclaredElements();
            }

            base.visit(obj, visitSubNodes);
        }
开发者ID:ERTMSSolutions,项目名称:ERTMSFormalSpecs,代码行数:21,代码来源:ClearBeforeCompilation.cs


示例7: subElements

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static IXmlBBase[] subElements(IXmlBBase obj)
 {
     return ((XmlBBase ) obj).subElements();
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:8,代码来源:DataDictionary.Generated.cs


示例8: dispatch

 public override void dispatch(IXmlBBase obj, bool visitSubNodes)
 {
     if (obj == null){
     return;
     } // If
     ((XmlBBase)obj).dispatch(this, visitSubNodes);
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:7,代码来源:DataDictionary.Generated.cs


示例9: removeElements

 /// <summary>Part of the list interface for Elements
 /// This deletion function removes an element from the
 /// collection in Elements
 /// If the object given in parameter is not found in the
 /// the collection, this function does nothing.</summary>
 /// <param name="obj">the object to remove</param>
 public void removeElements(IXmlBBase obj)
 {
     int idx = indexOfElements(obj);
       if (idx >= 0) { deleteElements(idx);
     NotifyControllers(null);
        }
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:13,代码来源:DataDictionary.Generated.cs


示例10: indexOfElements

 /// <summary>Part of the list interface for Elements
 /// This function returns the index of an element in
 /// the collection.</summary>
 /// <param name="el">the object to look for</param>
 /// <returns>the index where it is found, or -1 if it is not.</returns>
 public int indexOfElements(IXmlBBase el)
 {
     return ((System.Collections.IList) allElements()).IndexOf (el);
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:9,代码来源:DataDictionary.Generated.cs


示例11: indexOfTranslations

 /// <summary>Part of the list interface for Translations
 /// This function returns the index of an element in
 /// the collection.</summary>
 /// <param name="el">the object to look for</param>
 /// <returns>the index where it is found, or -1 if it is not.</returns>
 public int indexOfTranslations(IXmlBBase el)
 {
     return ((System.Collections.IList) allTranslations()).IndexOf (el);
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:9,代码来源:DataDictionary.Generated.cs


示例12: indexOfPreConditions

 /// <summary>Part of the list interface for PreConditions
 /// This function returns the index of an element in
 /// the collection.</summary>
 /// <param name="el">the object to look for</param>
 /// <returns>the index where it is found, or -1 if it is not.</returns>
 public int indexOfPreConditions(IXmlBBase el)
 {
     return ((System.Collections.IList) allPreConditions()).IndexOf (el);
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:9,代码来源:DataDictionary.Generated.cs


示例13: removeSubSteps

 /// <summary>Part of the list interface for SubSteps
 /// This deletion function removes an element from the
 /// collection in SubSteps
 /// If the object given in parameter is not found in the
 /// the collection, this function does nothing.</summary>
 /// <param name="obj">the object to remove</param>
 public void removeSubSteps(IXmlBBase obj)
 {
     int idx = indexOfSubSteps(obj);
       if (idx >= 0) { deleteSubSteps(idx);
     NotifyControllers(null);
        }
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:13,代码来源:DataDictionary.Generated.cs


示例14: indexOfFolders

 /// <summary>Part of the list interface for Folders
 /// This function returns the index of an element in
 /// the collection.</summary>
 /// <param name="el">the object to look for</param>
 /// <returns>the index where it is found, or -1 if it is not.</returns>
 public int indexOfFolders(IXmlBBase el)
 {
     return ((System.Collections.IList) allFolders()).IndexOf (el);
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:9,代码来源:DataDictionary.Generated.cs


示例15: indexOfSourceTexts

 /// <summary>Part of the list interface for SourceTexts
 /// This function returns the index of an element in
 /// the collection.</summary>
 /// <param name="el">the object to look for</param>
 /// <returns>the index where it is found, or -1 if it is not.</returns>
 public int indexOfSourceTexts(IXmlBBase el)
 {
     return ((System.Collections.IList) allSourceTexts()).IndexOf (el);
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:9,代码来源:DataDictionary.Generated.cs


示例16: removeProcedures

 /// <summary>Part of the list interface for Procedures
 /// This deletion function removes an element from the
 /// collection in Procedures
 /// If the object given in parameter is not found in the
 /// the collection, this function does nothing.</summary>
 /// <param name="obj">the object to remove</param>
 public void removeProcedures(IXmlBBase obj)
 {
     int idx = indexOfProcedures(obj);
       if (idx >= 0) { deleteProcedures(idx);
     NotifyControllers(null);
        }
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:13,代码来源:DataDictionary.Generated.cs


示例17: removeInterfaces

 /// <summary>Part of the list interface for Interfaces
 /// This deletion function removes an element from the
 /// collection in Interfaces
 /// If the object given in parameter is not found in the
 /// the collection, this function does nothing.</summary>
 /// <param name="obj">the object to remove</param>
 public void removeInterfaces(IXmlBBase obj)
 {
     int idx = indexOfInterfaces(obj);
       if (idx >= 0) { deleteInterfaces(idx);
     NotifyControllers(null);
        }
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:13,代码来源:DataDictionary.Generated.cs


示例18: genericSubElements

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public override IXmlBBase[] genericSubElements(IXmlBBase obj)
 {
     return ((XmlBBase ) obj).subElements();
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:8,代码来源:DataDictionary.Generated.cs


示例19: removeFolders

 public void removeFolders(IXmlBBase obj,Lock aLock)
 {
     int idx = indexOfFolders(obj);
       if (idx >= 0) { deleteFolders(idx);
     NotifyControllers(aLock);
       }
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:7,代码来源:DataDictionary.Generated.cs


示例20: genericUnParse

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public override bool genericUnParse(TextWriter pw, IXmlBBase obj)
 {
     ((XmlBBase ) obj).unParse(pw, false);
       return true;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:9,代码来源:DataDictionary.Generated.cs



注:本文中的IXmlBBase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IXmlDictionary类代码示例发布时间:2022-05-24
下一篇:
C# IXivSheet类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap