CMake/Source/CPack/cmCPackGenerators.h

59 lines
1.6 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,
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-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;
cmCPackLog* Logger;
2006-01-02 07:21:05 +03:00
};
#endif