CMake/Source/CPack/cmCPackGenerators.h

65 lines
1.8 KiB
C
Raw Normal View History

2006-01-02 07:21:05 +03:00
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Kitware, Inc. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
2006-03-10 21:06:26 +03:00
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
2006-01-02 07:21:05 +03:00
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef cmCPackGenerators_h
#define cmCPackGenerators_h
#include "cmObject.h"
2006-01-03 00:14:21 +03:00
class cmCPackLog;
2006-01-02 07:21:05 +03:00
class cmCPackGenericGenerator;
/** \class cmCPackGenerators
* \brief A container for CPack generators
*
*/
class cmCPackGenerators : public cmObject
{
public:
cmTypeMacro(cmCPackGenerators, cmObject);
cmCPackGenerators();
~cmCPackGenerators();
//! Get the generator
cmCPackGenericGenerator* NewGenerator(const char* name);
void DeleteGenerator(cmCPackGenericGenerator* gen);
typedef cmCPackGenericGenerator* CreateGeneratorCall();
void RegisterGenerator(const char* name,
2006-05-03 01:52:22 +04:00
const char* generatorDescription,
CreateGeneratorCall* createGenerator);
2006-01-02 07:21:05 +03:00
2006-03-10 21:06:26 +03:00
void SetLogger(cmCPackLog* logger) { this->Logger = logger; }
2006-01-03 00:14:21 +03:00
2006-05-03 01:52:22 +04:00
typedef std::map<cmStdString, cmStdString> DescriptionsMap;
const DescriptionsMap& GetGeneratorsList() const
{ return this->GeneratorDescriptions; }
2006-01-02 07:21:05 +03:00
private:
cmCPackGenericGenerator* NewGeneratorInternal(const char* name);
2006-03-10 21:06:26 +03:00
std::vector<cmCPackGenericGenerator*> Generators;
2006-01-02 07:21:05 +03:00
typedef std::map<cmStdString, CreateGeneratorCall*> t_GeneratorCreatorsMap;
2006-03-10 21:06:26 +03:00
t_GeneratorCreatorsMap GeneratorCreators;
2006-05-03 01:52:22 +04:00
DescriptionsMap GeneratorDescriptions;
2006-03-10 21:06:26 +03:00
cmCPackLog* Logger;
2006-01-02 07:21:05 +03:00
};
#endif