API Reference > OdDg Classes > OdDgDatabase Class > OdDgDatabase Methods > OdDgDatabase::readFromStream Method
OdDgDatabase::readFromStream Method
Syntax
C++
void readFromStream(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.