-
Notifications
You must be signed in to change notification settings - Fork 0
/
TraceSequence.h
63 lines (50 loc) · 1.6 KB
/
TraceSequence.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef TraceSequence_H
#define TraceSequence_H
/*#include <list>
#include <iostream>*/
#include "lib/list.h"
#include "KMF4C.h"
/*#include <microframework/api/trace/ModelTrace.h>*/
#include "ModelTrace.h"
/*#include <microframework/api/KMFFactory.h>
#include <microframework/api/utils/KevoreeException.h>*/
/**
* Author: fco.ja.ac@gmail.com
* Date: 16/12/14
* Time: 16:56
*/
typedef struct _TraceSequence TraceSequence;
typedef struct _ContainerRoot ContainerRoot;
typedef TraceSequence* (*fptrPopulate)(TraceSequence*, list_t);
typedef void (*fptrAppend)(TraceSequence*, TraceSequence*);
typedef char *(*fptrTracesToString)(TraceSequence*);
typedef struct _TraceSequence {
/*LIST(traces_list);*/
void *traces_list_list;
list_t traces_list;
fptrAppend append;
fptrPopulate populate;
fptrTracesToString toString;
fptrDelete delete;
} TraceSequence;
TraceSequence *new_TraceSequence(void);
void delete_TraceSequence(void *const this);
void TraceSequence_append(TraceSequence *const this, TraceSequence *seq);
TraceSequence *TraceSequence_populate(TraceSequence *const this, list_t addTraces);
char *TraceSequence_toString(TraceSequence *const this);
/*class TraceSequence
{
public:
TraceSequence();
~TraceSequence();
TraceSequence* populate(list<ModelTrace*> *addtraces);
void append(TraceSequence *seq);
TraceSequence* populateFromString(string addtracesTxt);
TraceSequence* populateFromStream(istream &inputStream );
string exportToString();
string toString ();
void reverse();
list<ModelTrace*> traces;
KMFFactory *factory;
};*/
#endif