MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ScopeHistory Class Reference

The purpose of this class is to combine all actions appended to global history store in one big action to undo/redo them all at once. More...

#include <MRAppendHistory.h>

Public Member Functions

MRVIEWER_API ScopeHistory (const std::string &name)
 creates new CombinedHistoryAction, and setups global history store to append all new actions there during this object lifetime
 
MRVIEWER_API ~ScopeHistory ()
 created before CombinedHistoryAction if not empty is appended (with all sub-actions) in the global history store
 
const std::shared_ptr< CombinedHistoryAction > & combinedAction () const
 returns the action being populated
 

Detailed Description

The purpose of this class is to combine all actions appended to global history store in one big action to undo/redo them all at once.

Constructor & Destructor Documentation

◆ ScopeHistory()

MRVIEWER_API MR::ScopeHistory::ScopeHistory ( const std::string & name)

creates new CombinedHistoryAction, and setups global history store to append all new actions there during this object lifetime

◆ ~ScopeHistory()

MRVIEWER_API MR::ScopeHistory::~ScopeHistory ( )

created before CombinedHistoryAction if not empty is appended (with all sub-actions) in the global history store

Member Function Documentation

◆ combinedAction()

const std::shared_ptr< CombinedHistoryAction > & MR::ScopeHistory::combinedAction ( ) const
inline

returns the action being populated


The documentation for this class was generated from the following file: