From 4a55ff9bf29dcc11e414d658208a411fce810121 Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Sun, 5 Oct 2025 21:41:26 -0400 Subject: [PATCH] Revamp Chronomenon: ChronoFrame and ChronoSeq are new classes Chronomenon is now the base class category for stored raw stim data. --- smocore/include/chronoFrame.h | 32 ++++++++++++++++++++++++++++++++ smocore/include/chronomenon.h | 24 +++--------------------- 2 files changed, 35 insertions(+), 21 deletions(-) create mode 100644 smocore/include/chronoFrame.h diff --git a/smocore/include/chronoFrame.h b/smocore/include/chronoFrame.h new file mode 100644 index 0000000..0e83154 --- /dev/null +++ b/smocore/include/chronoFrame.h @@ -0,0 +1,32 @@ +#ifndef _CHRONO_FRAME_H +#define _CHRONO_FRAME_H + +#include +#include +#include +#include + +namespace smo { + +class ChronoFrame +: public Chronomenon, public MentalEntity +{ +public: + /** FIXME: + * May be better to use a std::map here, where the key is a kind of ID + * assigned to the stimulus source. + */ + std::vector stimuli; +}; + +class ChronoSeq +: public Chronomenon, public MentalEntity +{ +public: + std::vector> frames; +}; + +} // namespace smo + +#endif // _CHRONO_FRAME_H + diff --git a/smocore/include/chronomenon.h b/smocore/include/chronomenon.h index 5627f2d..5940d76 100644 --- a/smocore/include/chronomenon.h +++ b/smocore/include/chronomenon.h @@ -1,30 +1,12 @@ #ifndef _CHRONOMENON_H #define _CHRONOMENON_H -#include -#include -#include +namespace smo { class Chronomenon -: public MentalEntity { -public: - class Timestamp - { - uintptr_t value; - }; - - class Duration - { - uintptr_t value; - }; - -public: - Chronomenon extract(Timestamp start, Duration len); - -public: - std::vector qualia; }; -#endif +} // namespace smo +#endif // _CHRONOMENON_H