5 #include "container.hpp" 12 INFO(GenValue::summary());
13 INFO(GenFunction::summary());
17 ContainerSet containers;
18 virtual bool load_next() = 0;
19 virtual int get_events() = 0;
20 virtual int get_current_event() = 0;
23 void process(
bool silent=
false){
24 int events, current_event;
26 events = get_events();
27 if (!silent) std::cout << std::endl;
29 current_event = get_current_event();
30 if (!silent) std::cout <<
"\rprocessing event: " << current_event+1 <<
"/" << events << std::flush;
32 for(
auto con : containers){
36 if (!silent) std::cout <<
" Finished!" << std::endl;
39 virtual void save_all(){
40 for(
auto container : containers)
41 container.second->save();
45 if (containers[container->get_name()] !=
nullptr){
46 CRITICAL(
"Container with name \""+container->get_name()+
"\" already exists.", -1);
48 containers[container->get_name()] = container;
54 CRITICAL(
"Request for container \"" << container_name <<
"\" failed. Doesn't exist.", -1);
Definition: dataset.hpp:9
The namespace containing all filval classes and functions.
Definition: container.hpp:15