Nest namespaces.
This commit is contained in:
parent
382c35856e
commit
32cf647131
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue