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