aboutsummaryrefslogtreecommitdiffstats
path: root/editor.h
blob: 43cfe77c63bcfb5b73bfe5674960d4e1973595a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef EDITOR_H
#define EDITOR_H
#include <string>
#include <iostream>
#include <vector>

class Editor {
    public:
        Editor(std::vector<std::string>* contents);
        int run_editor();
    private:
        std::vector<std::string>* m_contents;
        int m_current_line;

        int print_contents_on_line(int line) const;
};

#endif