API Reference > OdDg Classes > OdDgDatabase Class > OdDgDatabase Methods > readFile Method > OdDgDatabase::readFile Method (OdStreamBufPtr&, Oda::FileShareMode)
OdDgDatabase::readFile Method (OdStreamBufPtr&, Oda::FileShareMode)
Syntax
C++
void readFile(OdStreamBufPtr& pStream, Oda::FileShareMode shareMode = Oda::kShareDenyWrite);
Parameters 
Description 
OdStreamBufPtr& pStream 
[in] Pointer to the memory stream from which the data are to be read.  
Oda::FileShareMode shareMode = Oda::kShareDenyWrite 
[in] Share mode to use when opening the specified file. 

Reads the contents of the memory stream into this database object. 

 

The specified OdDgAuditInfo object controls the audit, and receives the audit status. If pAuditInfo is non-zero, a recover will be performed instead of a load.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.