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

38 lines
786 B
C++
Raw Normal View History

2013-04-04 08:10:26 +00:00
#ifndef CSM_TOOLS_CLASSCHECK_H
#define CSM_TOOLS_CLASSCHECK_H
#include "../world/idcollection.hpp"
#include "../doc/stage.hpp"
2013-04-04 08:10:26 +00:00
2022-10-19 17:02:00 +00:00
namespace CSMDoc
{
class Messages;
}
namespace ESM
{
struct Class;
}
2013-04-04 08:10:26 +00:00
namespace CSMTools
{
/// \brief VerifyStage: make sure that class records are internally consistent
class ClassCheckStage : public CSMDoc::Stage
2013-04-04 08:10:26 +00:00
{
2022-09-22 18:26:05 +00:00
const CSMWorld::IdCollection<ESM::Class>& mClasses;
bool mIgnoreBaseRecords;
2013-04-04 08:10:26 +00:00
2022-09-22 18:26:05 +00:00
public:
ClassCheckStage(const CSMWorld::IdCollection<ESM::Class>& classes);
2013-04-04 08:10:26 +00:00
2022-09-22 18:26:05 +00:00
int setup() override;
///< \return number of steps
2013-04-04 08:10:26 +00:00
2022-09-22 18:26:05 +00:00
void perform(int stage, CSMDoc::Messages& messages) override;
///< Messages resulting from this tage will be appended to \a messages.
2013-04-04 08:10:26 +00:00
};
}
#endif