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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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