mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
Define code style and format all source file using clang-format-14
except those placed in 3rdparty directories.
This commit is contained in:
@@ -4,29 +4,32 @@
|
||||
#include "lrattribsabstractfactory.h"
|
||||
#include "lrexporterintf.h"
|
||||
|
||||
namespace LimeReport{
|
||||
namespace LimeReport {
|
||||
|
||||
typedef ReportExporterInterface* (*CreateExporter)(ReportEnginePrivate* parent);
|
||||
|
||||
struct ExporterAttribs{
|
||||
struct ExporterAttribs {
|
||||
QString m_alias;
|
||||
QString m_tag;
|
||||
ExporterAttribs(){}
|
||||
ExporterAttribs(const QString& alias, const QString& tag):m_alias(alias),m_tag(tag){}
|
||||
bool operator==( const ExporterAttribs &right) const {
|
||||
return (m_alias==right.m_alias) && (m_tag==right.m_tag);
|
||||
ExporterAttribs() { }
|
||||
ExporterAttribs(const QString& alias, const QString& tag): m_alias(alias), m_tag(tag) { }
|
||||
bool operator==(const ExporterAttribs& right) const
|
||||
{
|
||||
return (m_alias == right.m_alias) && (m_tag == right.m_tag);
|
||||
}
|
||||
};
|
||||
|
||||
class ExportersFactory : public AttribsAbstractFactory<LimeReport::ReportExporterInterface, QString, CreateExporter, ExporterAttribs>
|
||||
{
|
||||
class ExportersFactory:
|
||||
public AttribsAbstractFactory<LimeReport::ReportExporterInterface, QString, CreateExporter,
|
||||
ExporterAttribs> {
|
||||
private:
|
||||
friend class Singleton<ExportersFactory>;
|
||||
|
||||
private:
|
||||
ExportersFactory(){}
|
||||
~ExportersFactory(){}
|
||||
ExportersFactory(const ExportersFactory&){}
|
||||
ExportersFactory& operator = (const ExportersFactory&){return *this;}
|
||||
ExportersFactory() { }
|
||||
~ExportersFactory() { }
|
||||
ExportersFactory(const ExportersFactory&) { }
|
||||
ExportersFactory& operator=(const ExportersFactory&) { return *this; }
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
||||
Reference in New Issue
Block a user