spielwiese
Last change
on this file since 92c0ac was
92c0ac,
checked in by Hans Schönemann <hannes@…>, 21 years ago
|
NTL-5.2
git-svn-id: file:///usr/local/Singular/svn/trunk@6320 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
708 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef NTL_fileio__H |
---|
3 | #define NTL_fileio__H |
---|
4 | |
---|
5 | #include <NTL/tools.h> |
---|
6 | |
---|
7 | #if (defined(NTL_STD_CXX) || defined(NTL_PSTD_NHF)) |
---|
8 | |
---|
9 | #include <fstream> |
---|
10 | |
---|
11 | #else |
---|
12 | |
---|
13 | #include <fstream.h> |
---|
14 | |
---|
15 | #endif |
---|
16 | |
---|
17 | #if 0 |
---|
18 | namespace foo_bar { |
---|
19 | |
---|
20 | class ofstream; |
---|
21 | class ifstream; |
---|
22 | |
---|
23 | } |
---|
24 | #endif |
---|
25 | |
---|
26 | NTL_OPEN_NNS |
---|
27 | |
---|
28 | |
---|
29 | void OpenWrite(NTL_SNS ofstream& s, const char *name); |
---|
30 | |
---|
31 | // opens file for writing...aborts if fails |
---|
32 | |
---|
33 | void OpenRead(NTL_SNS ifstream& s, const char *name); |
---|
34 | |
---|
35 | // opens file for reading |
---|
36 | |
---|
37 | char *FileName(const char* stem, const char *ext); |
---|
38 | |
---|
39 | // builds the name "stem.ext" |
---|
40 | |
---|
41 | char *FileName(const char* stem, const char *ext, long d); |
---|
42 | |
---|
43 | // builds the name stem.ext.d |
---|
44 | |
---|
45 | NTL_CLOSE_NNS |
---|
46 | |
---|
47 | #endif |
---|
48 | |
---|
49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.