12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef cmSourceGroupCommand_h
- #define cmSourceGroupCommand_h
- #include "cmConfigure.h"
- #include <map>
- #include <string>
- #include <vector>
- #include "cmCommand.h"
- class cmExecutionStatus;
- class cmSourceGroupCommand : public cmCommand
- {
- public:
-
- cmCommand* Clone() override { return new cmSourceGroupCommand; }
-
- bool InitialPass(std::vector<std::string> const& args,
- cmExecutionStatus& status) override;
- private:
- typedef std::map<std::string, std::vector<std::string>> ParsedArguments;
- typedef std::vector<std::string> ExpectedOptions;
- ExpectedOptions getExpectedOptions() const;
- bool isExpectedOption(const std::string& argument,
- const ExpectedOptions& expectedOptions);
- void parseArguments(const std::vector<std::string>& args,
- cmSourceGroupCommand::ParsedArguments& parsedArguments);
- bool processTree(ParsedArguments& parsedArguments, std::string& errorMsg);
- bool checkArgumentsPreconditions(const ParsedArguments& parsedArguments,
- std::string& errorMsg) const;
- bool checkSingleParameterArgumentPreconditions(
- const std::string& argument, const ParsedArguments& parsedArguments,
- std::string& errorMsg) const;
- };
- #endif
|