OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
mandatoryid.hpp
Go to the documentation of this file.
1 #ifndef CSM_TOOLS_MANDATORYID_H
2 #define CSM_TOOLS_MANDATORYID_H
3 
4 #include <string>
5 #include <vector>
6 
7 #include "../world/universalid.hpp"
8 
9 #include "../doc/stage.hpp"
10 
11 namespace CSMWorld
12 {
13  class CollectionBase;
14 }
15 
16 namespace CSMTools
17 {
20  {
23  std::vector<std::string> mIds;
24 
25  public:
26 
27  MandatoryIdStage (const CSMWorld::CollectionBase& idCollection, const CSMWorld::UniversalId& collectionId,
28  const std::vector<std::string>& ids);
29 
30  virtual int setup();
32 
33  virtual void perform (int stage, CSMDoc::Messages& messages);
35  };
36 }
37 
38 #endif
std::vector< std::string > mIds
Definition: mandatoryid.hpp:23
const CSMWorld::CollectionBase & mIdCollection
Definition: mandatoryid.hpp:21
MandatoryIdStage(const CSMWorld::CollectionBase &idCollection, const CSMWorld::UniversalId &collectionId, const std::vector< std::string > &ids)
Definition: mandatoryid.cpp:7
Definition: messages.hpp:38
CSMWorld::UniversalId mCollectionId
Definition: mandatoryid.hpp:22
Verify stage: make sure that records with specific IDs exist.
Definition: mandatoryid.hpp:19
Definition: stage.hpp:15
Base class for record collections.
Definition: collectionbase.hpp:23
virtual void perform(int stage, CSMDoc::Messages &messages)
Messages resulting from this tage will be appended to messages.
Definition: mandatoryid.cpp:17
virtual int setup()
Definition: mandatoryid.cpp:12
Definition: universalid.hpp:12