/**
* @file FFEvent.cpp
* @brief TODO: add a brief description.
* @copyright Copyright (C) 2025 ForeFire, Fire Team, SPE, CNRS/Universita di Corsica.
* @license This program is free software; See LICENSE file for details. (See LICENSE file).
* @author JeanBaptiste Filippi 2025
*/
#include "FFEvent.h"
namespace libforefire {
FFEvent::FFEvent() {
eventTime = 0.;
}
FFEvent::FFEvent(ForeFireAtom* m) {
eventTime = m->getTime();
atom = m;
input = true;
output = true;
}
FFEvent::FFEvent(ForeFireAtom* m, const string& type) {
eventTime = m->getTime();
atom = m;
input = false;
output = false;
if ( type == "input" ) {
input = true;
return;
} else if ( type == "output" ) {
output = true;
return;
} else if ( type == "all" ) {
input = true;
output = true;
return;
} else if ( type == "none" ) {
// nothing to do
return;
} else {
cout