1
// file automatically generated by: make_numbering_cxx.sh
3
/// This file is part of Rheolef.
5
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
7
/// Rheolef is free software; you can redistribute it and/or modify
8
/// it under the terms of the GNU General Public License as published by
9
/// the Free Software Foundation; either version 2 of the License, or
10
/// (at your option) any later version.
12
/// Rheolef is distributed in the hope that it will be useful,
13
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
/// GNU General Public License for more details.
17
/// You should have received a copy of the GNU General Public License
18
/// along with Rheolef; if not, write to the Free Software
19
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
/// =========================================================================
22
#include "rheolef/numbering.h"
23
#include "P0_numbering.h"
24
#include "P1_numbering.h"
25
#include "P2_numbering.h"
26
#include "P1d_numbering.h"
27
#include "P2d_numbering.h"
28
#include "bubble_numbering.h"
29
#include "P1pw_numbering.h"
30
#include "H3_numbering.h"
35
numbering_rep::make_ptr (string name)
37
// TODO: use gperf instead of a long if-else test suite
38
if (name == "") return 0;
39
if (name == "P0_numbering") return new_macro(numbering_P0);
40
if (name == "P1_numbering") return new_macro(numbering_P1);
41
if (name == "P2_numbering") return new_macro(numbering_P2);
42
if (name == "P1d_numbering") return new_macro(numbering_P1d);
43
if (name == "P2d_numbering") return new_macro(numbering_P2d);
44
if (name == "bubble_numbering") return new_macro(numbering_bubble);
45
if (name == "P1pw_numbering") return new_macro(numbering_P1pw);
46
if (name == "H3_numbering") return new_macro(numbering_H3);
47
error_macro ("undefined numbering `" << name << "'");
50
} // namespace rheolef