当前位置: 首页>>代码示例>>C#>>正文


C# Source.getName方法代码示例

本文整理汇总了C#中Source.getName方法的典型用法代码示例。如果您正苦于以下问题:C# Source.getName方法的具体用法?C# Source.getName怎么用?C# Source.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Source的用法示例。


在下文中一共展示了Source.getName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: handleError

        /**
         * Handles an error.
         *
         * The behaviour of this method is defined by the
         * implementation. It may simply record the error message, or
         * it may throw an exception.
         */
        public void handleError(Source source, int line, int column,
					String msg)
        {
            errors++;
            print(source.getName() + ":" + line + ":" + column +
                ": error: " + msg);
        }
开发者ID:caomw,项目名称:CppNet,代码行数:14,代码来源:PreprocessorListener.cs

示例2: handleWarning

        /**
         * Handles a warning.
         *
         * The behaviour of this method is defined by the
         * implementation. It may simply record the error message, or
         * it may throw an exception.
         */
        public void handleWarning(Source source, int line, int column,
					String msg)
        {
            warnings++;
            print(source.getName() + ":" + line + ":" + column +
                ": warning: " + msg);
        }
开发者ID:caomw,项目名称:CppNet,代码行数:14,代码来源:PreprocessorListener.cs

示例3: handleWarning

 public override void handleWarning(Source source, int line, int column, string msg)
 {
     base.handleWarning(source, line, column, msg);
     print(source.getName() + ":" + line + ":" + column + ": warning: " + msg);
 }
开发者ID:manu-silicon,项目名称:CppNet,代码行数:5,代码来源:PreprocessorListener.cs

示例4: encodeSource

        static XmlElement encodeSource(XmlDocument doc, Source source)
        {
            XmlElement e = null;
            if (source != null)
            {
                e = doc.CreateElement("source");
                e.SetAttribute("name", source.getName());
                e.SetAttribute("type", (source.getType() == Source.SourceType.TYPE_RASTER ? "raster" : "feature"));
                if (source.getFilterGraph() != null)
                    e.SetAttribute("graph", source.getFilterGraph().getName());
                if (source.getParentSource() != null)
                    e.SetAttribute("parent", source.getParentSource().getName());

                e.AppendChild(encodeURI(doc, source.getURI()));
            }
            return e;
        }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:17,代码来源:XmlSerializer.cs

示例5: handleError

 public override void handleError(Source source, int line, int column, string msg)
 {
     base.handleError(source, line, column, msg);
     print(source.getName() + ":" + line + ":" + column + ": error: " + msg);
 }
开发者ID:manu-silicon,项目名称:CppNet,代码行数:5,代码来源:PreprocessorListener.cs


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