blob: 82e0f5aa95c4b74f15dc43278628f9fde61d3c4c (
plain)
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
|
#include "io/serializer.h"
#include "diagram/statement.h"
#include "debugtools.h"
Serializer::Serializer()
{
}
Serializer::~Serializer()
{
}
bool Serializer::write(const samb::Structogram &structogram, const QFileInfo &into)
{
for (auto it = structogram.begin(); it != structogram.end(); ++it) {
switch (it->type) {
case samb::Statement::Type::PROCESS:
break;
case samb::Statement::Type::DECISION:
case samb::Statement::Type::SWITCH:
case samb::Statement::Type::PARALLEL:
break;
case samb::Statement::Type::WHILE:
case samb::Statement::Type::UNTIL:
break;
case samb::Statement::Type::SCOPE:
break;
default:
debug_err("invalid statement type");
break;
}
}
return true;
}
|