diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-03-22 14:15:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-26 13:35:58 (GMT) |
commit | a0d9429bd70426b6444d3987d7023fe40e203b88 (patch) | |
tree | 50458dbc1596acc7db050447af2ce1faa7d3bcf0 /Source/cmVisualStudioGeneratorOptions.h | |
parent | 8aec07e0576a6121174a210dd3e3440a9f7105aa (diff) | |
download | CMake-a0d9429bd70426b6444d3987d7023fe40e203b88.zip CMake-a0d9429bd70426b6444d3987d7023fe40e203b88.tar.gz CMake-a0d9429bd70426b6444d3987d7023fe40e203b88.tar.bz2 |
cmVisualStudioGeneratorOptions: Move XML code to subclasses
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.h')
-rw-r--r-- | Source/cmVisualStudioGeneratorOptions.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.h b/Source/cmVisualStudioGeneratorOptions.h index 517760a..40290d1 100644 --- a/Source/cmVisualStudioGeneratorOptions.h +++ b/Source/cmVisualStudioGeneratorOptions.h @@ -16,8 +16,6 @@ class cmLocalVisualStudioGenerator; typedef cmIDEFlagTable cmVS7FlagTable; -class cmVisualStudio10TargetGenerator; - class cmVisualStudioGeneratorOptions : public cmIDEOptions { public: @@ -34,12 +32,8 @@ public: CSharpCompiler }; cmVisualStudioGeneratorOptions(cmLocalVisualStudioGenerator* lg, Tool tool, - cmVS7FlagTable const* table, - cmVS7FlagTable const* extraTable = 0, - cmVisualStudio10TargetGenerator* g = 0); - - cmVisualStudioGeneratorOptions(cmLocalVisualStudioGenerator* lg, Tool tool, - cmVisualStudio10TargetGenerator* g = 0); + cmVS7FlagTable const* table = nullptr, + cmVS7FlagTable const* extraTable = nullptr); // Add a table of flags. void AddTable(cmVS7FlagTable const* table); @@ -92,10 +86,11 @@ public: const std::string& lang); void OutputFlagMap(std::ostream& fout, const char* indent); void SetConfiguration(const std::string& config); + const std::string& GetConfiguration() const; -private: - void OutputFlag(std::ostream& fout, const char* indent, const char* tag, - const std::string& content); +protected: + virtual void OutputFlag(std::ostream& fout, const char* indent, + const char* tag, const std::string& content) = 0; private: cmLocalVisualStudioGenerator* LocalGenerator; @@ -103,7 +98,6 @@ private: std::string Configuration; Tool CurrentTool; - cmVisualStudio10TargetGenerator* TargetGenerator; bool FortranRuntimeDebug; bool FortranRuntimeDLL; |