Data Class Reference

#include <Data.h>

List of all members.

Public Member Functions

 Data (void)
 ~Data (void)
bool loadData (QString filename)
vector< dataInfo > getLine (int index)
dataInfo getValue (int index, int col)
void printData ()
vector< QString > getTitle ()
vector< int > getType ()
int getSize ()

Static Public Attributes

static const int TYPE_STRING = 1
static const int TYPE_FLOAT = 2
static const int TYPE_PERCENT = 3


Detailed Description

Data class holds the dataset

Constructor & Destructor Documentation

Data::Data ( void   ) 

Constructor of Data class.

Data::~Data ( void   ) 

Destructor of Data class.


Member Function Documentation

bool Data::loadData ( QString  filename  ) 

loads data from file into data structure

Parameters:
filename filename from actual loaded file

vector< dataInfo > Data::getLine ( int  index  ) 

return one line of data

Parameters:
index this is the index of the wanted line
Returns:
this function returns a vector that contains all columns in the form of dataInfo

dataInfo Data::getValue ( int  index,
int  col 
)

returns one column of a given line

Parameters:
index this is the index of the actual line
col this is the column of the wanted data item
Returns:
returns data in form of dataInfo

void Data::printData (  ) 

dummy function -> prints loaded data

vector< QString > Data::getTitle (  ) 

get back title from loaded file

Returns:
return value is a vector with QStrings that contains all titles

vector< int > Data::getType (  ) 

get back types from loaded file

Returns:
return value is a vector with integers that contains all types

int Data::getSize (  ) 

returns the count of data

Returns:
count of data


Member Data Documentation

const int Data::TYPE_STRING = 1 [static]

constant for checking if loaded type is string

const int Data::TYPE_FLOAT = 2 [static]

constant for checking if loaded type is float

const int Data::TYPE_PERCENT = 3 [static]

constant for checking if loaded type is a float that should be used like percent


The documentation for this class was generated from the following files:
Generated on Fri May 29 18:22:30 2009 for VisLink by  doxygen 1.5.4