diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-24 18:27:18 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-24 18:27:18 (GMT) |
commit | 938ed7710ab15ad13f51bd17243cfe20cf8285eb (patch) | |
tree | 4234154b94405fba1de7ed626af9d9fdc4b7a33d /Source/cmInstallCommandArguments.h | |
parent | 9220e974017e34b53ba0650ec45c1a16566b6b88 (diff) | |
download | CMake-938ed7710ab15ad13f51bd17243cfe20cf8285eb.zip CMake-938ed7710ab15ad13f51bd17243cfe20cf8285eb.tar.gz CMake-938ed7710ab15ad13f51bd17243cfe20cf8285eb.tar.bz2 |
STYLE: fix MSVC warnings by making the cmCommandArgumentsHelper a member of
cmInstallCommandArguments instead of deriving from it
Alex
Diffstat (limited to 'Source/cmInstallCommandArguments.h')
-rw-r--r-- | Source/cmInstallCommandArguments.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmInstallCommandArguments.h b/Source/cmInstallCommandArguments.h index 936aa46..2547877 100644 --- a/Source/cmInstallCommandArguments.h +++ b/Source/cmInstallCommandArguments.h @@ -21,15 +21,17 @@ #include "cmStandardIncludes.h" #include "cmCommandArgumentsHelper.h" -class cmInstallCommandArguments : public cmCommandArgumentsHelper +class cmInstallCommandArguments { public: cmInstallCommandArguments(); void SetGenericArguments(cmInstallCommandArguments* args) {this->GenericArguments = args;} - // Compute destination path. + void Parse(const std::vector<std::string>* args, + std::vector<std::string>* unconsumedArgs); + + // Compute destination path.and check permissions bool Finalize(); - cmCommandArgumentGroup ArgumentGroup; const std::string& GetDestination() const; const std::string& GetComponent() const; @@ -45,6 +47,8 @@ class cmInstallCommandArguments : public cmCommandArgumentsHelper std::string& absDest); static bool CheckPermissions(const std::string& onePerm, std::string& perm); + cmCommandArgumentsHelper Parser; + cmCommandArgumentGroup ArgumentGroup; private: cmCAString Destination; cmCAString Component; |