Close

Relief for ODA Team in Ukraine

Learn more
ODA PRC SDK
OdPrcObjectId::openObject Method (OpenMode, bool)
Syntax
C++
OdPrcObjectPtr openObject(OpenMode openMode = kForRead, bool openErasedOne = false) const;

Opens the database object associated with the identifier. 

 

Parameters
Description
openMode
[in] Mode in which the object must be opened.
openErasedOne
[in] Specifies whether erased objects are also opened (true) or not (false).

Returns a smart pointer to the opened object if successful, otherwise returns NULL.

openMode must be one of the following:

Identifier
Value
Description
kNotOpen
-1
Object is open for reading.
kForRead
0
Object is open for reading.
kForWrite
1
Object is open for reading and/or writing.
kForNotify
2
Object is open for notifying.
Copyright © 2002-2022. Open Design Alliance All rights reserved.