API Reference > Other Classes > OdOleStorage Class > OdOleStorage Methods > OdOleStorage::openStream Method
OdOleStorage::openStream Method
Syntax
C++
virtual OdStreamBufPtr openStream(const OdString & filename, bool createIfNotFound = false, int accessMode = Oda::kFileRead) = 0;
Parameters 
Description 
const OdString & filename 
[in] Filename.  
bool createIfNotFound = false 
[in] Controls the creation of the file if it does not exist. 
int accessMode = Oda::kFileRead 
[in] Mode in which to open this OleStorage object.  

Returns a SmartPointer for the newly created OdStreamBuf object.

Opens an OdStreamBuf for this OleStorage object. For internal use only. 

 

accessMode must be a combination of one or more of the following: 

 

Name 
Value 
Description 
Oda::kFileRead 
0x80000000 
Read access. 
Oda::kFileWrite 
0x40000000 
Write access. 

 

createIfNotFound is for internal use only, and should always be false for client applications.

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