mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6106 Apply clang-format on AppFwk
This commit is contained in:
@@ -40,16 +40,19 @@
|
||||
#include <QString>
|
||||
|
||||
#define CAF_PDM_CODE_GENERATOR_HEADER_INIT \
|
||||
public: \
|
||||
public: \
|
||||
static const std::string& fileExtension();
|
||||
|
||||
#define CAF_PDM_CODE_GENERATOR_SOURCE_INIT(ClassName, FileExtension)\
|
||||
const std::string& ClassName::fileExtension() { static std::string ext = FileExtension; return ext;} \
|
||||
CAF_FACTORY_REGISTER(caf::PdmCodeGenerator, ClassName, std::string, ClassName::fileExtension())
|
||||
|
||||
|
||||
namespace caf {
|
||||
#define CAF_PDM_CODE_GENERATOR_SOURCE_INIT( ClassName, FileExtension ) \
|
||||
const std::string& ClassName::fileExtension() \
|
||||
{ \
|
||||
static std::string ext = FileExtension; \
|
||||
return ext; \
|
||||
} \
|
||||
CAF_FACTORY_REGISTER( caf::PdmCodeGenerator, ClassName, std::string, ClassName::fileExtension() )
|
||||
|
||||
namespace caf
|
||||
{
|
||||
class PdmObjectFactory;
|
||||
|
||||
//==================================================================================================
|
||||
@@ -58,10 +61,9 @@ class PdmObjectFactory;
|
||||
class PdmCodeGenerator
|
||||
{
|
||||
public:
|
||||
virtual QString generate(PdmObjectFactory* factory) const = 0;
|
||||
virtual QString generate( PdmObjectFactory* factory ) const = 0;
|
||||
};
|
||||
|
||||
|
||||
typedef Factory<PdmCodeGenerator, std::string> PdmCodeGeneratorFactory;
|
||||
|
||||
}
|
||||
} // namespace caf
|
||||
Reference in New Issue
Block a user