summaryrefslogtreecommitdiffstats
path: root/tools/h5import/h5import.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-08-07 16:19:11 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-08-07 16:19:11 (GMT)
commit6c95c46fcb0497f3bcb945b0da138e04fc600ab4 (patch)
treee3493806594f51f408c950c195c9e3b023634e5e /tools/h5import/h5import.h
parente2477c8d0b76325590f43be8926634f16da5f849 (diff)
downloadhdf5-6c95c46fcb0497f3bcb945b0da138e04fc600ab4.zip
hdf5-6c95c46fcb0497f3bcb945b0da138e04fc600ab4.tar.gz
hdf5-6c95c46fcb0497f3bcb945b0da138e04fc600ab4.tar.bz2
[svn-r14039]
New feature: implementation of h5import conversion of an ASCII plain-text file containing text data The string type H5T_C_S1 is used to define the data (the datum is defined here as one line of text in the text file). The size is set to variable length (H5T_VARIABLE) The space used is a 1D array with as many elements as there are lines in the ASCII file (a line is defined by the inclusion of an end of line character, ASCII number 10). A first traversal of the input text file must be made to determine the number of lines in the file and thus the dimensionality of the dataset. New test to the test script added text input files and teststr.h5 for h5dump to compare added Tested: windows, linux, solaris
Diffstat (limited to 'tools/h5import/h5import.h')
-rwxr-xr-xtools/h5import/h5import.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/h5import/h5import.h b/tools/h5import/h5import.h
index e061871..975ace0 100755
--- a/tools/h5import/h5import.h
+++ b/tools/h5import/h5import.h
@@ -214,7 +214,7 @@ static int CompressionTypeStrToInt(char *temp);
static int getCompressionParameter(struct Input *in, FILE** strm);
static int getExternalFilename(struct Input *in, FILE** strm);
static int getMaximumDimensionSizes(struct Input *in, FILE **strm);
-static int processDataFile(char *infile, struct Input *in, FILE **strm);
+static int processDataFile(char *infile, struct Input *in, FILE **strm, hid_t file_id);
static int readIntegerData(FILE **strm, struct Input *in);
static int readFloatData(FILE **strm, struct Input *in);
static int allocateIntegerStorage(struct Input *in);
@@ -224,6 +224,7 @@ hid_t createInputDataType(struct Input *in);
static int readUIntegerData(FILE **strm, struct Input *in);
static int allocateUIntegerStorage(struct Input *in);
static int validateConfigurationParameters(struct Input * in);
+static int processStrData(FILE **strm, struct Input *in, hid_t file_id);
#endif /* H5IMPORT_H__ */