API Reference > Other Classes > OdSaveState Template
OdSaveState Template
OdSaveState
Syntax
C++
template <class T> class OdSaveState;

SaveState.h

This template class implements SaveState objects which save and restore variables.

Variables are saved locally on construction of OdSaveState objects. Variables are restored when OdSaveState objects go out of scope. 

 

 
Name 
Description 
 
Destructor for objects of the OdSaveState class. Restores the old value of a variable. 
 
This is the overview for the OdSaveState constructor overload. 
 
Name 
Description 
 
Returns the saved value of the variable. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.