root/trunk/gsdl/src/oaiservr/oaidispatcher.h @ 8241

Revision 8241, 0.6 KB (checked in by kjdon, 15 years ago)

some changes to get it compiling on windows

  • Property svn:keywords set to Author Date Id Revision
Line 
1#include "oaiaction.h"
2
3#if defined(GSDL_USE_OBJECTSPACE)
4#  include <ospace\std\map>
5#elif defined(GSDL_USE_STL_H)
6#  include <map.h>
7#else
8#  include <map>
9#endif
10
11typedef map<text_t, oaiaction *, lttext_t> oaiactionmap;
12
13class oaidispatcher
14{
15 private:
16  oaiactionmap actions;
17  oaiconfig   *configuration;
18 public:
19  oaidispatcher();
20  ~oaidispatcher();
21  void setConfiguration(oaiconfig *configuration) { this->configuration = configuration; }
22  void addAction(oaiaction *thisAction);
23  void doAction(ostream &stream, recptproto *protocol, oaiargs &args);
24};
Note: See TracBrowser for help on using the browser.