API Reference > OdDg Classes > OdDgElement Class > OdDgElement Methods > OdDgElement::assertReadEnabled Method
OdDgElement::assertReadEnabled Method
Syntax
C++
void assertReadEnabled() const;

Throws an exception if this object is not open OdDg::kForRead.

This function should be used only inside member functions that do not modify this object. It should be the first function called by these functions.

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