lines-are-beautiful  0.0
A C++ file API for the reMarkable e-ink tablet
Notebook.hpp
Go to the documentation of this file.
1 /* Copyright 2017-2018 Axel Huebl
2  *
3  * This file is part of lines-are-beautiful.
4  *
5  * lines-are-beautiful is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * lines-are-beautiful is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with lines-are-beautiful.
17  * If not, see <http://www.gnu.org/licenses/>.
18  */
19 
25 #pragma once
26 
27 #include <cstdint> // int8_t - int64_t
28 #include <string>
29 #include <list>
30 
31 #include "Page.hpp"
32 
33 
34 namespace rmlab
35 {
42  struct Notebook
43  {
47  int32_t npages;
48 
53  std::string filename;
54 
58  std::list< Page > pages;
59 
63  Notebook();
64 
71  Notebook( std::string const openFilename );
72  ~Notebook();
73 
74  void save( std::string const saveFilename );
75  };
76 }
Notebook()
Definition: Notebook.cpp:163
Definition: Layer.hpp:33
int32_t npages
Definition: Notebook.hpp:47
std::list< Page > pages
Definition: Notebook.hpp:58
std::string filename
Definition: Notebook.hpp:53
Definition: Notebook.hpp:42