0.95.0-final
Finite Element Embedded Library and Language in C++
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
materiallib.hpp
Go to the documentation of this file.
1
/* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3
This file is part of the Feel library
4
5
Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
6
Date: 2008-05-25
7
8
Copyright (C) 2008 Universite Joseph Fourier (Grenoble I)
9
10
This library is free software; you can redistribute it and/or
11
modify it under the terms of the GNU Lesser General Public
12
License as published by the Free Software Foundation; either
13
version 3.0 of the License, or (at your option) any later version.
14
15
This library is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
Lesser General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public
21
License along with this library; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
*/
29
#ifndef __MaterialLib_H
30
#define __MaterialLib_H 1
31
32
#include <feel/feelcore/feel.hpp>
33
#include <
feel/feelcore/factory.hpp
>
34
#include <
feel/feelcore/singleton.hpp
>
35
#include <
feel/feelmaterial/material.hpp
>
36
37
38
39
namespace
Feel
40
{
41
namespace
detail
42
{
43
template
<
typename
T>
44
Material* createMaterial()
45
{
46
return
new
T;
47
}
48
}
56
class
MaterialLib
57
{
58
public
:
59
60
64
65
typedef
Singleton< Feel::Factory< Material, std::string >
>
factory_type
;
66
68
72
73
MaterialLib
();
74
MaterialLib
( po::variables_map
const
& vm );
75
MaterialLib
(
MaterialLib
const
& );
76
~
MaterialLib
();
77
79
83
84
86
90
91
static
material_ptrtype material( std::string
const
& name );
92
93
95
99
101
105
106
108
109
110
111
protected
:
112
113
private
:
114
115
116
117
};
118
119
typedef
Singleton< Feel::Factory< Material, std::string >
>
MaterialFactory
;
120
121
}
// Feel
122
#endif
/* __MaterialLib_H */
Generated on Fri Oct 25 2013 14:24:17 for Feel++ by
1.8.4