From: stephan b. <sg...@us...> - 2004-12-25 19:56:48
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25972/include/pclasses Modified Files: Factory.h Log Message: typedef renamed, to follow PNamingConventions. Index: Factory.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Factory.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- Factory.h 25 Dec 2004 16:37:47 -0000 1.10 +++ Factory.h 25 Dec 2004 19:56:39 -0000 1.11 @@ -222,13 +222,13 @@ todo: implement proper functor support. */ - typedef ResultType ( *factory_func_type ) (); + typedef ResultType ( *FactoryFuncType ) (); /** Internal container type used for mapping keys to factories. */ - typedef std::map < key_type, factory_func_type > FactoryMap; + typedef std::map < key_type, FactoryFuncType > FactoryMap; /** @@ -284,7 +284,7 @@ value_type. See the FactoryCreateHook class for a factory which does this subtype-to-base conversion. */ - virtual void registerFactory( const key_type & key, factory_func_type fp ) + virtual void registerFactory( const key_type & key, FactoryFuncType fp ) { // CERR << "registerFactory("<<key<<",facfunc)\n"; factoryMap().insert( FactoryMap::value_type( key, fp ) ); @@ -345,7 +345,7 @@ typedef Factory< InterfaceT, Sharing::FactoryContext, std::string > ParentType; typedef typename ParentType::ResultType ResultType; - typedef typename ParentType::factory_func_type factory_func_type; + typedef typename ParentType::FactoryFuncType FactoryFuncType; virtual ~NamedTypeFactory(){} }; |