Main Content

hdfh

HDF H 인터페이스에 대한 게이트웨이

구문

[out1,...,outN] = hdfh(funcstr,input1,...,inputN)

설명

hdfh는 HDF H 인터페이스에 대한 MATLAB® 게이트웨이입니다.

[out1,...,outN] = hdfh(funcstr,input1,...,inputN)functstr로 지정된 HDF 라이브러리의 H 함수에 해당하는 하나 이상의 출력을 반환합니다.

HDF 라이브러리의 H 함수와 funcstr에 대한 유효한 값 사이에는 일대일의 대응 관계가 있습니다. 예를 들어, hdfh('close',file_id)는 C 라이브러리 호출 Hclose(file_id)에 해당됩니다.

함수

funcstr의 값함수 구문설명
'appendable'

status = hdfh('appendable',access_id)

요소가 추가될 수 있도록 지정합니다.
'close'

status = hdfh('close',file_id)

파일에 대한 액세스 경로를 닫습니다.
'deldd'

status = hdfh('deldd',file_id,tag,ref)

데이터 설명자(Data Descriptor) 목록에서 태그와 참조 번호를 삭제합니다.
'dupdd'

status = hdfh('dupdd',file_id,tag,ref,old_tag,old_ref)

 
'endaccess'

status = hdfh('endaccess',access_id)

액세스 식별자를 폐기하여 데이터 객체에 대한 액세스를 종료합니다.
'fidinquire'

[filename,access_mode,attach,status] = hdfh('fidinquire',file_id)

지정된 파일에 대한 정보를 반환합니다.
'find'

[tag,ref,offset,length,status] = hdfh('find',file_id,... search_tag,search_ref,search_type,dir)

HDF 파일에서 다음으로 검색할 객체를 찾습니다. search_type'new' 또는 'continue'가 될 수 있습니다. dir 입력값은 'forward' 또는 'backward'가 될 수 있습니다.
'getelement'

[data,status] = hdfh('getelement',file_id,tag,ref)

지정된 태그와 참조 번호에 대한 데이터 요소를 읽습니다.
'getfileversion'

[major,minor,release,info,status] = hdfh('getfileversion',file_id)

HDF 파일에 대한 버전 정보를 반환합니다.
'getlibversion'

[major,minor,release,info,status] = hdfh('getlibversion')

현재 HDF 라이브러리에 대한 버전 정보를 반환합니다.
'inquire'

[file_id,tag,ref,length,offset,position,access,...
special,status] = hdfh('inquire',access_id)

데이터 요소에 대한 액세스 정보를 반환합니다.
'ishdf'

tf = hdfh('ishdf',filename)

파일이 HDF 파일인지 확인합니다.
'length'

length = hdfh('length',file_id,tag,ref)

태그와 참조 번호로 지정된 데이터 객체의 길이를 반환합니다.
'newref'

ref = hdfh('newref',file_id)

고유한 태그/참조 번호 쌍을 생성하기 위해 태그와 함께 사용될 참조 번호를 반환합니다.
'nextread'

status = hdfh('nextread',access_id,tag,ref,origin)

지정된 태그 및 참조 번호와 일치하는 다음 데이터 설명자(Data Descriptor)를 검색합니다. origin'start' 또는 'current'가 될 수 있습니다.
'number'

num = hdfh('number',file_id,tag)

파일 내 태그의 인스턴스 수를 반환합니다.
'offset'

offset = hdfh('offset',file_id,tag,ref)

파일 내 데이터 요소의 오프셋을 반환합니다.
'open'

file_id = hdfh('open',filename,access,n_dds)

모든 데이터 설명자(Data Descriptor) 블록을 메모리로 읽어들여 HDF 파일에 대한 액세스 경로를 제공합니다.
'putelement'

count = hdfh('putelement',file_id,tag,ref,X)

데이터 요소를 쓰거나 HDF 파일에 있는 기존 데이터 요소를 교체합니다. Xuint8형 배열이어야 합니다.
'read'

X = hdfh('read',access_id,length)

데이터 요소의 다음 세그먼트를 읽습니다.
'seek'

status = hdfh('seek',access_id,offset,origin)

데이터 요소 내의 오프셋에 대한 액세스 포인터를 설정합니다. origin'start' 또는 'current'가 될 수 있습니다.
'startread'

access_id = hdfh('startread',file_id,tag,ref)

 
'startwrite'

access_id = hdfh('startwrite',file_id,tag,ref,length)

 
'sync'

status = hdfh('sync',file_id)

 
'trunc'

length = hdfh('trunc',access_id,trunc_len)

지정된 데이터 객체를 주어진 길이로 잘라냅니다.
'write'

count = hdfh('write',access_id,X)

지정된 데이터 요소에 다음 데이터 세그먼트를 씁니다. Xuint8형 배열이어야 합니다.

출력 인수

status 또는 식별자 출력값이 -1이면 작업이 실패했음을 나타냅니다.

제한 사항

  • hdfh는 NCSA H 인터페이스의 다음 함수를 지원하지 않습니다.

    • Hcache

    • Hendbitaccess

    • Hexist

    • Hflushdd

    • Hgetbit

    • Hputbit

    • Hsetlength

    • Hshutdown

    • Htagnewref

버전 내역

R2006a 이전에 개발됨