uc4500 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Open a file for binary buffered I/O. The open mode
is used to indicate how the file is to be accessed.
The file format is used both to specify a default extension to use and
for the write modes, the type to be stored in the file's header. For the
read mode, a format of zero may be specified indicating no default
extension.

A native operating system file may be opened by using the
appropriate file type. For example, a format of 4 opens a text file in
the native file system.

A successful open returns a simple integer channel number. This
channel number is to be passed to the routines for reading, writing,
skipping, and closing the file.

uc4510 (read characters), uc4511 (read integers), uc4512 (read reals),
and uc4513 (read bytes) are used to read primitive data types from a
file open with uc4500. Combinations of these types may be used to
create more complex data types. The I/O channel number returned by uc4500
is passed to these other routines.

uc4520 (write characters), uc4521 (write integers), uc4522 (write
reals), and uc4523 (write bytes) are used to write primitive data types
to a file opened with uc4500. Combinations of these calls are used to
create more complex types. The I/O channel number returned by uc4500
is passed to these other routines.

uc4530 (skip characters), uc4531 (skip integers), uc4532 (skip reals),
and uc4533 (skip bytes) are used to bypass primitive data types in a
file opened with uc4500. A combination of these may be used to skip
over more complex types. Skips may be backward by using negative
skip counts.

For characters, the count will be rounded up to the next integer
boundary (e.g. a write/read/skip of 5 will actually write/read/skip 8
characters).

返回
Return code:
<0 = error
>= 0 = i/o channel number

环境
内部和外部

参见
uc4510
uc4511
uc4512
uc4513
uc4520
uc4521
uc4522
uc4523
For description of modes see table
For description of file formats see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4500
(
const char * fspec,
int omode,
int ftype
)
const char *fspecInput(输入)File To Open
int (整数型)omodeInput(输入)Open Mode
1 = Read
2 = Write
3 = Write, Replace
5 = Update
7 = Scratch
int (整数型)ftypeInput(输入)File Format

 


 
uc4504 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Open a text file for I/O. Only the routines uc4514,
uc4524, and uc4525 for reading and writing lines may be used on text
file. See the description of uc4500 for a description of the parameters.
For omode = 4, the file must exist and will be opened for write. The
file pointer will be initially positioned at the end of file.
For omode = 6, a printer is opened. If the filespec is blank, the
default printer will be opened.

返回
Return code:
< 0 = error
>= 0 = I/O Channel Number

环境
内部和外部

参见
uc4514
uc4524
uc4525
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4504
(
const char * fspec,
int omode,
int ftype
)
const char *fspecInput(输入)File To Open
int (整数型)omodeInput(输入)Open Mode
1 = Read
2 = Write
3 = Write, Replace
4 = Append
6 = Printer
int (整数型)ftypeInput(输入)File Type

 


 
uc4506 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Open a binary file for block I/O. Only the routines
uc4516 and uc4526 for reading and writing blocks may be used on a
file opened with uc4506. See the description of uc4500 for a
description of the parameters.

返回
Return code:
> 0 = error
<= 0 = I/O Channel Number

环境
内部和外部

参见
uc4516
uc4526

For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4506
(
const char * fspec,
int omode,
int ftype
)
const char *fspecInput(输入)File To Open
int (整数型)omodeInput(输入)Open Mode
1 = Read
2 = Write
3 = Write, Replace
5 = Update
7 = Scratch
int (整数型)ftypeInput(输入)File Type

 


 
uc4507 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Open a file for record oriented I/O. Only the
routines uc4517 and uc4527 may be used to read and write records.
Record I/O is generally only supported for native files.

返回
Return code:
< 0 = error
>= 0 = I/O Channel Number

环境
内部和外部

参见
uc4517
uc4527
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4507
(
const char * fspec,
int omode,
int ftype,
int rectype
)
const char *fspecInput(输入)File Specification
int (整数型)omodeInput(输入)Open Mode
1 = Read
2 = Write
3 = Replace
5 = Update
7 = Scratch
int (整数型)ftypeInput(输入)File Type
int (整数型)rectypeInput(输入)Record Format
= 0 = Variable Length Records
> 0 = Fixed Record Length

 


 
uc4508 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Open a directory for reading. Directory entries are read
using uc4518 with the fields picked out using uc4600 to uc4609.
Sub-directories may be opened using uc4509.

The dmode bit-mask is used to indicate the intention of the
application in using the directory. Bits zero through seven indicate
which fields from the file header to read and bits ten through thirteen
specify special directory options.

You can specify which bits to set by using the left shift operator in
conjuction with the bit wise or. For example, to set bits 11 and 13, you
would use the following declaration:
int dmode = (1 << 11) | (1 << 13);

A wildcard template may be used and is specified when the directory
is opened. It may be passed separate from the directory filespec or as
part of the directory filespec. For example:

dmode(bit 11) = 1, fspec = "disk/manager", wcard = ".prt" will
return out all parts in the manager's directory.

If neither dmode(bit 11) or dmode(bit 12) is set then all files will be
returned. dmode(bit 11) and dmode(bit 12) should not be
set at the same time.

If dmode(bit 13) is set then the caller is only interested in the names
of the files and none of the header attributes. If this is set then none
of the parameter dmode(bit 0) through dmode(bit 7) should be set.

If dmode(bit 10) is set then the caller is intending to open
sub-directories. If it is not set then uc4509 should not be called.

返回
Return code:
< 0 = error
>= 0 = I/O Channel Number

环境
Internal and External

