NEST main@caf0ae8
 
Loading...
Searching...
No Matches
deprecation_warning.h
Go to the documentation of this file.
1/*
2 * deprecation_warning.h
3 *
4 * This file is part of NEST.
5 *
6 * Copyright (C) 2004 The NEST Initiative
7 *
8 * NEST is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * NEST is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23// C++ includes:
24#include <iostream>
25#include <map>
26#include <string>
27
28#ifndef DEPRECATION_WARNING_H
29#define DEPRECATION_WARNING_H
30
31
48namespace nest
49{
50
52{
53public:
58
63
67 void
68 set_deprecated( std::string name )
69 {
70 deprecated_functions_[ name ] = true;
71 }
72
76 void deprecation_warning( std::string name );
77 void deprecation_warning( std::string name, std::string new_name );
78
79private:
80 std::map< std::string, bool > deprecated_functions_;
81};
82}
83
84#endif /* DEPRECATION_WARNING_H */
Definition deprecation_warning.h:52
void deprecation_warning(std::string name)
Issue a deprecation warning.
Definition deprecation_warning.cpp:34
DeprecationWarning()
Definition deprecation_warning.h:54
void set_deprecated(std::string name)
Set parameter name to be deprecated.
Definition deprecation_warning.h:68
std::map< std::string, bool > deprecated_functions_
Definition deprecation_warning.h:80
DeprecationWarning(const DeprecationWarning &dw)
Definition deprecation_warning.h:59
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33