|
Last change
on this file since eb94c1 was eb94c1, checked in by Saskia Metzler <metzler@…>, 16 years ago |
|
Work-in-progress commit of change tracker and parser
|
-
Property mode
set to
100644
|
|
File size:
702 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * FormatParser.cpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Mar 1, 2010
|
|---|
| 5 | * Author: metzler
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #include "FormatParser.hpp"
|
|---|
| 9 |
|
|---|
| 10 | FormatParser::FormatParser() {
|
|---|
| 11 | ChangeTracker::get()->signOn(this);
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | FormatParser::~FormatParser() {
|
|---|
| 15 | ChangeTracker::get()->signOff(this);
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | /**
|
|---|
| 19 | * Parses a file into a matrix container.
|
|---|
| 20 | *
|
|---|
| 21 | * \param absolute path of the file
|
|---|
| 22 | * \param number of lines to skip initially (will be stored as header)
|
|---|
| 23 | * \param number of columns to skip initially
|
|---|
| 24 | * \return matrix container
|
|---|
| 25 | */
|
|---|
| 26 | MatrixContainer* readData(char* fileName, int skiplines, int skipcolumns) {
|
|---|
| 27 | MatrixContainer* result = new MatrixContainer();
|
|---|
| 28 | // result->ParseMatrix(*fileName, skiplines, skipcolumns, 0);
|
|---|
| 29 |
|
|---|
| 30 | return result;
|
|---|
| 31 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.