Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
asciilib.h
Go to the documentation of this file.
1// This program is free software; you can redistribute it and/or
2// modify it under the terms of the GNU General Public License
3// as published by the Free Software Foundation; either version 2
4// of the License, or (at your option) any later version.
5
6// This program is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9// GNU General Public License for more details.
10
11// You should have received a copy of the GNU General Public License
12// along with this program; if not, write to the Free Software
13// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
20
21#ifndef _ASCIILIB_H
22#define _ASCIILIB_H
23
24#include "../stfio.h"
25#include "../recording.h"
26
27namespace stfio {
28
30
40void importASCIIFile(const std::string& fName,
41 int hLinesToSkip,
42 int nColumns,
43 bool firstIsTime,
44 bool toSection,
45 Recording& ReturnRec,
46 ProgressInfo& progDlg);
47
49
53bool exportASCIIFile(const std::string& fName, const Section& Export);
54
56
60bool exportASCIIFile(const std::string& fName, const Channel& Export);
61
62#if 0
63std::string NextWord( std::string& str );
64#endif
65
66}
67
68#endif
A Channel contains several data Sections representing observations of the same physical quantity.
Definition channel.h:34
Represents the data within a file.
Definition recording.h:44
Represents a continuously sampled sweep of data points.
Definition section.h:36
ProgressInfo class.
Definition stfio.h:69
The stfio namespace.
Definition abflib.h:27
bool exportASCIIFile(const std::string &fName, const Section &Export)
Export a Section to a text file.
void importASCIIFile(const std::string &fName, int hLinesToSkip, int nColumns, bool firstIsTime, bool toSection, Recording &ReturnRec, ProgressInfo &progDlg)
Open an ASCII file and store its contents to a Recording object.
Declares the Recording class.
header file for libstfio