Class to store XMLConfig configurations.
More...
|
|
int | mMaxNb |
| | Maximum number of stored configurations.
|
| |
|
std::list< boost::shared_ptr< XMLConfig > > | mvpConfig |
| | List of configurations.
|
| |
|
boost::shared_ptr< XMLConfig > | mpCurrentConfig |
| | The current configuration loaded (can be null if none is selected) This is reset every time a change is manually made.
|
| |
|
bool | mLock |
| | Lock used during Store and Restore.
|
| |
Class to store XMLConfig configurations.
Definition at line 68 of file Undo.h.
◆ XMLConfigHistory()
| ObjCryst::XMLConfigHistory::XMLConfigHistory |
( |
const int |
maxnb = 20 | ) |
|
Constructor.
- Parameters
-
| maxnb | maximum size of history |
Definition at line 358 of file Undo.cpp.
◆ Next()
| bool ObjCryst::XMLConfigHistory::Next |
( |
| ) |
|
Reload the next (more recent) configuration in the list.
- Returns
- : true if the loading was done, false otherwise (no available configuration or last)
Definition at line 428 of file Undo.cpp.
◆ Previous()
| bool ObjCryst::XMLConfigHistory::Previous |
( |
| ) |
|
Reload the previous (older) configuration in the list.
- Returns
- : true if the loading was done, false otherwise (no available configuration or last)
Definition at line 403 of file Undo.cpp.
◆ Store()
| bool ObjCryst::XMLConfigHistory::Store |
( |
| ) |
|
Store a new configuration.
If there is no difference with the previous one, nothing is done.
- Returns
- : true if a new configuration was saved, false otherwise
Definition at line 362 of file Undo.cpp.
The documentation for this class was generated from the following files: