Change copyright and format the code using clang-format
This commit is contained in:
1 parent
a69c32bfbf
commit
8a60bb2766
122 files changed
+12950
-12139
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/* This file is a part of plaYUVer project
|
||||
* Copyright (C) 2014-2016 by Luis Lucas (luisfrlucas@gmail.com)
|
||||
* Copyright (C) 2014-2017 by Luis Lucas (luisfrlucas@gmail.com)
|
||||
* Joao Carreira (jfmcarreira@gmail.com)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -30,26 +30,23 @@
|
||||
// PlaYUVerLib
|
||||
#include "lib/PlaYUVerModuleIf.h"
|
||||
|
||||
#define REGISTER_MODULE(X) Register( "X", &(X::Create) );
|
||||
#define REGISTER_MODULE( X ) Register( "X", &( X::Create ) );
|
||||
|
||||
typedef PlaYUVerModuleIf* (*CreateModuleFn)( void );
|
||||
typedef std::map<const char *, CreateModuleFn> PlaYUVerModuleFactoryMap;
|
||||
typedef PlaYUVerModuleIf* ( *CreateModuleFn )( void );
|
||||
typedef std::map<const char*, CreateModuleFn> PlaYUVerModuleFactoryMap;
|
||||
|
||||
// Factory for creating instances of PlaYUVerModuleIf
|
||||
class PlaYUVerModuleFactory
|
||||
{
|
||||
private:
|
||||
private:
|
||||
PlaYUVerModuleFactory();
|
||||
PlaYUVerModuleFactory &operator=( const PlaYUVerModuleFactory & )
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
PlaYUVerModuleFactory& operator=( const PlaYUVerModuleFactory& ) { return *this; }
|
||||
PlaYUVerModuleFactoryMap m_FactoryMap;
|
||||
public:
|
||||
|
||||
public:
|
||||
~PlaYUVerModuleFactory();
|
||||
|
||||
static PlaYUVerModuleFactory *Get()
|
||||
static PlaYUVerModuleFactory* Get()
|
||||
{
|
||||
static PlaYUVerModuleFactory instance;
|
||||
return &instance;
|
||||
@@ -58,12 +55,8 @@ private:
|
||||
Void Register( const char* moduleName, CreateModuleFn pfnCreate );
|
||||
Bool RegisterDl( const char* dlName );
|
||||
|
||||
PlaYUVerModuleIf *CreateModule( const char *moduleName );
|
||||
PlaYUVerModuleFactoryMap& getMap()
|
||||
{
|
||||
return m_FactoryMap;
|
||||
}
|
||||
PlaYUVerModuleIf* CreateModule( const char* moduleName );
|
||||
PlaYUVerModuleFactoryMap& getMap() { return m_FactoryMap; }
|
||||
};
|
||||
|
||||
#endif // __PLAYUVERMODULESFACTORY_H__
|
||||
|
||||
#endif // __PLAYUVERMODULESFACTORY_H__
|
||||
Reference in new issue
Block a user