From 1afc9f7fe4f21b5f7e689a6869c1336209426f1e Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 5 Aug 2019 23:28:43 +0200 Subject: [PATCH] 2019-08-05 --- docs/adoc_8hpp_source.html | 14 ++-- docs/annotated.html | 14 +++- docs/bookmarks_8hpp_source.html | 12 +-- docs/classes.html | 20 +++-- docs/classremwharead_1_1Database.html | 3 +- ...classremwharead_1_1Export_1_1AsciiDoc.html | 5 +- ...lassremwharead_1_1Export_1_1Bookmarks.html | 5 +- docs/classremwharead_1_1Export_1_1CSV.html | 5 +- ...assremwharead_1_1Export_1_1ExportBase.html | 5 +- docs/classremwharead_1_1Export_1_1Simple.html | 5 +- docs/classremwharead_1_1URI.html | 3 +- docs/csv_8hpp_source.html | 12 +-- .../dir_a26cd56a311ed2c6b00868ab8167f874.html | 81 +++++++++++++++++++ .../dir_d44c64559bbebec7f509842c48db8b23.html | 3 + docs/export_8hpp_source.html | 10 +-- docs/files.html | 20 +++-- docs/functions.html | 13 +++ docs/functions_func.html | 13 +++ docs/menudata.js | 1 + docs/search/all_0.js | 3 +- docs/search/all_1.js | 2 +- docs/search/all_2.js | 5 +- docs/search/all_3.js | 2 +- docs/search/all_4.js | 6 +- docs/search/all_5.js | 2 +- docs/search/all_6.js | 2 +- docs/search/all_7.js | 3 +- docs/search/all_8.js | 5 +- docs/search/all_9.js | 5 +- docs/search/all_a.js | 3 +- docs/search/all_b.js | 6 +- docs/search/all_c.js | 7 +- docs/search/all_d.js | 4 +- docs/search/all_e.html | 30 +++++++ docs/search/all_e.js | 5 ++ docs/search/classes_0.js | 2 +- docs/search/classes_1.js | 2 +- docs/search/classes_2.js | 2 +- docs/search/classes_3.js | 2 +- docs/search/functions_2.js | 1 + docs/search/functions_7.js | 4 +- docs/search/functions_8.js | 5 +- docs/search/functions_9.js | 5 +- docs/search/functions_a.html | 30 +++++++ docs/search/functions_a.js | 5 ++ docs/search/searchdata.js | 6 +- docs/search_8hpp_source.html | 2 +- docs/simple_8hpp_source.html | 12 +-- docs/sqlite_8hpp_source.html | 8 +- docs/time_8hpp_source.html | 2 +- docs/types_8hpp.html | 3 +- docs/types_8hpp_source.html | 4 +- docs/uri_8hpp_source.html | 6 +- 53 files changed, 323 insertions(+), 112 deletions(-) create mode 100644 docs/dir_a26cd56a311ed2c6b00868ab8167f874.html create mode 100644 docs/search/all_e.html create mode 100644 docs/search/all_e.js create mode 100644 docs/search/functions_a.html create mode 100644 docs/search/functions_a.js diff --git a/docs/adoc_8hpp_source.html b/docs/adoc_8hpp_source.html index 5f6b3eb..d73b89e 100644 --- a/docs/adoc_8hpp_source.html +++ b/docs/adoc_8hpp_source.html @@ -5,7 +5,7 @@ -remwharead: src/lib/export/adoc.hpp Source File +remwharead: include/export/adoc.hpp Source File @@ -62,7 +62,7 @@ $(function() {
@@ -70,11 +70,11 @@ $(function() {
adoc.hpp
-
1 /* This file is part of remwharead.
2  * Copyright © 2019 tastytea <tastytea@tastytea.de>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef REMWHAREAD_ADOC_HPP
18 #define REMWHAREAD_ADOC_HPP
19 
20 #include <map>
21 #include <string>
22 #include <vector>
23 #include "sqlite.hpp"
24 #include "export.hpp"
25 
26 namespace remwharead
27 {
28 namespace Export
29 {
30  using std::string;
31 
33  class AsciiDoc : protected ExportBase
34  {
35  public:
37 
38  void print() const override;
39 
40  private:
41  using tagmap = std::map<string,vector<Database::entry>>;
42  using replacemap = const std::map<const string, const string>;
43 
45  const string replace(string text, const replacemap &replacements) const;
46 
48  const string replace_in_tag(const string &text) const;
49 
51  const string replace_in_title(const string &text) const;
52 
54  const string replace_in_uri(const string &text) const;
55 
57  void print_tags(const tagmap &tags) const;
58 
60  const string get_day(const Database::entry &entry) const;
61 
63  const string get_time(const Database::entry &entry) const;
64  };
65 }
66 }
67 
68 #endif // REMWHAREAD_ADOC_HPP
ExportBase(const vector< Database::entry > &entries, ostream &out=cout)
Export vector of Database::entry.
Definition: export.cpp:24
-
Export as AsciiDoc document.
Definition: adoc.hpp:33
-
Base class for exports.
Definition: export.hpp:33
-
Describes a database entry.
Definition: sqlite.hpp:40
-
Definition: search.cpp:23
+
1 /* This file is part of remwharead.
2  * Copyright © 2019 tastytea <tastytea@tastytea.de>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef REMWHAREAD_ADOC_HPP
18 #define REMWHAREAD_ADOC_HPP
19 
20 #include <map>
21 #include <string>
22 #include <vector>
23 #include "sqlite.hpp"
24 #include "export.hpp"
25 
26 namespace remwharead
27 {
28 namespace Export
29 {
30  using std::string;
31 
39  class AsciiDoc : protected ExportBase
40  {
41  public:
43 
44  void print() const override;
45 
46  private:
47  using tagmap = std::map<string,vector<Database::entry>>;
48  using replacemap = const std::map<const string, const string>;
49 
51  const string replace(string text, const replacemap &replacements) const;
52 
54  const string replace_in_tag(const string &text) const;
55 
57  const string replace_in_title(const string &text) const;
58 
60  const string replace_in_uri(const string &text) const;
61 
63  void print_tags(const tagmap &tags) const;
64 
66  const string get_day(const Database::entry &entry) const;
67 
69  const string get_time(const Database::entry &entry) const;
70  };
71 }
72 }
73 
74 #endif // REMWHAREAD_ADOC_HPP
ExportBase(const vector< Database::entry > &entries, ostream &out=cout)
Export vector of Database::entry.
Definition: export.cpp:24
+
Export as AsciiDoc document.
Definition: adoc.hpp:39
+
Base class for exports.
Definition: export.hpp:39
+
Describes a database entry.
Definition: sqlite.hpp:46
+
Definition: bookmarks.cpp:22
void print() const override
Print output to std::ostream.
diff --git a/docs/annotated.html b/docs/annotated.html index 7b2fdbd..c5ab386 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -69,10 +69,16 @@ $(function() {
Here are the classes, structs, unions and interfaces with brief descriptions:
[detail level 123]
- - - - + + + + + + + + + +
 Nremwharead
 CDatabaseStore and retrieve files from/to SQLite
 CentryDescribes a database entry
 Chtml_extractA processed HTML page
 CURIDownload, archive and process an URI
 NExport
 CAsciiDocExport as AsciiDoc document
 CBookmarksExport as Netscape bookmark file
 CCSVExport as Comma Separated Values
 CExportBaseBase class for exports
 CSimpleExport as simple list
 CDatabaseStore and retrieve files from/to SQLite
 CentryDescribes a database entry
 Chtml_extractA processed HTML page
 CURIDownload, archive and process an URI
diff --git a/docs/bookmarks_8hpp_source.html b/docs/bookmarks_8hpp_source.html index f3cb7fd..f8c8da4 100644 --- a/docs/bookmarks_8hpp_source.html +++ b/docs/bookmarks_8hpp_source.html @@ -5,7 +5,7 @@ -remwharead: src/lib/export/bookmarks.hpp Source File +remwharead: include/export/bookmarks.hpp Source File @@ -62,7 +62,7 @@ $(function() {
@@ -70,11 +70,11 @@ $(function() {
bookmarks.hpp
-
1 /* This file is part of remwharead.
2  * Copyright © 2019 tastytea <tastytea@tastytea.de>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef REMWHAREAD_BOOKMARKS_HPP
18 #define REMWHAREAD_BOOKMARKS_HPP
19 
20 #include "export.hpp"
21 
22 namespace remwharead
23 {
24 namespace Export
25 {
27  class Bookmarks : protected ExportBase
28  {
29  public:
31  virtual void print() const override;
32  };
33 }
34 }
35 
36 #endif // REMWHAREAD_BOOKMARKS_HPP
ExportBase(const vector< Database::entry > &entries, ostream &out=cout)
Export vector of Database::entry.
Definition: export.cpp:24
+
1 /* This file is part of remwharead.
2  * Copyright © 2019 tastytea <tastytea@tastytea.de>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef REMWHAREAD_BOOKMARKS_HPP
18 #define REMWHAREAD_BOOKMARKS_HPP
19 
20 #include "export.hpp"
21 
22 namespace remwharead
23 {
24 namespace Export
25 {
33  class Bookmarks : protected ExportBase
34  {
35  public:
37  virtual void print() const override;
38  };
39 }
40 }
41 
42 #endif // REMWHAREAD_BOOKMARKS_HPP
ExportBase(const vector< Database::entry > &entries, ostream &out=cout)
Export vector of Database::entry.
Definition: export.cpp:24
virtual void print() const override
Print output to std::ostream.
Definition: bookmarks.cpp:29
-
Base class for exports.
Definition: export.hpp:33
-
Definition: search.cpp:23
-
Export as Netscape bookmark file.
Definition: bookmarks.hpp:27
+
Base class for exports.
Definition: export.hpp:39
+
Definition: bookmarks.cpp:22
+
Export as Netscape bookmark file.
Definition: bookmarks.hpp:33
-
d | e | h | u
+
a | b | c | d | e | h | s | u
- - + + + + +
  d  
+
  a  
+
  c  
  e  
-
  h  
-
  u  
+
  s  
Database (remwharead)   Database::entry (remwharead)   html_extract (remwharead)   URI (remwharead)   
AsciiDoc (remwharead::Export)   CSV (remwharead::Export)   Database::entry (remwharead)   Simple (remwharead::Export)   
  b  
+
  d  
+
ExportBase (remwharead::Export)   
  u  
+
  h  
+
Bookmarks (remwharead::Export)   Database (remwharead)   URI (remwharead)   
html_extract (remwharead)   
-
d | e | h | u
+
a | b | c | d | e | h | s | u