|
Last change
on this file since f2efcf was f2efcf, checked in by Saskia Metzler <metzler@…>, 16 years ago |
|
the XYZ parser
|
-
Property mode
set to
100644
|
|
File size:
400 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * TremoloParser.cpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Mar 2, 2010
|
|---|
| 5 | * Author: metzler
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | void TremoloParser::load(char* fileName) {
|
|---|
| 9 | MatrixContainer* data = readData(fileName, getHeaderSize('#'), 0);
|
|---|
| 10 | store additional data
|
|---|
| 11 | for (each line in matrix) {
|
|---|
| 12 | add atom to the world
|
|---|
| 13 | }
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | void TremoloParser::save(char* fileName) {
|
|---|
| 17 | write header
|
|---|
| 18 | for (each atom in world) {
|
|---|
| 19 | write coordinates and additional data
|
|---|
| 20 | }
|
|---|
| 21 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.