aboutsummaryrefslogtreecommitdiffstats
path: root/editor.h
diff options
context:
space:
mode:
authorJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-10-09 12:56:59 +0300
committerJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-10-09 14:50:24 +0300
commit7c9146efca9b565777e1093e65272f710ae5d0d9 (patch)
tree7077241a78ee1f8d9a7044b08eb4714ad47f4020 /editor.h
parent88996781bd89825501ae18a1ce6e7744e767db86 (diff)
Add editor content outputting
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/editor.h b/editor.h
index 491c3fb..43cfe77 100644
--- a/editor.h
+++ b/editor.h
@@ -2,13 +2,17 @@
#define EDITOR_H
#include <string>
#include <iostream>
+#include <vector>
class Editor {
public:
- Editor(std::string* contents);
+ Editor(std::vector<std::string>* contents);
int run_editor();
private:
- std::string* m_contents;
+ std::vector<std::string>* m_contents;
+ int m_current_line;
+
+ int print_contents_on_line(int line) const;
};
#endif