Namespace: OpenEdge.DataAdmin.Core
Class
DataFileInfo
Parent classes:
Inherits: Progress.Lang.Object

/* Copyright (c) 2011 by Progress Software Corporation.
/*
/* All rights reserved. No part of this program or document
/* may be reproduced in any form or by any means without
/* permission in writing from Progress Software Corporation.
Purpose:Read the trail info of a .d
Author(s):hdaniels
Created:Thu Mar 29 16:39:15 EDT 2012
Notes:From prodict/dump/lodtrail.i




Method Summary
Options Name Purpose
extractNumericInfo (character)
FindPSC () /* If the bytecount at the end of the file is wrong, we will jump * back the maximum number of bytes in a trailer and start looking * from there. If we still don't find it then tough luck. * NOTE: Variable p holds the number of bytes to roll back. AS of * 7/21/94, the max size of a trailer (.d) is 204 bytes, if you add * anything to this trailer, you must change this number to reflect * the number of bytes you added. I'll use 256 to add a little padding. (gfs) */
GetPSC (int64) /* using the byte count, we scoot right down there and look for * the beginning of the trailer ("PSC"). If we don't find it, we * will go and look for it. */
CHARACTER ReadBits (int64) /* reads trailer given a starting position */
ReadTrailer (character)

Constructor Summary
Options Name Purpose
DataFileInfo ()

Property Summary
Options Name Purpose
CHARACTER CodePage
CHARACTER CodePageError
CHARACTER DateFormat
CHARACTER LogicalDatabaseName
CHARACTER lvar
CHARACTER MapType
CHARACTER NumericDecimalPoint
LOGICAL NumericFormatError
CHARACTER NumericSeparator
INT64 NumRecords
CHARACTER TableName
DATETIME TimeStamp
INTEGER YearOffset


Method Detail
Top

PRIVATE extractNumericInfo (character)

Parameters:
numformat CHARACTER
Top

PRIVATE FindPSC ()

/* If the bytecount at the end of the file is wrong, we will jump
Top

PRIVATE GetPSC (int64)

/* using the byte count, we scoot right down there and look for
Parameters:
piPos INT64
Top

PRIVATE CHARACTER ReadBits (int64)

/* reads trailer given a starting position
Parameters:
pi INT64
Returns CHARACTER
Top

PUBLIC ReadTrailer (character)

Parameters:
pcFile CHARACTER


Constructor Detail
Top

PUBLIC DataFileInfo ()



Property Detail
Top

PUBLIC CHARACTER CodePage

Returns CHARACTER
Top

PUBLIC CHARACTER CodePageError

Returns CHARACTER
Top

PUBLIC CHARACTER DateFormat

Returns CHARACTER
Top

PUBLIC CHARACTER LogicalDatabaseName

Returns CHARACTER
Top

PRIVATE CHARACTER lvar

Returns CHARACTER
Top

PUBLIC CHARACTER MapType

Returns CHARACTER
Top

PUBLIC CHARACTER NumericDecimalPoint

Returns CHARACTER
Top

PUBLIC LOGICAL NumericFormatError

Returns LOGICAL
Top

PUBLIC CHARACTER NumericSeparator

Returns CHARACTER
Top

PUBLIC INT64 NumRecords

Returns INT64
Top

PUBLIC CHARACTER TableName

Returns CHARACTER
Top

PUBLIC DATETIME TimeStamp

Returns DATETIME
Top

PUBLIC INTEGER YearOffset

Returns INTEGER


Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0