API Reference > OdDb Classes > OdDbLayerState Class > OdDbLayerState Methods > OdDbLayerState::importData Method
OdDbLayerState::importData Method
Syntax
C++
static ImportResult importData(OdDbDatabase * pDb, OdStreamBuf* pStreamBuf, OdString* pName = 0);
Parameters 
Description 
OdDbDatabase * pDb 
[in] Pointer to the database.  
OdStreamBuf* pStreamBuf 
[in] Pointer to the StreamBuf object from which the data are to be read.  
OdString* pName = 0 
[out] Optional pointer to the string where imported layer state name will be stored.
 

Import result. Can be one of the following: 

 

Name 
Value 
kImported 
kAlreadyExists 

Imports the LayerState from the specified file to the specified database. 

 

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