2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2012-03-01 02:02:56 +04:00
|
|
|
#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
|