1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 21:53:52 +00:00
openmw/apps/opencs/model/tools/searchoperation.hpp

37 lines
751 B
C++
Raw Normal View History

#ifndef CSM_TOOLS_SEARCHOPERATION_H
#define CSM_TOOLS_SEARCHOPERATION_H
#include "../doc/operation.hpp"
#include "search.hpp"
namespace CSMDoc
{
class Document;
}
namespace CSMTools
{
class SearchStage;
2022-09-22 18:26:05 +00:00
class SearchOperation : public CSMDoc::Operation
{
2022-09-22 18:26:05 +00:00
Search mSearch;
2022-09-22 18:26:05 +00:00
public:
SearchOperation(CSMDoc::Document& document);
2022-09-22 18:26:05 +00:00
/// \attention Do not call this function while a search is running.
void configure(const Search& search);
2022-09-22 18:26:05 +00:00
void appendStage(SearchStage* stage);
///< The ownership of \a stage is transferred to *this.
///
/// \attention Do no call this function while this Operation is running.
2022-09-22 18:26:05 +00:00
const Search& getSearch() const;
};
}
#endif