TkN 2.4
Toolkit for Nuclei
Loading...
Searching...
No Matches
tkensdf_ident_rec.cpp
1/********************************************************************************
2 * Copyright (c) : Université de Lyon 1, CNRS/IN2P3, UMR5822, *
3 * IP2I, F-69622 Villeurbanne Cedex, France *
4 * Normandie Université, ENSICAEN, UNICAEN, CNRS/IN2P3, *
5 * LPC Caen, F-14000 Caen, France *
6 * Contibutor(s) : *
7 * Jérémie Dudouet jeremie.dudouet@cnrs.fr [2020] *
8 * Diego Gruyer diego.gruyer@cnrs.fr [2020] *
9 * *
10 * Licensed under the MIT License <http://opensource.org/licenses/MIT>. *
11 * SPDX-License-Identifier: MIT *
12 ********************************************************************************/
13
14#include "tkensdf_ident_rec.h"
15
16namespace tkn {
23}
24
25using namespace tkn;
26
31
33 tkensdf_record(ident_record),
34 fnuclide(ident_record.fnuclide),
35 fdsid(ident_record.fdsid),
36 fdsref(ident_record.fdsref),
37 fpub(ident_record.fpub),
38 fdate(ident_record.fdate),
39 fis_adopted(ident_record.fis_adopted)
40{
41 fposition.first = ident_record.fposition.first;
42 fposition.second = ident_record.fposition.second;
44}
45
47{
48 frecord = _record;
50 return true;
51}
52
54{
55 fnuclide = get_nuclide();
56 fdsid = get_dsid();
57 fdsref = get_dsref();
58 fpub = get_pub();
59 fdate = get_date();
60}
61
63{
64 fnuclide = " ";
65 fdsid = " ";
66 fdsref = " ";
67 fpub = " ";
68 fdate = " ";
69 fposition.first = fposition.second = fcurrentPosition = 0;
70}
71
72void tkensdf_ident_rec::print(std::ostream &out) const
73{
74 out << "Nuclide " << fnuclide << " with id " << fdsid << " ref: " << fdsref << " Pub: " << fpub << " Date: " << fdate
75 << " at position " << fposition.first << " " << fposition.second << std::endl;
76}
void print(std::ostream &) const override
virtual void analyse_record() override
analyse the record content
virtual bool set_record(const tkstring &_record) override
define the record from a string
std::pair< int, int > fposition
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....
Definition tkstring.h:31
Definition tklog.cpp:16