API Reference > OdDb Classes > OdDbHostAppServices Class > OdDbHostAppServices Methods > readFile Method > OdDbHostAppServices::readFile Method (OdStreamBuf*, bool, bool, OdPassword&)
OdDbHostAppServices::readFile Method (OdStreamBuf*, bool, bool, OdPassword&)
Syntax
C++
virtual OdDbDatabasePtr readFile(OdStreamBuf* pStreamBuf, bool allowCPConversion = false, bool partialLoad = false, const OdPassword& password = OdPassword());
Parameters 
Description 
OdStreamBuf* pStreamBuf 
[in] Pointer to the StreamBuf object from which the data are to be read.  
bool allowCPConversion = false 
[in] If and only if true, allows code page conversion. 
bool partialLoad = false 
[in] Controls the partial loading of .dwg files.  
const OdPassword& password = OdPassword() 
[in] Password for file.  

Returns a SmartPointer to the database containing the contents of the file.

Loads the contents of the specified StreamBuf or DWG/DXF file into the database with which this HostAppServices object is associated. 

 

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