API Reference > OdDb Classes > OdDbDatabase Class > OdDbDatabase Methods > readFile Method > OdDbDatabase::readFile Method (OdString&, bool, Oda::FileShareMode, OdPassword&, bool)
OdDbDatabase::readFile Method (OdString&, bool, Oda::FileShareMode, OdPassword&, bool)
Syntax
C++
void readFile(const OdString& filename, bool partialLoad = false, Oda::FileShareMode shareMode = Oda::kShareDenyWrite, const OdPassword& password = OdPassword(), bool allowCPConversion = false);
Parameters 
Description 
const OdString& filename 
[in] Name of the file from which the data is to be read.  
Oda::FileShareMode shareMode = Oda::kShareDenyWrite 
[in] Share mode to use when opening the specified file. 

Reads the contents of the specified drawing file into this database object. 

 

shareMode must be one of the following: 

 

Name 
Value 
Description 
Oda::kShareDenyReadWrite 
0x10 
deny read/write mode 
Oda::kShareDenyWrite 
0x20 
deny write mode 
Oda::kShareDenyRead 
0x30 
deny read mode 
Oda::kShareDenyNo 
0x40 
deny none mode 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.