Hierarchical Edge Bundle 1.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
LoadData Class Reference

LoadData class. More...

#include <LoadData.h>

Inheritance diagram for LoadData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 LoadData ()
virtual ~LoadData ()
std::string GetIntegerToString (int i)

Static Public Member Functions

static char * ConvertStringToChar (std::string string)

Protected Member Functions

void ReadXMLFile (const char *file)
 LoadData (const char *file)
virtual int attribsLoading (TiXmlElement *pElement, unsigned int indent)=0
const char * getIndent (unsigned int numIndents)

Protected Attributes

TiXmlDocument doc
bool loadOkay

Static Protected Attributes

static const unsigned int NUM_INDENTS_PER_SPACE = 2

Detailed Description

LoadData class.

This class provides functions for saving and loading a XML file.

Author:
Michael Beham

Constructor & Destructor Documentation

LoadData::LoadData ( )

constructor:

virtual LoadData::~LoadData ( ) [inline, virtual]

dekonstruktor

LoadData::LoadData ( const char *  file) [protected]

This method reads a XML file

Parameters:
[constchar*] path to XML file

Member Function Documentation

virtual int LoadData::attribsLoading ( TiXmlElement *  pElement,
unsigned int  indent 
) [protected, pure virtual]

This method loads the attributes

Parameters:
pElement[TiXMLElement*] the XML element
indent[int] indent

Implemented in LoadXMLTree.

char * LoadData::ConvertStringToChar ( std::string  string) [static]

This method convert a string to a char*

Parameters:
string[std::string] input string
Returns:
[char*] output character array
const char * LoadData::getIndent ( unsigned int  numIndents) [protected]

This method returns the indent

Parameters:
numIndents[unsigned int] number of indents

Here is the caller graph for this function:

std::string LoadData::GetIntegerToString ( int  i)

This method converts a integer to string

Parameters:
i[int] integervalue
Returns:
[string] stringvalue

Here is the caller graph for this function:

void LoadData::ReadXMLFile ( const char *  file) [protected]

This method reads a XML file

Parameters:
file[const char*] path to XML file

Here is the caller graph for this function:


Member Data Documentation

TiXmlDocument LoadData::doc [protected]
bool LoadData::loadOkay [protected]
const unsigned int LoadData::NUM_INDENTS_PER_SPACE = 2 [static, protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines