Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
src
MicrostructureGeneration
MicrostructureSpecificationBase.cpp
Go to the documentation of this file.
1
/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2
*
3
*
4
* MoDELib is distributed without any warranty under the
5
* GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6
*/
7
8
#ifndef model_MicrostructureSpecificationBase_cpp_
9
#define model_MicrostructureSpecificationBase_cpp_
10
11
12
#include <string>
13
#include <
MicrostructureSpecificationBase.h
>
14
15
namespace
model
16
{
17
MicrostructureSpecificationBase::MicrostructureSpecificationBase
(
const
std::string& type_in,
const
std::string& style_in):
18
/* init */
type
(type_in)
19
/* init */
,
style
(style_in)
20
/* init */
,
tag
(
type
+
style
+std::to_string(this->
sID
))
21
/* init */
,
parser
(nullptr)
22
{
23
24
}
25
26
MicrostructureSpecificationBase::MicrostructureSpecificationBase
(
const
std::string& type_in,
const
std::string& style_in,
const
std::string& fileName):
27
/* init */
type
(type_in)
28
/* init */
,
style
(style_in)
29
/* init */
,
tag
(
type
+
style
+std::to_string(this->
sID
))
30
/* init */
,
parser
(new
TextFileParser
(fileName))
31
{
32
33
}
34
}
35
#endif
MicrostructureSpecificationBase.h
model::StaticID< MicrostructureSpecificationBase >::sID
const size_t sID
Definition
StaticID.h:41
model::TextFileParser
Definition
TextFileParser.h:123
model
Definition
DD_converter.dox:2
model::MicrostructureSpecificationBase::tag
const std::string tag
Definition
MicrostructureSpecificationBase.h:24
model::MicrostructureSpecificationBase::type
const std::string type
Definition
MicrostructureSpecificationBase.h:22
model::MicrostructureSpecificationBase::parser
const std::unique_ptr< TextFileParser > parser
Definition
MicrostructureSpecificationBase.h:25
model::MicrostructureSpecificationBase::MicrostructureSpecificationBase
MicrostructureSpecificationBase(const std::string &type_in, const std::string &style_in)
Definition
MicrostructureSpecificationBase.cpp:17
model::MicrostructureSpecificationBase::style
const std::string style
Definition
MicrostructureSpecificationBase.h:23
Generated by
1.15.0