TkN 2.3
Toolkit for Nuclei
Loading...
Searching...
No Matches
tkensdf_reader Class Reference

Main class dedicated to ENSDF ascii files reading. More...

Detailed Description

Main class dedicated to ENSDF ascii files reading.

Definition at line 50 of file tkensdf_reader.h.

#include <tkensdf_reader.h>

Public Member Functions

 tkensdf_reader (const tkstring &_input_folder)
 
virtual ~tkensdf_reader ()=default
 
bool first_record (tkensdf_ident_rec *_dataset, tkstring &record)
 move in the current file to the first record of the selected data set
 
std::vector< tkensdf_ident_rec > * get_datasets ()
 get access to the identification records
 
bool next_record (tkensdf_ident_rec *_dataset, tkstring &record)
 get the next record of the selected data set
 
bool open_nuc (const tkstring &_nuc_name, const ensdf_data_type &_ftype=kensdf)
 open the file for the slected nucleus and data type, and extract the available data sets
 
void print_datasets ()
 print the list of loaded data sets for the current nucleus and data type
 
void print_record_counters ()
 print record counters
 
void reset_record_counter ()
 reset the record counters
 

Constructor & Destructor Documentation

◆ tkensdf_reader()

tkensdf_reader ( const tkstring & _input_folder)
inline

Definition at line 78 of file tkensdf_reader.h.

◆ ~tkensdf_reader()

virtual ~tkensdf_reader ( )
virtualdefault

Member Function Documentation

◆ first_record()

bool first_record ( tkensdf_ident_rec * _dataset,
tkstring & record )

move in the current file to the first record of the selected data set

Definition at line 163 of file tkensdf_reader.cpp.

◆ get_datasets()

std::vector< tkensdf_ident_rec > * get_datasets ( )
inline

get access to the identification records

Definition at line 93 of file tkensdf_reader.h.

◆ next_record()

bool next_record ( tkensdf_ident_rec * _dataset,
tkstring & record )

get the next record of the selected data set

Definition at line 175 of file tkensdf_reader.cpp.

◆ open_nuc()

bool open_nuc ( const tkstring & _nuc_name,
const ensdf_data_type & _ftype = kensdf )

open the file for the slected nucleus and data type, and extract the available data sets

Definition at line 54 of file tkensdf_reader.cpp.

◆ print_datasets()

void print_datasets ( )

print the list of loaded data sets for the current nucleus and data type

Definition at line 150 of file tkensdf_reader.cpp.

◆ print_record_counters()

void print_record_counters ( )

print record counters

Definition at line 192 of file tkensdf_reader.cpp.

◆ reset_record_counter()

void reset_record_counter ( )
inline

reset the record counters

Definition at line 88 of file tkensdf_reader.h.


The documentation for this class was generated from the following files: