GeoCOM Reference Manual
File Transfer - FTR
Leica TPS1200 – Version 1.50
119
13.3.2
FTR_List – List file
AUT_ReadTol ...............................................
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 9008
.............................................................................................................................................................................................................................
9010
.................................................................................................................................................
AUT_ReadTol
C-Declaration
FTR_List(BOOLE bNext, BOOLE &rbLast, FTR_DIRINFO &rDirInfo)
VB-Declaration
VB_FTR_List(Next As Long, Last As Long, DirInfo As FTR_DIRINFO)
Request
%R1Q,23307:
bNext
ASCII-Response
%R1P,0,0:
RC,
rbLast,szFileName
,
ulFileSize
,
ucHour
,
ucMinute
,
ucSecond
,
ucCentisecond
ucDay
,
ucMonth
,
ucYear
Remarks
This command gets one single file entry. The command FTR_List has to be called first.
Parameters
bNext in
True if first entry otherwise next entry.
rbLast out
True if last entry.
rDirInfo out
Info about file name, size and modification time and date.
The entry is not valid if the file name is empty (
"").
Return-Codes
GRC_OK
0 Execution
successful.
GRC_FTR_MISSINGSETUP
13060 Missing
setup.
GRC_FTR_INVALIDINPUT
13059
First block is missing or last time was already last block.
See Also
FTR_SetupList
FTR_AbortList
Example
GRC_TYPE
rc;
FTR_DEVICETYPE eDeviceType;
FTR_FILETYPE eFileType;
char szSearchPath[128];
BOOLE
bNext;
BOOLE
bLast;
FTR_DIRINFO DirInfo;
char
szEntry[128];
eDeviceType = FTR_DEVICE_PCPARD;
eFileType = FTR_FILE_IMAGES;
strcpy(szSearchPath, "");
rc = FTR_SetupList(eDeviceType, eFileType, szSearchPath);
if(rc == GRC_OK)
{
bNext = FALSE;
do
{
rc = FTR_List(bNext, bLast, DirInfo);
if(rc != GRC_OK)
{
//
error
break;
}
if(strlen(DirInfo.szFileName) < 1)
{
// entry is not valid or list is empty
break;
}
sprintf(szEntry, "%s %ld %02/%02d/%04d %02d:%02d",
DirInfo.szFileName, DirInfo.ulFileSize,
DirInfo.ModDate.ucMonth, DirInfo.ModDate.ucDay,
DirInfo.ModDate. 2000,
DirInfo.ModTime.ucHour, DirInfo.ModTime.ucMinute);
bNext = TRUE;
}