Files
TinyORM/include/orm/query/processors/processor.hpp
silverqx fb20fd8b9f cleanup, macro guards, inline
- removed expression.cpp, Query::Expression is header only now
 - fixed macro guard names
 - inline from defn. to decl.
2022-01-13 11:02:07 +01:00

41 lines
962 B
C++

#pragma once
#ifndef ORM_QUERY_PROCESSORS_PROCESSOR_HPP
#define ORM_QUERY_PROCESSORS_PROCESSOR_HPP
#include "orm/macros/systemheader.hpp"
TINY_SYSTEM_HEADER
#include <QStringList>
#include <QtGlobal>
#include "orm/macros/commonnamespace.hpp"
#include "orm/macros/export.hpp"
class QSqlQuery;
TINYORM_BEGIN_COMMON_NAMESPACE
namespace Orm::Query::Processors
{
/*! Base processor class, process sql result. */
class SHAREDLIB_EXPORT Processor
{
Q_DISABLE_COPY(Processor)
public:
/*! Default constructor. */
inline Processor() = default;
/*! Virtual destructor, this class is used so can not be pure. */
inline virtual ~Processor() = default;
/*! Process the results of a column listing query. */
virtual QStringList processColumnListing(QSqlQuery &query) const;
};
} // namespace Orm::Query::Processors
TINYORM_END_COMMON_NAMESPACE
#endif // ORM_QUERY_PROCESSORS_PROCESSOR_HPP