Hierarchical Edge Bundle 1.0
|
00001 #pragma once 00002 00003 #include <tinyxml.h> 00004 #include <string> 00005 #include <vector> 00006 #include <iostream> 00007 00008 using namespace std; 00009 00011 00016 class LoadData 00017 { 00018 public: 00022 LoadData(); 00026 virtual ~LoadData(){}; 00027 00033 static char* ConvertStringToChar(std::string string); 00039 std::string GetIntegerToString(int i); 00040 00041 protected: 00046 void ReadXMLFile(const char* file); 00051 LoadData(const char* file); 00057 virtual int attribsLoading(TiXmlElement* pElement, unsigned int indent) = 0; 00062 const char* getIndent( unsigned int numIndents ); 00063 static const unsigned int NUM_INDENTS_PER_SPACE = 2; 00064 00065 TiXmlDocument doc; 00066 bool loadOkay; 00067 };