#include <Data.h>
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 |
| Data::Data | ( | void | ) |
Constructor of Data class.
| Data::~Data | ( | void | ) |
Destructor of Data class.
| bool Data::loadData | ( | QString | filename | ) |
loads data from file into data structure
| filename | filename from actual loaded file |
| vector< dataInfo > Data::getLine | ( | int | index | ) |
return one line of data
| index | this is the index of the wanted line |
| dataInfo Data::getValue | ( | int | index, | |
| int | col | |||
| ) |
returns one column of a given line
| index | this is the index of the actual line | |
| col | this is the column of the wanted data item |
| void Data::printData | ( | ) |
dummy function -> prints loaded data
| vector< QString > Data::getTitle | ( | ) |
get back title from loaded file
| vector< int > Data::getType | ( | ) |
get back types from loaded file
| int Data::getSize | ( | ) |
returns the count of data
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
1.5.4