XML for set files - Alex
[terminatorX.git] / src / tX_event.h
index be62fecf1ec5cdf3b30cf3b07bfe7da0d0fd1146..934859c06e2c3b197e002b5a1275378d5b5a63de 100644 (file)
 #include "tX_seqpar.h"
 #include "tX_vtt.h"
 #include <stdio.h>
+#include <glib.h>
 #include "tX_types.h"
 
+#include <libxml/xmlmemory.h>
+#include <libxml/parser.h>
+
 class tX_event
 {
        private:
        float                   value;
-       u_int32_t               timestamp;
+       guint32                 timestamp;
        tX_seqpar               *sp;
        
        public:
-       tX_event(u_int32_t time, float val, tX_seqpar *sp_in)
+       tX_event(guint32 time, float val, tX_seqpar *sp_in)
                {
                        timestamp=time;
                        value=val;
                        sp=sp_in;
                }
+#ifdef ENABLE_TX_LEGACY                
        tX_event(FILE *input);
-       void store(FILE *output);
+#endif         
+       tX_event(xmlDocPtr, xmlNodePtr);
+       void store(FILE *output, char *indent);
 
        tX_seqpar *get_sp() { return sp; }
-       u_int32_t get_timestamp() { return timestamp; }
+       guint32 get_timestamp() { return timestamp; }
        float get_value() { return value; }
        void set_value(float val) { value=val; }