参见
uc4518
uc4600
uc4609
uc4509
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4508
(
const char * fspec,
int dmode,
int ftype,
const char * wcard
)
const char *fspecInput(输入)Directory Specification
int (整数型)dmodeInput(输入)Bit-mask Of Open Options
bit 0 = Read Owner Field
0 = No
1 = Yes
bit 1 = Read Protection Classfield
0 = No
1 = Yes
bit 2 = Read Status Field
0 = No
1 = Yes
bit 3 = Read Length Field
0 = No
1 = Yes
bit 4 = Read Dates
0 = No
1 = Yes
bit 5 = Read Description Field
0 = No
1 = Yes
bit 6 = Read Customer Area Field
0 = No
1 = Yes
bit 7 = Read Machine Field
0 = No
1 = Yes
bit 8-9 = Reserved
bit 10 = Enable Sub-trees
0 = No
1 = Yes
bit 11 = Template Given
0 = No
1 = Yes, Template In wcard
bit 12 = Directory Contains Wildcards
0 = No
1 = Yes
bit 13 = Read Filenames Only
0 = No
1 = Yes
bit 14-15 = Reserved
int (整数型)ftypeInput(输入)This argument is no longer used.
const char *wcardInput(输入)Wildcard Template

 


 
uc4509 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Open a subdirectory of the currently open directory.
The previous directory entry read by uc4518 must have been of type
directory (format 100-112) otherwise the error 'not a directory'
is returned. Subdirectories are closed using uc4549.

环境
内部和外部

参见
uc4518
uc4549
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4509
(
void
)

 


 
uc4510 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read characters from a file opened with uc4500.

For characters, the count will be rounded up to the next integer
boundary (e.g. a read of 5 will actually read 8 characters).
Integer variables are used for storing the characters in byte format.

环境
内部和外部

参见
uc4500
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4510
(
int chan,
int len,
char * cbuf
)
int (整数型)chanInput(输入)I/O Channel Number returned from uc4500.
int (整数型)lenInput(输入)Number Of Characters To Read
char * (字符型指针)cbufOutput(输出)Array To Read Characters Into

 


 
uc4511 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read integers from a file opened with uc4500.

环境
内部和外部

参见
uc4500
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4511
(
int chan,
int len,
int * sibuff
)
int (整数型)chanInput(输入)I/O Channel Number returned from uc4500.
int (整数型)lenInput(输入)Number Of Integers To Read
int * (整数型指针)sibuffOutput(输出)Array To Read Integers Into

 


 
uc4512 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read reals from a file opened with uc4500.

环境
内部和外部

参见
uc4500
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4512
(
int chan,
int len,
double rbuff [ ]
)
int (整数型)chanInput(输入)I/O Channel Number returned from uc4500
int (整数型)lenInput(输入)Number Of Reals To Read
double (实数型)rbuff [ ] Output(输出)Array To Read Reals Into

 


 
uc4513 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read bytes from a file opened with uc4500.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4513
(
int chan,
int len,
char * bbuf
)
int (整数型)chanInput(输入)I/O Channel Number returned by uc4500
int (整数型)lenInput(输入)Number Of Bytes To Read
char * (字符型指针)bbufOutput(输出)Array To Read Bytes Into

 


 
uc4514 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read a line of text from a file opened with uc4504. The user is responsible
for making sure that the cbuf has enough space allocated to hold the longest
line in the file.

返回
Return code
< 0 = Error
>= 0 = Length Of Line Read

环境
内部和外部

参见
uc4504
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4514
(
int chan,
char * cbuf
)
int (整数型)chanInput(输入)I/O channel number returned by uc4504
char * (字符型指针)cbufOutput(输出)Line read

 


 
uc4516 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Randomly read blocks from a file opened with
uc4506. Data is always read on a block boundary.

返回
Return code
< 0 = Error
> 0 = Number of bytes actually read

环境
内部和外部

参见
uc4506
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4516
(
int chan,
int block,
int bytes,
char * cbuf
)
int (整数型)chanInput(输入)I/O channel number returned by uc4506
int (整数型)blockInput(输入)Starting block number to read (from 0)
int (整数型)bytesInput(输入)Number of bytes to read
char * (字符型指针)cbufOutput(输出)Data read

 


 
uc4517 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read the next record from a file opened using uc4507.

环境
内部和外部

参见
uc4507
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4517
(
int chan,
int * bytes,
char * cbuf
)
int (整数型)chanInput(输入)I/O channel number returned by uc4507
int * (整数型指针)bytesOutput(输出)Length of record read in bytes
char * (字符型指针)cbufOutput(输出)Array to read record into

 


 
uc4518 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read the next directory entry and save the entry's
information in memory. This information may then be accessed by the
routines uc4600 through uc4609.

返回
Return code
< 0 = Error
0 = Entry Read
1 = End Of Subdirectory
2 = End Of Directory

环境
内部和外部

参见
uc4508
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4518
(
void
)

 


 
uc4519 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Returns the full filespec of the last directory entry
read. This is provided so the Open C API program need not be
concerned with the syntax of filespecs in forming them.

环境
内部和外部

参见
uc4508
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4519
(
char * fspec
)
char * (字符型指针)fspecOutput(输出)Full file specification of the last directory
entry read.

 


 
uc4520 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Write characters to a file opened with uc4500.
The count will be rounded up to the next integer
boundary (e.g. a write of 5 will actually write 8 characters).

环境
内部和外部

