2012-03-01 02:02:56 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
|
|
|
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
|
|
|
#ifndef cmExportSetMap_h
|
|
|
|
#define cmExportSetMap_h
|
|
|
|
|
2016-09-01 21:59:28 +03:00
|
|
|
#include <cmConfigure.h> // IWYU pragma: keep
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2016-04-29 16:40:20 +03:00
|
|
|
|
2012-03-01 02:02:56 +04:00
|
|
|
class cmExportSet;
|
|
|
|
|
|
|
|
/// A name -> cmExportSet map with overloaded operator[].
|
|
|
|
class cmExportSetMap : public std::map<std::string, cmExportSet*>
|
|
|
|
{
|
2013-11-08 18:33:50 +04:00
|
|
|
typedef std::map<std::string, cmExportSet*> derived;
|
2016-05-16 17:34:04 +03:00
|
|
|
|
2012-03-01 02:02:56 +04:00
|
|
|
public:
|
|
|
|
/** \brief Overloaded operator[].
|
|
|
|
*
|
|
|
|
* The operator is overloaded because cmExportSet has no default constructor:
|
|
|
|
* we do not want unnamed export sets.
|
|
|
|
*/
|
2016-05-16 17:34:04 +03:00
|
|
|
cmExportSet* operator[](const std::string& name);
|
2012-03-01 02:02:56 +04:00
|
|
|
|
2013-11-08 18:33:50 +04:00
|
|
|
void clear();
|
|
|
|
|
2012-03-01 02:02:56 +04:00
|
|
|
/// Overloaded destructor deletes all member export sets.
|
|
|
|
~cmExportSetMap();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|