日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【机器视觉】 export_def算子

發(fā)布時間:2024/4/24 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【机器视觉】 export_def算子 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

00. 目錄

文章目錄

    • 00. 目錄
    • 01. 概述
    • 02. 簽名
    • 03. 描述
    • 04. 注意
    • 05. 參數(shù)
    • 06. 結(jié)果
    • 07. 附錄

01. 概述

export_def - 將任意文本插入到程序的導出代碼中。

02. 簽名

export_def( : : Position, Declaration : )

03. 描述

export_def允許定義逐行寫入要導出{項目或程序}的輸出文件的{代碼行或文本塊}。

參數(shù)Position控制了在聲明中給出的文本的位置。 支持以下選項:

‘in_place’ - #
文本插入到實際位置的過程中,即在相鄰的程序行之間。

‘a(chǎn)t_file_begin’ - #^^
文本在導出文件的最開始處導出。

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

‘a(chǎn)fter_procedure’ - #$
文本在定義的程序之后導出。

‘a(chǎn)t_file_end’ - #$$
文本在導出文件的最后被導出。

在程序清單中,export_def不是以正常的算子語法表示,而是由一個特殊的字符序列標記。 該行中的第一個字符是導出標記#,后面可以跟上面列出的位置標記。 如果在全文編輯器中輸入一個導出定義,請注意在#之前不能有空格。

為了更好的可讀性,導出字符序列后面可以跟著一個空格字符,該字符不會被解釋為導出文本的一部分。 所有其他的內(nèi)容被添加到導出。

對于在當前程序中導出的行,導出將獲得與當前程序行相同的縮進。 但有一個例外:如果導出文本在導出標記或可選空間之后立即以#開始,則導出文本不會縮進,例如:

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.

‘a(chǎn)t_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.

‘a(chǎn)fter_procedure’ - #$
The text is exported immediately after the procedure it is defined in.

‘a(chǎn)t_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. 參數(shù)

Position (input_control)   string → (string)
導出文本位置的地方。
可選值: ‘a(chǎn)fter_procedure’, ‘a(chǎn)t_file_begin’, ‘a(chǎn)t_file_end’, ‘before_procedure’, ‘in_place’

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

06. 結(jié)果

export_def永遠不會執(zhí)行。

07. 附錄

7.1 機器視覺博客匯總
網(wǎng)址:https://dengjin.blog.csdn.net/article/details/116837497

總結(jié)

以上是生活随笔為你收集整理的【机器视觉】 export_def算子的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。