Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifdef HAVE_CONFIG_H
00024 #include <config.h>
00025 #endif
00026
00027 #include "oct-strstrm.h"
00028
00029
00030
00031 int
00032 octave_base_strstream::seek (long, int)
00033 {
00034 error ("fseek: invalid operation");
00035 return -1;
00036 }
00037
00038
00039
00040 long
00041 octave_base_strstream::tell (void)
00042 {
00043 error ("ftell: invalid operation");
00044 return -1;
00045 }
00046
00047 octave_stream
00048 octave_istrstream::create (const char *data, std::ios::openmode arg_md,
00049 oct_mach_info::float_format flt_fmt)
00050 {
00051 return octave_stream (new octave_istrstream (data, arg_md, flt_fmt));
00052 }
00053
00054 octave_stream
00055 octave_istrstream::create (const std::string& data, std::ios::openmode arg_md,
00056 oct_mach_info::float_format flt_fmt)
00057 {
00058 return octave_stream (new octave_istrstream (data, arg_md, flt_fmt));
00059 }
00060
00061 octave_stream
00062 octave_ostrstream::create (std::ios::openmode arg_md,
00063 oct_mach_info::float_format flt_fmt)
00064 {
00065 return octave_stream (new octave_ostrstream (arg_md, flt_fmt));
00066 }