summaryrefslogtreecommitdiffstats
path: root/Source/CPack/IFW/cmCPackIFWInstaller.h
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2017-04-27 20:51:00 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-03 15:32:05 (GMT)
commit9c13e8eb6fcc249afaf905d67e24b63884c4aa2f (patch)
treed120100d80cfaee00c0e369c00dddb1bee27c9c7 /Source/CPack/IFW/cmCPackIFWInstaller.h
parent96820279541017402c1fe0852444aac68179ddb7 (diff)
downloadCMake-9c13e8eb6fcc249afaf905d67e24b63884c4aa2f.zip
CMake-9c13e8eb6fcc249afaf905d67e24b63884c4aa2f.tar.gz
CMake-9c13e8eb6fcc249afaf905d67e24b63884c4aa2f.tar.bz2
CPackIFW: Refactor out some commonly used code
Move common used code to new cmCPackIFWCommon base class.
Diffstat (limited to 'Source/CPack/IFW/cmCPackIFWInstaller.h')
-rw-r--r--Source/CPack/IFW/cmCPackIFWInstaller.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWInstaller.h b/Source/CPack/IFW/cmCPackIFWInstaller.h
index 64239cf..b635f42 100644
--- a/Source/CPack/IFW/cmCPackIFWInstaller.h
+++ b/Source/CPack/IFW/cmCPackIFWInstaller.h
@@ -5,19 +5,19 @@
#include "cmConfigure.h" // IWYU pragma: keep
+#include "cmCPackIFWCommon.h"
+
#include <map>
#include <string>
#include <vector>
-class cmCPackIFWGenerator;
class cmCPackIFWPackage;
class cmCPackIFWRepository;
-class cmXMLWriter;
/** \class cmCPackIFWInstaller
* \brief A binary installer to be created CPack IFW generator
*/
-class cmCPackIFWInstaller
+class cmCPackIFWInstaller : public cmCPackIFWCommon
{
public:
// Types
@@ -111,28 +111,17 @@ public:
public:
// Internal implementation
- const char* GetOption(const std::string& op) const;
- bool IsOn(const std::string& op) const;
-
- bool IsVersionLess(const char* version);
- bool IsVersionGreater(const char* version);
- bool IsVersionEqual(const char* version);
-
void ConfigureFromOptions();
void GenerateInstallerFile();
void GeneratePackageFiles();
- cmCPackIFWGenerator* Generator;
PackagesMap Packages;
RepositoriesVector RemoteRepositories;
std::string Directory;
protected:
- void WriteGeneratedByToStrim(cmXMLWriter& xout);
-
-private:
void printSkippedOptionWarning(const std::string& optionName,
const std::string& optionValue);
};