12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef cmCTestUpdateHandler_h
- #define cmCTestUpdateHandler_h
- #include "cmConfigure.h"
- #include "cmCTestGenericHandler.h"
- #include <string>
- #include <utility>
- #include <vector>
- class cmCTestUpdateHandler : public cmCTestGenericHandler
- {
- public:
- typedef cmCTestGenericHandler Superclass;
-
- int ProcessHandler() override;
- cmCTestUpdateHandler();
- enum
- {
- e_UNKNOWN = 0,
- e_CVS,
- e_SVN,
- e_BZR,
- e_GIT,
- e_HG,
- e_P4,
- e_LAST
- };
-
- void Initialize() override;
- private:
-
- struct StringPair : public std::pair<std::string, std::string>
- {
- };
- struct UpdateFiles : public std::vector<StringPair>
- {
- };
-
- int DetermineType(const char* cmd, const char* type);
-
- std::string UpdateCommand;
- int UpdateType;
- int DetectVCS(const char* dir);
- bool SelectVCS();
- };
- #endif
|