OpenMW
apps/opencs/model/tools/mandatoryid.hpp
Go to the documentation of this file.
00001 #ifndef CSM_TOOLS_MANDATORYID_H
00002 #define CSM_TOOLS_MANDATORYID_H
00003 
00004 #include <string>
00005 #include <vector>
00006 
00007 #include "../world/universalid.hpp"
00008 
00009 #include "../doc/stage.hpp"
00010 
00011 namespace CSMWorld
00012 {
00013     class CollectionBase;
00014 }
00015 
00016 namespace CSMTools
00017 {
00019     class MandatoryIdStage : public CSMDoc::Stage
00020     {
00021             const CSMWorld::CollectionBase& mIdCollection;
00022             CSMWorld::UniversalId mCollectionId;
00023             std::vector<std::string> mIds;
00024 
00025         public:
00026 
00027             MandatoryIdStage (const CSMWorld::CollectionBase& idCollection, const CSMWorld::UniversalId& collectionId,
00028                 const std::vector<std::string>& ids);
00029 
00030             virtual int setup();
00032 
00033             virtual void perform (int stage, std::vector<std::string>& messages);
00035     };
00036 }
00037 
00038 #endif