00. 目录

文章目录

  • 00. 目录
  • 01. 概述
  • 02. 签名
  • 03. 描述
  • 04. 注意
  • 05. 参数
  • 06. 结果
  • 07. 附录

01. 概述

export_def - 将任意文本插入到程序的导出代码中。

02. 签名

export_def( : : Position, Declaration : )

03. 描述

export_def允许定义逐行写入要导出{项目或程序}的输出文件的{代码行或文本块}。

参数Position控制了在声明中给出的文本的位置。 支持以下选项:

‘in_place’ - #
文本插入到实际位置的过程中,即在相邻的程序行之间。

‘at_file_begin’ - #^^
文本在导出文件的最开始处导出。

‘before_procedure’ - #^
文本在它定义的程序之前导出。

‘after_procedure’ - #$
文本在定义的程序之后导出。

‘at_file_end’ - #$$
文本在导出文件的最后被导出。

在程序清单中,export_def不是以正常的算子语法表示,而是由一个特殊的字符序列标记。 该行中的第一个字符是导出标记#,后面可以跟上面列出的位置标记。 如果在全文编辑器中输入一个导出定义,请注意在#之前不能有空格。

为了更好的可读性,导出字符序列后面可以跟着一个空格字符,该字符不会被解释为导出文本的一部分。 所有其他的内容被添加到导出。

对于在当前程序中导出的行,导出将获得与当前程序行相同的缩进。 但有一个例外:如果导出文本在导出标记或可选空间之后立即以#开始,则导出文本不会缩进,例如:

for Index := 1 to 5 by 1
# #ifdef MY_SWITCH
# int cnt = 100;* an optional code block
# #endif
endfor

导出成

proc (...)
{...for (...){#ifdef MY_SWITCHint cnt = 100;// an optional block
#endif}...
}

导出定义可以像任何普通算子一样被激活和取消激活。 取消激活的导出定义不会导出。

原文描述

export_def allows to define code lines or text blocks that are written verbatim into the output file of a procedure or program that is exported.

The parameter Position controls the placement of the text given in Declaration. The following options are supported:

‘in_place’ - #
The text is inserted in the procedure at the actual place, i.e., inbetween the neighboring program lines.

‘at_file_begin’ - #^^
The text is exported at the very beginning of the exported file.

‘before_procedure’ - #^
The text is exported immediately before the procedure it is defined in.

‘after_procedure’ - #$
The text is exported immediately after the procedure it is defined in.

‘at_file_end’ - #$$
The text is exported at the very end of the exported file.

In the program listing, export_def is not represented in normal operator syntax but marked by a special character sequence. The first character within the line is the export marker # that can be followed by a position marker as listed above. If entering an export definition in the full text editor, please note that there must not be any spaces before #.

For better readability, the export character sequence may be followed by one space character that is not interpreted as part of the export text. All additional spaces are added to the export.

For lines that are exported within the current procedure, the export gets the same indentation as the current program lines get. There is one exception: if the export text starts with # immediately after the export markers or the optional space, the export text will not be indented at all。

04. 注意

05. 参数

Position (input_control)   string → (string)
导出文本位置的地方。
可选值: ‘after_procedure’, ‘at_file_begin’, ‘at_file_end’, ‘before_procedure’, ‘in_place’

Declaration (input_control)   string → (string)
导出的文本

06. 结果

export_def永远不会执行。

07. 附录

7.1 机器视觉博客汇总
网址:https://dengjin.blog.csdn.net/article/details/116837497

【机器视觉】 export_def算子相关推荐

  1. 机器视觉 边缘检测算子

    1.实验目的 利用opencv python实现对下图实现边缘检测算子. 2.实验过程 (1)在python安装opencv库, pip install opencv-python. (2)在pyth ...

  2. 【机器视觉】机器视觉博客汇总

    00. 目录 文章目录 00. 目录 01. 机器视觉概述 02. 机器视觉环境搭建 03. Halcon初级教程 04. Halcon中级教程 05. Halcon高级教程 06. Halcon与Q ...

  3. 拉普拉斯噪声公式_高斯拉普拉斯算子(Laplace of Gaussian)

    高斯拉普拉斯(Laplace of Gaussian) Laplace算子作为一种优秀的边缘检测算子,在边缘检测中得到了广泛的应用.该方法通过对图像 求图像的二阶倒数的零交叉点来实现边缘的检测,公式表 ...

  4. python 视觉技术_python+opencv实现机器视觉基础技术(边缘提取,图像滤波,边缘检测算子,投影,车牌字符分割)...

    机器视觉是人工智能正在快速发展的一个分支.简单说来,机器视觉就是用机器代替人眼来做测量和判断.它是一项综合技术,包括图像处理.机械工程技术.控制.电光源照明.光学成像.传感器.模拟与数字视频技术.计算 ...

  5. 【机器视觉】 write_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 write_measure - 将measure对 ...

  6. 【机器视觉】 translate_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 translate_measure - 转换一个m ...

  7. 【机器视觉】 set_fuzzy_measure_norm_pair算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 set_fuzzy_measure_norm_pa ...

  8. 【机器视觉】 set_fuzzy_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 set_fuzzy_measure - 指定一个模 ...

  9. 【机器视觉】 serialize_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 serialize_measure - 序列化me ...

最新文章

  1. portscaner 多线程、多协程并发端口扫描
  2. 基于Vue的Quasar Framework 介绍 这个框架UI组件很全面
  3. 在Windows 2008 R2下部署SQL Server 2008 R2 群集(一)
  4. vue post请求后台django接口Forbidden (CSRF token missing or incorrect.)
  5. PWN2OWN 2017 Linux 内核提权漏洞分析
  6. 切点方法的事务参数的配置
  7. where 1=1低效?
  8. 恩布开源安卓手机IM,EntboostIM发布1.5.1版本
  9. 计算机的组成 —— 显卡
  10. js操作浏览器cookie详解
  11. AODV按需路由协议
  12. chm文档制作 java_自己动手制作chm格式开源文档
  13. uCOS事件相关函数代码理解
  14. Error creating bean with name ‘user‘ defined in file //Pointcut is not well-formed: expecting
  15. html中设置表格标题的代码,设置表格标题的html代码是什么_WEB前端开发
  16. android 分享给好友,手机将安卓软件分享给好友的方法
  17. SAP CRM BOL collection find_by_property
  18. 南京信息工程大学第十届程序设计大赛试题
  19. 北航研究生计算机网络实验报告,实验4-北航研究生计算机网络实验.doc
  20. symfony ajax,Symfony2 AJAX登录

热门文章

  1. iOS ARC环境下dealloc的使用
  2. (转)WindowsPhone基础琐碎总结-----数据绑定(一)
  3. ASP.NET MVC3 权限验证
  4. C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(十)斜度α地图的构造及算法...
  5. load方法引入本地html报错,分享基于plus.downloader的图片懒加载功能,支持本地缓存v1.1.0...
  6. 7-27 御膳房 (5 分)
  7. 每日程序C语言48-字符串排序
  8. 添加java环境变量_【安装 JDK】 配置环境变量
  9. Java黑皮书课后题第4章:*4.3(几何:估算面积)应用4.1节图中以下地点的GPS位置:Georgia州的Atlanta……计算被这四个城市所围起来的区域面积
  10. C语言学习之输出“魔方阵”。所谓魔方阵是指这样的方阵,它的每一行、每一列和对角线之和均相等。