Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
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>
14
15namespace 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
const std::unique_ptr< TextFileParser > parser
MicrostructureSpecificationBase(const std::string &type_in, const std::string &style_in)