Application01/Source/Main.cpp
static const TTaskFactory GetTaskFactory(const std::string& taskFactoryKey)
{
   const auto& factoryMap = GetTaskFactoryMap();
   auto found = factoryMap.find(taskFactoryKey);
   if (found != factoryMap.end())
   {
      return found->second;
   }
   return nullptr;
}
//i don't want to have to know all of this in main, add a RegisterApplicationFactory? can that be done in a static lib? lets find out
i don't want to have to know all of this in main, add a RegisterApplicationFactory. can that be done in a static lib. lets find out
i don ' t want to have to know all of this in main add a RegisterApplicationFactory . can that be done in a static lib . lets find out
static const TTaskFactory GetTaskFactory(const std::string& taskFactoryKey)
{
   const auto& factoryMap = GetTaskFactoryMap();
   auto found = factoryMap.find(taskFactoryKey);
   if (found != factoryMap.end())
   {
      return found->second;
   }
   return nullptr;
}
static const TTaskFactory GetTaskFactory ( const std :: string & taskFactoryKey ) { const auto & factoryMap = GetTaskFactoryMap ( ) ; auto found = factoryMap . find ( taskFactoryKey ) ; if ( found != factoryMap . end ( ) ) { return found -> second ; } return nullptr ; }
i don't want to have to know all of this in main, add a RegisterApplicationFactory?
i don ' t want to have to know all of this in main add a RegisterApplicationFactory?