new struct `finger_cost`
[evolve-layout.git] / C / Layout.cpp
blob10c7113eef7c909c0b87a2f42441c886fe6919c8
1 #pragma once
3 #include <string>
5 class Layout {
6 public:
7 Layout(const std::string &s = "") {
8 this->layout.reserve(11*3+4); // 11 chars per row average + newlines
9 this->layout = s;
11 virtual ~Layout() {}
12 //Layout(const Layout &l) {}
13 //Layout &operator=(const Layout &l) {}
15 void addLine(const std::string &s) {
16 this->layout.append(s+"\n");
19 const std::string &toString() const {
20 return this->layout;
22 private:
23 std::string layout;