5.1 Standard Input Output函数

  • 格式:docx
  • 大小:15.73 KB
  • 文档页数:2

CHAPTER 5
PROCEDURES AND ROUTINES
5.1 Standard Input / Output Routines
SCL provides a complete interface to streams (files, pipes, and sockets), as well as a popup message window interface to send messages to the user. The file interface can be used when collecting user-defined statistics, especially time-based quantities inspected by simulation update logic.
The commands available include:
⎬Open/Close
⎬File Open/Close
⎬Pipe Open/Close
⎬Socket Open/Close
⎬Window Read/Write
⎬Read Keyboard
Files are standard files that normally contain data and reside in directories (folders). Pipe is a mechanism for manipulating streams of information between processes; in the case of SCL, the pipe interface allows SCL to connect to a process for input or output. Socket is a mechanism for communicating commands (or streams of information) between a client and a server. The client and server processes may be on one machine or different machines connected over a network. Files, pipes, and sockets are collectively referred to as "streams". A window is a message window appearing in the QUEST display area.
5.1 标准输入/输出函数
SCL提供了一个完善的流(files, pipes, and sockets)接口和弹出式消息窗
口接口来给用户发送消息。

当关系到用户自定义的统计数据时,文件接口可以被使用,特别时被仿真更新逻辑检查的基于时间的量。

可用的命令包括:
⎬Open/Close 打开/关闭
⎬File Open/Close 文件打开/关闭
⎬Pipe Open/Close 管道打开/关闭
⎬Socket Open/Close 接口打开/关闭
⎬Window Read/Write 窗口读/写
⎬Read Keyboard 读键盘
文件是通常的包含数据和存在路径(文件夹)的标准的文件。

管道是一个用来控制不同过程渐渐的信息流的途径,在SCL中,管道接口允许SCL来连接到一个为输入或者输出的过程。

套接字是一个用来在客户机和服务器之间交流命令(或者信息流)的途径。

客户机与服务器过程可能在一台或者不同的电脑上关联到同一个网络。

文件,管道,套接字集体被称为“流”。

窗口是一个在QUEST的显示区域出现的消息窗口。