00001 #ifndef LOAD_DATA_H
00002 #define LOAD_DATA_H
00003
00004 #include <tinyxml.h>
00005 #include <string>
00006 #include <vector>
00007 #include <iostream>
00008 #include "vec3.h"
00009
00010 using namespace std;
00011
00013
00018 class LoadData
00019 {
00020 public:
00024 LoadData();
00025 virtual ~LoadData(){};
00026
00027
00028 static char* ConvertStringToChar(std::string string);
00029
00030 protected:
00031 LoadData(const char* file);
00032 virtual int attribsLoading(TiXmlElement* pElement, unsigned int indent) = 0;
00033 const char* getIndent( unsigned int numIndents );
00034 static const unsigned int NUM_INDENTS_PER_SPACE = 2;
00035
00036 TiXmlDocument doc;
00037 bool loadOkay;
00038 };
00039
00040 #endif