15 #ifndef GENVTX_FROM_FILE_VG_H 16 #define GENVTX_FROM_FILE_VG_H 1 57 virtual void initialize(const ::datatools::properties &,
93 std::string _filename_;
99 std::ifstream _source_;
113 #endif // GENVTX_FROM_FILE_VG_H virtual bool has_next_vertex() const
Check if at least one more vertex is available.
const std::string & get_filename() const
Generate vertex from a file storing precomputed vertexes.
Definition: from_file_vg.h:28
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
void _open_source()
Open the source file.
static double default_time_unit()
void set_length_unit(double lu_)
double get_length_unit() const
virtual void _shoot_vertex(::mygsl::rng &random_, ::geomtools::vector_3d &vertex_)
Load vertex from the source.
void set_time_unit(double tu_)
virtual void _shoot_vertex_and_time(::mygsl::rng &random_, ::geomtools::vector_3d &vertex_, double &time_)
Load vertex/time from the source.
virtual ~from_file_vg()
Destructor.
virtual void initialize(const ::datatools::properties &, ::datatools::service_manager &, ::genvtx::vg_dict_type &)
Initialization.
double get_time_unit() const
void _close_source()
Close the source file.
virtual void reset()
Reset.
virtual bool is_initialized() const
Check initialization status.
from_file_vg from_file_vertex_generator
Definition: from_file_vg.h:109
from_file_vg()
Constructor.
The base interface class for all vertex generator classes.
Definition: i_vertex_generator.h:59
void _read_next()
Read the next vertex[/time] entry.
#define GENVTX_VG_REGISTRATION_INTERFACE(GENVTX_CLASS_NAME)
Definition: vg_macros.h:46
bool _has_next()
Check for a next vertex[/time] entry.
void set_filename(const std::string &)
std::map< std::string, vg_entry_type > vg_dict_type
Definition: vg_tools.h:125
static double default_length_unit()
Pseudo random number generator.
Definition: rng.h:53