参见
uc4500
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4520
(
int chan,
long len,
const char * cbuff
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500.
longlenInput(输入)Number of characters to write
const char *cbuffInput(输入)Character data to write

 


 
uc4521 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Write integers to a file opened with uc4500.

环境
内部和外部

参见
uc4500
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4521
(
int chan,
long len,
int * sibuff
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500
longlenInput(输入)Number of integers to write
int * (整数型指针)sibuffInput(输入)Integer data to write

 


 
uc4522 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Write reals to a file opened with uc4500.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4522
(
int chan,
long len,
double rbuff [ ]
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500
longlenInput(输入)Number of reals to write
double (实数型)rbuff [ ] Input(输入)Real data to write

 


 
uc4523 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Write bytes to a file opened with uc4500.

环境
内部和外部

参见
uc4500
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4523
(
int chan,
long len,
const char * bbuff
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500
longlenInput(输入)Number of bytes to write
const char *bbuffInput(输入)Byte data to write

 


 
uc4524 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Write a line to a text file. Only complete lines may
be written to a text file. The addition of any delimiters (e.g. newline)
is done automatically.

环境
内部和外部

参见
uc4504
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4524
(
int chan,
const char * cbuf
)
int (整数型)chanInput(输入)I/O channel number returned by uc4504
const char *cbufInput(输入)Line to write

 


 
uc4525 (查看源代码)
 
定义在: uf_cfi.h
 
概述
uc4525 is used to write a page break to a text file.

环境
内部和外部

参见
uc4504
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4525
(
int chan
)
int (整数型)chanInput(输入)I/O channel number returned by uc4504

 


 
uc4526 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Randomly write to a file opened with uc4506. The
data is always written on a block boundary.

环境
内部和外部

参见
uc4506
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4526
(
int chan,
int block,
int bytes,
const char * buf
)
int (整数型)chanInput(输入)I/O channel number returned by uc4506
int (整数型)blockInput(输入)Starting block number to write (from 0)
int (整数型)bytesInput(输入)Number of bytes to write
const char *bufInput(输入)Data to write

 


 
uc4527 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Write a record to a file opened with uc4507. For fixed
length record files, the parameter bytes is ignored.

环境
内部和外部

参见
uc4507
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4527
(
int chan,
int bytes,
const char * cbuf
)
int (整数型)chanInput(输入)I/O channel number returned by uc4507
int (整数型)bytesInput(输入)Length of record to write in bytes
const char *cbufInput(输入)Buffer containing data to write

 


 
uc4530 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Skip characters in a file opened with uc4500.
Skips may be backward by using negative skip counts.

环境
内部和外部

参见
uc4500
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4530
(
int chan,
long len
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500
longlenInput(输入)Number of characters to skip over

 


 
uc4531 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Skip integers in a file opened with uc4500.
Skips may be backward by using negative skip counts.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4531
(
int chan,
long len
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500
longlenInput(输入)Number of integers to skip over

 


 
uc4532 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Skip reals in a file opened with uc4500.
Skips may be backward by using negative skip counts.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4532
(
int chan,
long len
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500
longlenInput(输入)Number of reals to skip over

 


 
uc4533 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Skip bytes in a file opened with uc4500.
Skips may be backward by using negative skip counts.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4533
(
int chan,
long len
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500
longlenInput(输入)Number of bytes to skip over

 


 
uc4534 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Find the current position within a file opened with
uc4500. That position may then be restored using uc4535.

返回
Return code:
< 0 = Error
>= 0 = File position

环境
内部和外部

参见
uc4500
uc4535
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
long uc4534
(
int chan
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500

 


 
uc4535 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Restore the read/write position within a file
previously saved using uc4534. The file must have been opened with
uc4500.

环境
内部和外部

参见
uc4500
uc4534
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4535
(
int chan,
long pos
)
int (整数型)chanInput(输入)I/O channel number returned by uc4500
longposInput(输入)File position returned by uc4534

 


 
uc4536 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Reposition a file back to the beginning. This may be
used for binary, text, and record I/O files.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4536
(
int chan
)
int (整数型)chanInput(输入)I/O channel number

 


 
uc4540 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Close a file opened with either uc4500, uc4504,
uc4506, or uc4507. The close disposition is used to indicate whether a
file opened for write is to be saved or not. A normal close will make
the file permanent and delete any previous file with the same name.
An abort close will delete the file and retain any previous file with the
same name.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4540
(
int chan,
int disp
)
int (整数型)chanInput(输入)I/O channel number
int (整数型)dispInput(输入)Disposition
0 = Normal close
1 = Abort close

 


 
uc4544 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Determine characteristics of an open file given its I/O channel number.
The integer date/times in qreslt (if qreslt = 6) can be converted to
character strings using uc4582.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4544
(
int chan,
int qitem,
int * qreslt
)
int (整数型)chanInput(输入)I/O channel number
int (整数型)qitemInput(输入)Item to inquire:
1 = File System
2 = File Type
3 = Last Error
4 = Record Format
5 = Maximum Record Size
6 = Creation, Modify, Access
Dates
int * (整数型指针)qresltOutput(输出)Query result:
For qreslt = 1,
2 = NATIVE
For qreslt = 2,
See File Types
For qreslt = 3, Last read or write error
For qreslt = 4,
= 0 = Variable length records
> 0 = Fixed record length
For qreslt = 5, Maximum record/line length
For qreslt = 6, qreslt is an array of 6 integers
(0)-(1) = Creation Date,Time
(2)-(3) = Modification Date,Time
(4)-(5) = Last Access Date,Time

 


 
uc4547 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Determines the file length (in bytes) of
an open file given its I/O channel number.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4547
(
int chan,
int qitem,
int * qreslt
)
int (整数型)chanInput(输入)I/O channel number
int (整数型)qitemInput(输入)Item to query
1 = File length in bytes
int * (整数型指针)qresltOutput(输出)Query result

 


 
uc4548 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Close any directories opened with uc4508. If any
subdirectories are open, they will be closed as well.

环境
内部和外部

参见
uc4508
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4548
(
void
)

 


 
uc4549 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Close a subdirectory opened with uc4509. Directory
reads will then continue with the previous directory.

环境
内部和外部

参见
uc4509
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4549
(
void
)

 


 
uc4560 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Checks whether the specified file of the given type exists.
NOTE: Mixed or upper case file names may not be found if the
environment variable UGII_OPTION = LOWER is set.

返回
Return code:
< 0 = Error
= 0 = File Exists
= 1 = File Does Not Exist

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4560
(
const char * fspec,
int ftype
)
const char *fspecInput(输入)File to check
int (整数型)ftypeInput(输入)File type

 


 
uc4561 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Remove a given file from the file system.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4561
(
const char * fspec,
int ftype
)
const char *fspecInput(输入)File to delete
int (整数型)ftypeInput(输入)File type

 


 
uc4562 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Change the name of a given file. The new file name
should be a simple name (e.g. no directory specification).

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4562
(
const char * fspec,
int ftype,
const char * fspec2
)
const char *fspecInput(输入)Old file name
int (整数型)ftypeInput(输入)File type
const char *fspec2Input(输入)New file name

 


 
uc4563 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Create an empty directory.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4563
(
const char * fspec,
int ftype
)
const char *fspecInput(输入)Directory to create
int (整数型)ftypeInput(输入)File type

 


 
uc4564 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Retrieve the header information of a single file and
store it in memory. The information may then be retrieved using
uc4600 through uc4609.

环境
内部和外部

参见
uc4600
uc4601
uc4602
uc4603
uc4605
uc4606
uc4607
uc4608
uc4609
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4564
(
const char * fspec,
int ftype,
int fmode
)
const char *fspecInput(输入)File specification from which to read header
int (整数型)ftypeInput(输入)File type
int (整数型)fmodeInput(输入)Bit-mask Specifying Header Fileds Desired
bit 0 = Read Owner Field
0 = No
1 = Yes
bit 1 = Read Protection Class Field
0 = No
1 = Yes
bit 2 = Read Status Field
0 = No
1 = Yes
bit 3 = Read Length Field
0 = No
1 = Yes
bit 4 = Read Dates
0 = No
1 = Yes
bit 5 = Read Description Field
0 = No
1 = Yes
bit 6 = Read Customer Area Field
0 = No
1 = Yes
bit 7 = Read Machine Field
0 = No
1 =yes
bit 8-15 = Reserved

 


 
uc4565 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read the current default value for a directory.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4565
(
int def,
char * fspec
)
int (整数型)defInput(输入)Default to read:
1 = Current directory
2 = '$' directory
3 = '!' directory
char * (字符型指针)fspecOutput(输出)Current Setting

 


 
uc4566 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Change the current user's directory.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4566
(
int def,
const char * fspec
)
int (整数型)defInput(输入)Default to change:
1 = Current directory
2 = '$' directory
3 = '!' directory
const char *fspecInput(输入)New default value

 


 
uc4567 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Copies or moves a file from a source file specification to a destination file
specification. When any move option is used, the source file will only be
deleted after it has been successfully copied to the destination file.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4567
(
const char * srcspc,
const char * dstspc,
int cmode,
int stype,
int dtype
)
const char *srcspcInput(输入)Source file specification
const char *dstspcInput(输入)Destination file specification
int (整数型)cmodeInput(输入)Specifies Copy/Move Options:
= UF_CFI_COPY_NEVER_REPLACE
= UF_CFI_COPY_ALWAYS_REPLACE
= UF_CFI_COPY_REPLACE_IF_NEWER
= UF_CFI_COPY_LEGACY (same as UF_CFI_COPY_NEVER_REPLACE)
= UF_CFI_MOVE_NEVER_REPLACE
= UF_CFI_MOVE_ALWAYS_REPLACE
= UF_CFI_MOVE_REPLACE_IF_NEWER
= UF_CFI_MOVE_LEGACY (same as UF_CFI_MOVE_NEVER_REPLACE)
int (整数型)stypeInput(输入)Source file type
int (整数型)dtypeInput(输入)Destination file type

 


 
uc4570 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Examine a filespec and make sure it conforms to the syntax of the file
system.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4570
(
const char * fspec,
int ftype
)
const char *fspecInput(输入)File specification to validate
int (整数型)ftypeInput(输入)File type

 


 
uc4571 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Examine a filespec and make sure it is a valid directory specification for
the file system. A "directory file spec" is a path to a file which is a
directory.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4571
(
const char * fspec,
int ftype
)
const char *fspecInput(输入)Directory File Specification To Validate
int (整数型)ftypeInput(输入)File Type

 


 
uc4572 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Examine a filespec and make sure it is a valid wildcard directory specification
for the file system. This will also indicate whether there were any
wildcard characters in the filespec. To find all files that match the wildcard
filespec, open the directory with uc4508 and supply the wildcard filespec,
then read (uc4518) each matching entry and the corresponding filespec (uc4519).

返回
Return code:
= 0 = Valid file specification
= 1 = Valid with wildcards
Anything else is an error

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4572
(
const char * fspec,
int ftype
)
const char *fspecInput(输入)File specification to validate
int (整数型)ftypeInput(输入)File type

 


 
uc4573 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Given a filespec return its fully qualified equivalent. If
a non-zero file type is given, the extension will also be set. For
example, the native system with a default directory DISK2/JOE
fspec = "foo", type = 2 will produce expfspec = "DISK2/JOE/FOO.PRT"

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4573
(
const char * fspec,
int ftype,
char * expfspec
)
const char *fspecInput(输入)File specification to expand
int (整数型)ftypeInput(输入)File type
char * (字符型指针)expfspecOutput(输出)Expanded file specification

 


 
uc4574 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Accept a filespec and removes any directory path, extension,
and any system specific information and returns the resultant simple
filename. For example:
fspec = "/DISK1/JOE/FOO.PRT", ftype = 2 will produce fname = "FOO".

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4574
(
const char * fspec,
int ftype,
char * fname
)
const char *fspecInput(输入)File specification from which to extract name
int (整数型)ftypeInput(输入)File type
char * (字符型指针)fnameOutput(输出)Simple file name

 


 
uc4575 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Combine a directory with a filename producing a file specification (filespec).
For example:

dspec = "/manager", ftype = 2, fname = "bar"

will produce fspec = "/MANAGER/BAR.PRT".

If the file name is a directory, using a filetype of 100 will merge the
directories. For example:

dspec = "/manager", ftype = 100, fname = "bar"

will produce fspec = "/MANAGER/BAR".

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4575
(
const char * dspec,
int ftype,
const char * fname,
char * fspec
)
const char *dspecInput(输入)Directory
int (整数型)ftypeInput(输入)File type
const char *fnameInput(输入)File name
char * (字符型指针)fspecOutput(输出)Resultant file specification

 


 
uc4576 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Take a filespec and returns its directory and filename components. For example:

fspec = "/Manager/Work/BENCH", ftype = 2


Note that this routine is impacted by the UGII_OPTION environment variable,
so if UGII_OPTION=lower is set, then the above example will produce:
dspec = "/manager/work" and fname = "bench.prt".

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4576
(
const char * fspec,
int ftype,
char * dspec,
char * fname
)
const char *fspecInput(输入)File specification to split up
int (整数型)ftypeInput(输入)File type
char * (字符型指针)dspecOutput(输出)Directory component
char * (字符型指针)fnameOutput(输出)File name component

 


 
uc4577 (查看源代码)
 
定义在: uf_cfi.h
 
概述
The name returned is a unique name for a temporary file. The resultant
filename is unique from other processes at the time. From a single
process, filenames will begin duplicating after the first 1,679,615 calls
to uc4577. Temporary files should be deleted when no longer needed by an
application. If the files are not deleted, there is a chance that the same
name may come up again if the same user happens to get the same process id
on a later date.

The maximum number of characters which will be returned is 12.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4577
(
char * fname
)
char * (字符型指针)fnameOutput(输出)Unique filename

 


 
uc4578 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Remove the file extension from a given file specification and
returns the resultant file specification.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4578
(
char * fspec,
int ftype,
char * dspec
)
char * (字符型指针)fspecInput(输入)File specification
int (整数型)ftypeInput(输入)File type
char * (字符型指针)dspecOutput(输出)Resultant file specification

 


 
uc4579 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Form the full filespec, given a simple name of a file
in the UGII_UTIL directory.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4579
(
const char * fname,
int ftype,
char * fspec
)
const char *fnameInput(输入)File name
int (整数型)ftypeInput(输入)File type
char * (字符型指针)fspecOutput(输出)Resultant file specification

 


 
uc4580 (查看源代码)
 
定义在: uf_cfi.h
 
概述
return the four character symbolic name for a given ftype
code (e.g.: 'PART' for ftype code 2). Many ftype codes will return
'TEXT' which indicates the file's contents may be displayed as ascii
data. Unnamed ftypes will have their numeric code returned in ascii.

返回
Return code:
< 0 = Error
= 0 = Format Returned
= 1 = Format Undefined

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4580
(
int ftype,
char * symb
)
int (整数型)ftypeInput(输入)File type
char * (字符型指针)symbOutput(输出)Symbolic name

 


 
uc4581 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Convert the symbolic character representation of a file type
into its numeric equivalent. For example, "PART" translates to a 2.

返回
Return code:
= 0 = Unknown Symbolic Name
> 0 = File Type

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4581
(
const char * symb
)
const char *symbInput(输入)Symbolic file type

 


 
uc4582 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Convert NX computational time to display form. Two forms are available
for the date and two forms are available for the time.
A date or time of -1 returns the current date and/or time.

NOTE: In option 9 of the dtype argument, "formatted for the locale"
means that the date and time string is appropriate for the language in
which the user's operating system environment runs under.

返回
Return code:
0 = No error
not 0 = Error code

环境
内部和外部

参见
uc4583

历史
The dtype argument was modified in V13.0 to
increase the number of options from 4 to 9.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4582
(
int date [ 2 ] ,
int dtype,
char * date_string,
char * time
)
int (整数型)date [ 2 ] Input(输入)Computational time:
[0] Date
[1] Time
int (整数型)dtypeInput(输入)Date And time representation:
1 = mm/dd/yy, hh:mm
2 = mm/dd/yy, hh:mm xM
3 = dd-mmm-yy, hh:mm
4 = dd-mmm-yy, hh:mm xM
5 = mm/dd/yyyy, hh:mm
6 = mm/dd/yyyy, hh:mm xM
7 = dd-mmm-yyyy, hh:mm
8 = dd-mmm-yyyy, hh:mm xM
9 = Formatted for the locale
where 'mm' = numeric month,
'dd' = day,
'yy' = two digit year,
'yyyy' = four digit year,
'mmm' = symbolic month,
'hh' = hour,
'mm' = minute,
'x' = 'A' or 'P'
When a blank is passed in for 'x', dtype = 8 will default to
12 hour time format where dtype = 7 will display a 24 hour time format.
Note: On Windows any string can be specified as AM/PM by using
Control Panel -> Regional and Language Options -> Customize -> Regional Options -> Time
char * (字符型指针)date_stringOutput(输出)Date (20 characters max)
char * (字符型指针)timeOutput(输出)Time (20 characters max)

 


 
uc4583 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Convert a character date and time to NX computational date and time.

返回
Return Code:
0 = Success
1 = Failure

环境
内部和外部

参见
uc4582
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4583
(
const char * date,
const char * time,
int* dandt
)
const char *dateInput(输入)Date in any of the following forms
MM/DD/YY
DD-MMM-YY
DDMMMYY
MM/DD/YYYY
DD-MMM-YYYY
DDMMMYYYY
If date is blank, the current date is used
const char *timeInput(输入)Time in either of the following forms
HH:MM
HH:MM xM (x = 'A' or 'P')
If time is blank, the current time is used
int*dandtOutput(输出)Date And Time
(1) = Computational Date
(2) = Computational Time

 


 
uc4595 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Query the user name, String Result

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4595
(
int qitem,
char * str
)
int (整数型)qitemInput(输入)Item to query:
1 = Username
char * (字符型指针)strOutput(输出)Query result. This must be a buffer big enough to hold the user
name.

 


 
uc4596 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Query a set of characteristics. The result for each item code follows:
Login Status: (qitem = 1)
bit 0 = Login Status
0 = NOT LOGGED IN
1 = LOGGED IN
bit 1 = Username Status
0 = DO NOT NEED A USERNAME TO LOGIN
1 = USERNAME NEEDED FOR LOGIN
bit 2 = Password Status
0 = DO NOT NEED A PASSWORD TO LOGIN
1 = PASSWORD NEEDED FOR LOGIN
bits 3-15 = Reserved
File Header Support: (qitem = 2)
bit 0 = Owner Supported
0 = NO
1 = YES
bit 1 = Protection Classes Supported
0 = NO
1 = YES
bit 2 = Status Word Supported
0 = NO
1 = YES
bit 3-4 = Reserved
bit 5 = Description Supported
0 = NO
1 = YES
bit 6 = Customer Area Supported
0 = NO
1 = YES
bit 7 = Non-Native Files Supported
0 = NO
1 = YES
bits 8-15 = Reserved

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4596
(
int qitem,
int * qreslt
)
int (整数型)qitemInput(输入)Item to query
1 = Login status
2 = File header fields supported
int * (整数型指针)qresltOutput(输出)Query result

 


 
uc4599 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Translate an error code to the text associated with it.
Due to the way error handling is done in the file system routines, the
error text should be retrieved before another error occurs otherwise
the error message might be lost.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc4599
(
int ug_errorno,
char * errstg
)
int (整数型)ug_errornoInput(输入)Error Code
char * (字符型指针)errstgOutput(输出)Error Text

 


 
uc4600 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the simple file name of the last file read with uc4518 or uc4564..
To obtain the full file specification, including the directory use uc4519.

环境
内部和外部

参见
uc4518
uc4564
uc4519
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4600
(
char * fname
)
char * (字符型指针)fnameOutput(输出)Filename

 


 
uc4601 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the file type of the last file read with uc4518 or uc4564..
You may use uc4581 to translate the file type to a character string.

返回
Return code:
< 0 = error
>= 0 = file type

环境
内部和外部

参见
uc4518
uc4564
uc4581
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4601
(
void
)

 


 
uc4602 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the status word of the last file read with uc4518 or uc4564..

环境
内部和外部

参见
uc4518
uc4564
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4602
(
int * fsts
)
int * (整数型指针)fstsOutput(输出)Status word

 


 
uc4603 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the owner of the last file read with uc4518 or uc4564..

环境
内部和外部

参见
uc4518
uc4564
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4603
(
char * owner
)
char * (字符型指针)ownerOutput(输出)Owner of file (16 characters max)

 


 
uc4605 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the length of the last file read with uc4518 or uc4564..

返回
Return code:
>= 0 = File Length In Bytes
< 0 = error code

环境
内部和外部

参见
uc4518
uc4564
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
long uc4605
(
void
)

 


 
uc4606 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the creation, modification, and last access date/time
of the last file read with uc4518 or uc4564..
Use uc4582 to convert the date/time to character strings.

环境
内部和外部

参见
uc4518
uc4564
uc4582
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4606
(
int * cdate,
int * mdate,
int * ldate
)
int * (整数型指针)cdateOutput(输出)Two word array containing the creation date and time
int * (整数型指针)mdateOutput(输出)Two word array containing the modification date and time
int * (整数型指针)ldateOutput(输出)Two word array containing the last access date and time

 


 
uc4607 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the descriptions area of the last file read with uc4518 or uc4564..

环境
内部和外部

参见
uc4518
uc4564
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4607
(
char * darea
)
char * (字符型指针)dareaOutput(输出)Description Area (132 characters max)

 


 
uc4608 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the customer area of the last file read with uc4518 or uc4564..

环境
内部和外部

参见
uc4518
uc4564
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4608
(
char * carea
)
char * (字符型指针)careaOutput(输出)Customer area (132 characters max)

 


 
uc4609 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the machine field of the last file read with uc4518 or uc4564.
These values are available for part files only. Parts filed in
V10.0 or earlier return unknown values.

返回
Return code:
< 0 = error
1 = APOLLO
2 = DEC VAX/VMS
3 = HP CISC
4 = HP RISC
5 = SUN 3
6 = SUN SPARC
7 = DEC RISC (ULTRIX)
8 = SGI
9 = DATA GENERAL
10 = IBM MVS
11 = IBM AIX
12 = AXP/OSF
13 = AXP/VMS

环境
内部和外部

参见
uc4518
uc4564
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4609
(
void
)

 


 
uc4612 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Modify the status header field of a file. An error returns if the file
system does not support a status field or the user does not have the privilege
to change it.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4612
(
const char * fname,
int ftype,
int fsts
)
const char *fnameInput(输入)File name
int (整数型)ftypeInput(输入)File type
int (整数型)fstsInput(输入)New status value

 


 
uc4613 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Modify the owner header field of a file. An error returns if the file system
does not support an owner field or the user does not have the privilege to
change it (some operating systems may require root privilege to change file
ownership).

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4613
(
const char * fname,
int ftype,
const char * owner
)
const char *fnameInput(输入)File name to change the owner of
int (整数型)ftypeInput(输入)File type
const char *ownerInput(输入)New owner value

 


 
uc4617 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Change the description header field of a file. An
error is returned if the file system does not support a description field or
the user does not have the privilege to change it.

环境
内部和外部

参见
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4617
(
const char * fname,
int ftype,
const char * desc
)
const char *fnameInput(输入)File name to change description of
int (整数型)ftypeInput(输入)File type
const char *descInput(输入)New description value

 


 
uc4618 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Change the customer area header field of a file. An
error will be returned if the file system does not support a customer
area field or the user does not have the privilege to change it.
This function modifies the part file on disk and should not
be used on a part file that has already been opened in NX. If this
occurs, the part cannot be saved. Use UF_PART_set_customer_area to
modify the customer area of a loaded part.

环境
内部和外部

参见
UF_PART_set_customer_area
For description of file types see table
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4618
(
const char * fname,
int ftype,
const char * carea
)
const char *fnameInput(输入)File name to change the customers area of
int (整数型)ftypeInput(输入)File type
const char *careaInput(输入)New customer area value

 


 
uc4620 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read a switch from the program command line given the name of the switch.
All switches are global switches; they may appear anywhere on the command line.
Switches may have a value or no value. For example:
/LIST=FOO.LIS switch with a value
/LIST switch with no value

Switches must match completely. If sname is "USERNAME", you
must enter the full text string.

Under UNIX, switches take the form:
-name no value
-name=value switch with a value

Switches are separated by blanks on UNIX. For example:
ugraf -user=manager -pass=frogs

Under WNT, switches take the form:
-name no value
-name:value switch with a value
-name=value switch with a value

NOTE: Use uc4624 in conjunction with this function. You must call
uc4624 before calling either uc4620 or uc4621.

返回
Return code:
< 0 = Error
0 = Switch Not Present
1 = Switch Found With No Value
3 = Switch Found With A Value

环境
External

参见
uc4624
uc4621
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4620
(
const char * sname,
char * swstg
)
const char *snameInput(输入)Switch name
char * (字符型指针)swstgOutput(输出)Switch value

 


 
uc4621 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Read arguments from the command line. Each argument may be read only once.
NOTE: Use uc4624 in conjunction with this function. You must call
uc4624 before calling either uc4620 or uc4621.

返回
Return code:
< 0 = Error
0 = Argument Not Present
1 = Argument Found

环境
External

参见
uc4624
uc4620
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4621
(
char * nxtarg
)
char * (字符型指针)nxtargOutput(输出)Argument Value

 


 
uc4622 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Returns an argument list to the GRIP xspawn command. The returned string
can not exceed 132 characters.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4622
(
char * ip1
)
char * (字符型指针)ip1Input(输入)The return argument list

 


 
uc4623 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Returns a pointer to a string which is the release number of the
specified part file. Some of the possible values are shown for the
description of cr2. You must allocate sufficient size for the relnum
array. For example, you could use MAX_LINE_SIZE (prototyped in
uf_defs.h) for the size of the array.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4623
(
char * fspec,
char * relnum
)
char * (字符型指针)fspecInput(输入)Part file name
char * (字符型指针)relnumOutput(输出)Release number
An example of possible Return Values are: V8, V9,
V10, V10.1, V10.2, V10.3 etc.

 


 
uc4624 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Save argument names for use with uc4620 and uc4621. The prog
parameter is not used. It is only present for backward compatibility.
You must use uc4624 before calling uc4620 or uc4621.

环境
External

参见
uc4620
uc4621
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4624
(
int prog,
int argc,
char * * argv
)
int (整数型)progInput(输入)Not used
int (整数型)argcInput(输入)Argument count
char * *argvInput(输入)array of argument names

 


 
uc4650 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Outputs a sorted directory listing to the Information Window if it has
been opened. Use UF_UI_open_listing_window to open the
Information Window. Dates in cbuf must be in the format
DD-MMM-YY (eg. 04-JUL-89).

返回
Return code:
< 0 = Error code
0 = No files listed
> 0 = Number of files listed

环境
UF_UI_open_listing_window
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4650
(
const char * dir,
int fmode,
int smode,
int * pbuf,
int * ibuf,
const char * cbuf
)
const char *dirInput(输入)Input directory
int (整数型)fmodeInput(输入)File selection mode
1 = Select all files
2 = File template specified in cbuf
3 = Select file created/modified/ accessed
after date specified in cbuf according to
field specified in ibuf
4 = Select file created/modified/ accessed
before date specified in cbuf according to
field specified in ibuf
5 = Select file by owner specified in cbuf
6 = Select file by protection class specified in
cbuf
7 = Select files of type specified in ibuf
8 = Select files by status specified in ibuf
int (整数型)smodeInput(输入)Sort mode
1 = Alphabetic
2 = Creation date
3 = Modified date
4 = Access date
5 = Owner
int * (整数型指针)pbufInput(输入)Print Field Selection Array,
Set Array Element = 1 To Print Desired Field
(1) = Print format
(2) = Print owner
(3) = Print pclass
(4) = Print length
(5) = Print status
(6) = Print creation date
(7) = Print creation time
(8) = Print modification date
(9) = Print modification time
(10) = Print access date
(11) = Print access time
(12) = Print machine type
(13) = Print description area
(14-16) = Reserved
int * (整数型指针)ibufInput(输入)Integer Parameter Array
IF fmode=3 or fmode=4, ibuf show date type
IF ibuf(1) = 1 : use file creation date
IF ibuf(1) = 2 : use file modified date
IF ibuf(1) = 3 : use file accessed date
IF fmode=7, ibuf selects file type set array element
= 1 to select desired file type
(1) = Part
(2) = Symbol
(3) = Text
(4) = GRIP
(5) = Customer
(6) = UNISOLIDS
(7) = UGI
(8) = Communications
(9) = Keystroke
(10) = Display
(11) = CL file
(12) = Directory
(13-16) = Reserved
IF fmode=8, ibuf(1) = File Status
const char *cbufInput(输入)Character Parameter
IF fmode=2, cbuf contains file template
IF fmode=3, cbuf contains file date
IF fmode=4, cbuf contains file date
IF fmode=5, cbuf contains owner name
IF fmode=6, cbuf contains protection class

 


 
uc4901 (查看源代码)
 
定义在: uf_cfi.h
 
概述
Return the language name stored in the native binary file.
You can use the returned language name string
to differentiate languages that use the same character set.
NOTE: If a Native Binary File has not been loaded then uc4901
returns "ENGLISH".

返回
Return code
0 = No error
not 0 = Error code

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc4901
(
char * lname
)
char * (字符型指针)lnameOutput(输出)Returns The Language Name Stored In The Native
Binary File

 


 
UF_CFI_ask_file_exist (查看源代码)
 
定义在: uf_cfi.h
 
概述
Test if a file or directory exists.

返回
0 - No error
Otherwise - Error Code

环境
内部和外部

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_CFI_ask_file_exist
(
const char * file_spec,
int * status
)
const char *file_specInput(输入)The file or directory to check
int * (整数型指针)statusOutput(输出)File or directory existence status.
0 - file exists
1 - file does not exist

 


 
UF_CFI_spawn (查看源代码)
 
定义在: uf_cfi.h
 
概述
Spawn a subprocess. The return code will indicated the status of the
process creation. If the status from the actual command is needed, use
UF_CFI_spawn_check_status.

环境
内部和外部

参见
UF_CFI_spawn_check_status

历史
Originally released in V18.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_CFI_spawn
(
const char * program,
int num_args,
char * arguments [ ] ,
logical is_concur,
int * process_id
)
const char *programInput(输入)The command to be executed. This command must either be
a full path name, or the program must be found on the
path.
int (整数型)num_argsInput(输入)The number of arguments in the next array. These
arguments will be passed to the command.
char * (字符型指针)arguments [ ] Input(输入)An array of character pointers for the arguments to
be passed to the program. You may pass in a NULL if
there are not any arguments. These arguments will be
added in the order they are stored, so the command
will be:
program argument[0] argument[1] ...
Switches must be formatted by the caller. On NT,
switches take the form "-switch:value", where on Unix
switches take the form "-switch=value".
logicalis_concurInput(输入)If TRUE, the command will be run at the same time
as the NX Open program, if FALSE, then UF_CFI_spawn
will wait for the completion of the command prior
to returning to the caller.
int * (整数型指针)process_idOutput(输出)The process ID of the spawned process.
This process ID can be used to check the status of
the spawned process using UF_CFI_spawn_check_status.

 


 
UF_CFI_spawn_check_status (查看源代码)
 
定义在: uf_cfi.h
 
概述
Check the status of a spawned subprocess.

环境
内部和外部

参见
UF_CFI_spawn

历史
Originally released in V18.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_CFI_spawn_check_status
(
int process_id,
logical * still_running,
int * return_status
)
int (整数型)process_idInput(输入)The process id returned by UF_CFI_spawn for the
command that was run. Note that this is only returned
for processes that are run concurrently.
logical *still_runningOutput(输出)If TRUE, the command is still running. If FALSE,
the command has completed.
int * (整数型指针)return_statusOutput(输出)If still_running is FALSE, then this is the return
status from the child process. If still_running
is TRUE, then this will be set to zero. A
return_status of 127 is set when the spawned
command could not be found.