diff options
| author | Jan Tuomi <jan-sebastian.tuomi@aalto.fi> | 2016-10-09 12:56:59 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan-sebastian.tuomi@aalto.fi> | 2016-10-09 14:50:24 +0300 |
| commit | 7c9146efca9b565777e1093e65272f710ae5d0d9 (patch) | |
| tree | 7077241a78ee1f8d9a7044b08eb4714ad47f4020 /editor.h | |
| parent | 88996781bd89825501ae18a1ce6e7744e767db86 (diff) | |
Add editor content outputting
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |
