TkN 2.1
Toolkit for Nuclei
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 More...
 
std::vector< tkensdf_ident_rec > * get_datasets ()
 get access to the identification records More...
 
bool next_record (tkensdf_ident_rec *_dataset, tkstring &record)
 get the next record of the selected data set More...
 
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 More...
 
void print_datasets ()
 print the list of loaded data sets for the current nucleus and data type More...
 
void print_record_counters ()
 print record counters More...
 
void reset_record_counter ()
 reset the record counters More...
 

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 165 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 177 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 152 of file tkensdf_reader.cpp.

◆ print_record_counters()

void print_record_counters ( )

print record counters

Definition at line 194 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: