64#ifndef tkensdf_record_H
65#define tkensdf_record_H
69#include "tkdb_table.h"
78 enum record_type {
kident,
khistory,
kq_value,
kxref,
kcomment,
kparent,
knorm,
kprodnorm,
klevel,
kbeta,
kec,
kalpha,
kparticle,
kgamma,
kreference,
kend,
kunknown};
94 bool f_is_continuation_record =
false;
101 bool fisknown_woth_offset =
false;
179 virtual void clear();
180 virtual void print(std::ostream &)
const;
Decodding of the ENSDF records.
bool is_uncertain() const
check if the record is uncertain
bool decode_lifetime(const tkstring &_st, const tkstring &_st_ms)
decode a lifetime record
bool decode_energy(const tkstring &_st)
decode an anergy record
const tkstring & get_uncertain_record() const
get the record uncertain type
virtual void analyse_record()
analyse the record content, to be re implemented in all daughter classes
tkstring get_lifetime_metastable_str(const tkstring &_record) const
extract the lifetime part
void check_record_type()
check record type from its string
const tkstring & get_record()
get record
virtual void print(std::ostream &) const
virtual void add_comment_record(const tkstring &_comment_record, bool _is_continuation=false)
add a continuation record from a string
bool is_energy_offset()
to now if the energy is given with an offset
tkstring get_energy_str(const tkstring &_record) const
extract the energy part
virtual bool set_record(const tkstring &_record)
define the record from a string. Option false only checks if the record is an identification record
bool is_continuation_record()
to now if the record is a continuation record or not
tkstring fglobal_time_unit
virtual const tkstring & get_comment_record() const
get the continuation record
tkstring get_lifetime_str(const tkstring &_record) const
extract the lifetime part
const tkdb_table::measure_data_struct & get_energy() const
virtual void analyse_continuation_record()
analyse the continuation record
virtual void analyse_comment_record()
analyse the continuation record
const tkdb_table::measure_data_struct & get_lifetime() const
tkstring get_energy_offset()
get_energy_offset
virtual void add_continuation_record(const tkstring &_continuation_record)
add a continuation record from a string
record_type get_record_type()
get record type
virtual tkstring get_continuation_record()
get the continuation record
void set_offset(tkstring _offset)
set_energy_offset
bool is_comment()
to now if the record is a comment
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....
tkstring substr(size_type __pos=0, size_type __n=npos) const
Inlines.
data structure used to fill a tkmeasure object from the sqlite database