VR-Forces 4.2 Class Documentation
bhaveFactories.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
10 #include <bhaveSim/vrfTaskAgent.h>
11 #include <bhaveSim/vrfEntityBot.h>
12 #include <boost/function.hpp>
13 
14 namespace BHAVE
15 {
16  //Bot Definitions. Tasks are in VRF-TaskAgent
17  const char BHAVE_BOT[] = "entity-bot";
18  const char BHAVE_LIFEFORM_BOT[] = "lifeform-bot";
19  const char BHAVE_GROUND_PLATFORM_BOT[] = "ground-platform-bot";
20 
21 typedef boost::function< DtVrfTaskAgent*
22  (DtVrfEntityBot*, const char*, const char*, const char*, const char*, const char*, const char*)> DtTaskAgentFactory;
23 
27 
29 {
30 public:
32  static DtBhaveFactories* instance();
33 
36  virtual void initializeTaskFactory();
37  virtual void initializeBotFactory();
38 
41 
42  std::map<std::string, DtTaskAgentFactory>& taskFactory() { return myTaskFactory;}
43 
46  std::map<std::string, boost::function< Kaim::Bot*()> >& botFactory() { return myBotFactory;}
47 
48 protected:
49 
51 
52  std::map<std::string, DtTaskAgentFactory> myTaskFactory;
53  std::map<std::string, boost::function< Kaim::Bot*()> > myBotFactory;
54 
56  virtual ~DtBhaveFactories();
57 private:
58 
61 
64 };
65 
66 }
67 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)