1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-24 06:23:54 +00:00
openmw/apps/opencs/model/tools/mandatoryid.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
966 B
C++
Raw Normal View History

2012-12-08 22:27:59 +00:00
#ifndef CSM_TOOLS_MANDATORYID_H
#define CSM_TOOLS_MANDATORYID_H
#include <string>
#include <vector>
#include "../world/universalid.hpp"
#include "../doc/stage.hpp"
2012-12-08 22:27:59 +00:00
2022-10-19 17:02:00 +00:00
namespace CSMDoc
{
class Messages;
}
2012-12-08 22:27:59 +00:00
namespace CSMWorld
{
class CollectionBase;
2012-12-08 22:27:59 +00:00
}
namespace CSMTools
{
/// \brief Verify stage: make sure that records with specific IDs exist.
class MandatoryIdStage : public CSMDoc::Stage
2012-12-08 22:27:59 +00:00
{
const CSMWorld::CollectionBase& mIdCollection;
2012-12-08 22:27:59 +00:00
CSMWorld::UniversalId mCollectionId;
std::vector<std::string> mIds;
public:
MandatoryIdStage(const CSMWorld::CollectionBase& idCollection, const CSMWorld::UniversalId& collectionId,
2012-12-08 22:27:59 +00:00
const std::vector<std::string>& ids);
int setup() override;
///< \return number of steps
void perform(int stage, CSMDoc::Messages& messages) override;
2012-12-08 22:27:59 +00:00
///< Messages resulting from this tage will be appended to \a messages.
};
}
#endif