aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7f70de6..83bba4c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,30 +1,14 @@
#include "diagram/Structogram.hpp"
-#include "diagram/Statement.hpp"
-#include "ui/AsciiRenderer.hpp"
#include <iostream>
#include <memory>
+
using namespace samb;
int main(int argc, char *argv[]) {
- Structogram st("Demo");
- AsciiRenderer renderer(st, 60);
-
- Structogram::iterator it = st.begin();
-
- auto first = Statement::makeStatement(Statement::Type::PROCESS);
- first->text = "Hello World";
-
- auto second = Statement::makeStatement(Statement::Type::PROCESS);
- second->text = "Hello World Again!";
-
- st.insert_after(it, first);
- ++it;
-
- st.insert_after(it, second);
- renderer.render();
+ Structogram st("Example");
return 0;
}