source: GTP/trunk/Lib/Vis/Preprocessing/src/Exporter.cpp @ 863

Revision 863, 517 bytes checked in by mattausch, 18 years ago (diff)

working on preprocessor integration
added iv stuff

Line 
1
2#include "X3dExporter.h"
3#include "VrmlExporter.h"
4
5namespace GtpVisibilityPreprocessor {
6
7Exporter *
8Exporter::GetExporter(const string filename)
9{
10  Exporter *exporter = NULL;
11
12  if (strstr(filename.c_str(), ".x3d"))
13  {
14          exporter = new X3dExporter(filename);
15  }
16  else if (strstr(filename.c_str(), ".wrl"))
17  {
18          exporter = new VrmlExporter(filename);
19  }
20  else
21  {
22          cerr<<"Error: Currently unsuported export format, filename " << filename << endl;
23  }
24
25  return exporter;
26}
27
28}
Note: See TracBrowser for help on using the repository browser.