Nest namespaces.

This commit is contained in:
tastytea 2019-10-30 08:06:12 +01:00
parent 382c35856e
commit 32cf647131
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
8 changed files with 16 additions and 40 deletions

View File

@ -23,9 +23,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
namespace remwharead namespace remwharead::Export
{
namespace Export
{ {
using std::string; using std::string;
@ -68,7 +66,6 @@ private:
//! Get ISO-8601 time from Database::entry. //! Get ISO-8601 time from Database::entry.
string get_time(const Database::entry &entry) const; string get_time(const Database::entry &entry) const;
}; };
} // namespace Export } // namespace remwharead::Export
} // namespace remwharead
#endif // REMWHAREAD_EXPORT_ADOC_HPP #endif // REMWHAREAD_EXPORT_ADOC_HPP

View File

@ -19,9 +19,7 @@
#include "export.hpp" #include "export.hpp"
namespace remwharead namespace remwharead::Export
{
namespace Export
{ {
/*! /*!
* @brief Export as Netscape bookmark file. * @brief Export as Netscape bookmark file.
@ -37,7 +35,6 @@ namespace Export
void print() const override; void print() const override;
}; };
} // namespace Export } // namespace remwharead::Export
} // namespace remwharead
#endif // REMWHAREAD_EXPORT_BOOKMARKS_HPP #endif // REMWHAREAD_EXPORT_BOOKMARKS_HPP

View File

@ -20,9 +20,7 @@
#include "export.hpp" #include "export.hpp"
#include <string> #include <string>
namespace remwharead namespace remwharead::Export
{
namespace Export
{ {
using std::string; using std::string;
@ -44,7 +42,6 @@ namespace Export
//! replaces " with "". //! replaces " with "".
string quote(string field) const; string quote(string field) const;
}; };
} // namespace Export } // namespace remwharead::Export
} // namespace remwharead
#endif // REMWHAREAD_EXPORT_CSV_HPP #endif // REMWHAREAD_EXPORT_CSV_HPP

View File

@ -21,9 +21,7 @@
#include <iostream> #include <iostream>
#include <list> #include <list>
namespace remwharead namespace remwharead::Export
{
namespace Export
{ {
using std::list; using std::list;
using std::ostream; using std::ostream;
@ -71,7 +69,6 @@ protected:
*/ */
list<Database::entry> sort_entries(list<Database::entry> entries) const; list<Database::entry> sort_entries(list<Database::entry> entries) const;
}; };
} // namespace Export } // namespace remwharead::Export
} // namespace remwharead
#endif // REMWHAREAD_EXPORT_EXPORT_HPP #endif // REMWHAREAD_EXPORT_EXPORT_HPP

View File

@ -20,9 +20,7 @@
#include "export.hpp" #include "export.hpp"
#include <string> #include <string>
namespace remwharead namespace remwharead::Export
{
namespace Export
{ {
using std::string; using std::string;
@ -40,7 +38,6 @@ public:
void print() const override; void print() const override;
}; };
} // namespace Export } // namespace remwharead::Export
} // namespace remwharead
#endif // REMWHAREAD_EXPORT_JSON_HPP #endif // REMWHAREAD_EXPORT_JSON_HPP

View File

@ -20,9 +20,7 @@
#include <string> #include <string>
#include "export.hpp" #include "export.hpp"
namespace remwharead namespace remwharead::Export
{
namespace Export
{ {
using std::string; using std::string;
@ -40,7 +38,6 @@ public:
void print() const override; void print() const override;
}; };
} // namespace Export } // namespace remwharead::Export
} // namespace remwharead
#endif // REMWHAREAD_EXPORT_RSS_HPP #endif // REMWHAREAD_EXPORT_RSS_HPP

View File

@ -19,9 +19,7 @@
#include "export.hpp" #include "export.hpp"
namespace remwharead namespace remwharead::Export
{
namespace Export
{ {
/*! /*!
* @brief Export as simple list. * @brief Export as simple list.
@ -36,7 +34,6 @@ public:
using ExportBase::ExportBase; using ExportBase::ExportBase;
void print() const override; void print() const override;
}; };
} // namespace Export } // namespace remwharead::Export
} // namespace remwharead
#endif // REMWHAREAD_EXPORT_SIMPLE_HPP #endif // REMWHAREAD_EXPORT_SIMPLE_HPP

View File

@ -17,9 +17,7 @@
#include "export/export.hpp" #include "export/export.hpp"
#include <algorithm> #include <algorithm>
namespace remwharead namespace remwharead::Export
{
namespace Export
{ {
ExportBase::ExportBase(const list<Database::entry> &entries, ostream &out) ExportBase::ExportBase(const list<Database::entry> &entries, ostream &out)
: _entries(sort_entries(entries)) : _entries(sort_entries(entries))
@ -37,5 +35,4 @@ ExportBase::sort_entries(list<Database::entry> entries) const
return entries; return entries;
} }
} // namespace Export } // namespace remwharead::Export
} // namespace remwharead