#include <cstring>
#include <cctype>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "byte-swap.h"
#include "data-conv.h"
#include "file-ops.h"
#include "glob-match.h"
#include "lo-mappers.h"
#include "mach-info.h"
#include "oct-env.h"
#include "oct-time.h"
#include "quit.h"
#include "str-vec.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "load-save.h"
#include "ls-ascii-helper.h"
#include "ls-oct-ascii.h"
#include "oct-obj.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "pager.h"
#include "pt-exp.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
#include "dMatrix.h"
Go to the source code of this file.
Defines | |
#define | SUBSTRING_COMPARE_EQ(s, pos, n, t) (s.substr (pos, n) == t) |
Functions | |
DEFUN (save_precision, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} save_precision ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} save_precision (@var{new_val})\n\ @deftypefnx {Built-in Function} {} save_precision (@var{new_val}, \"local\")\n\ Query or set the internal variable that specifies the number of\n\ digits to keep when saving data in text format.\n\ \n\ When called from inside a function with the \"local\" option, the variable is\n\ changed locally for the function and any subroutines it calls. The original\n\ variable value is restored when exiting the function.\n\ @end deftypefn") | |
std::string | extract_keyword (std::istream &is, const char *keyword, const bool next_only) |
std::string | read_ascii_data (std::istream &is, const std::string &filename, bool &global, octave_value &tc, octave_idx_type count) |
bool | save_ascii_data (std::ostream &os, const octave_value &val_arg, const std::string &name, bool mark_as_global, int precision) |
bool | save_ascii_data_for_plotting (std::ostream &os, const octave_value &t, const std::string &name) |
bool | save_three_d (std::ostream &os, const octave_value &tc, bool parametric) |
Variables | |
static int | Vsave_precision = 16 |
#define SUBSTRING_COMPARE_EQ | ( | s, | ||
pos, | ||||
n, | ||||
t | ||||
) | (s.substr (pos, n) == t) |
Definition at line 234 of file ls-oct-ascii.cc.
Referenced by read_ascii_data().
DEFUN | ( | save_precision | , | |
args | , | |||
nargout | ||||
) |
Definition at line 418 of file ls-oct-ascii.cc.
References SET_INTERNAL_VARIABLE_WITH_LIMITS.
Definition at line 80 of file ls-oct-ascii.cc.
References match(), read_until_newline(), and skip_until_newline().
Referenced by extract_keyword(), get_file_format(), octave_scalar_struct::load_ascii(), octave_struct::load_ascii(), octave_char_matrix_str::load_ascii(), octave_matrix::load_ascii(), octave_perm_matrix::load_ascii(), octave_float_matrix::load_ascii(), octave_float_complex_matrix::load_ascii(), octave_fcn_inline::load_ascii(), octave_fcn_handle::load_ascii(), octave_complex_matrix::load_ascii(), octave_class::load_ascii(), octave_cell::load_ascii(), octave_bool_matrix::load_ascii(), octave_base_sparse< T >::load_ascii(), octave_base_int_matrix< T >::load_ascii(), octave_base_diag< DMT, MT >::load_ascii(), and read_ascii_data().
std::string read_ascii_data | ( | std::istream & | is, | |
const std::string & | filename, | |||
bool & | global, | |||
octave_value & | tc, | |||
octave_idx_type | count | |||
) |
Definition at line 237 of file ls-oct-ascii.cc.
References CELL_ELT_TAG, error(), error_state, extract_keyword(), octave_value::load_ascii(), octave_value_typeinfo::lookup_type(), SUBSTRING_COMPARE_EQ, and valid_identifier().
Referenced by do_load(), octave_scalar_struct::load_ascii(), octave_struct::load_ascii(), octave_lazy_index::load_ascii(), octave_fcn_handle::load_ascii(), octave_class::load_ascii(), and octave_cell::load_ascii().
bool save_ascii_data | ( | std::ostream & | os, | |
const octave_value & | val_arg, | |||
const std::string & | name, | |||
bool | mark_as_global, | |||
int | precision | |||
) |
Definition at line 312 of file ls-oct-ascii.cc.
References octave_value::save_ascii(), and octave_value::type_name().
Referenced by do_save(), octave_scalar_struct::save_ascii(), octave_struct::save_ascii(), octave_lazy_index::save_ascii(), octave_fcn_handle::save_ascii(), octave_class::save_ascii(), octave_cell::save_ascii(), and save_ascii_data_for_plotting().
bool save_ascii_data_for_plotting | ( | std::ostream & | os, | |
const octave_value & | t, | |||
const std::string & | name | |||
) |
Definition at line 348 of file ls-oct-ascii.cc.
References save_ascii_data().
bool save_three_d | ( | std::ostream & | os, | |
const octave_value & | tc, | |||
bool | parametric | |||
) |
Definition at line 361 of file ls-oct-ascii.cc.
References octave_value::columns(), error(), Matrix::extract(), octave_value::is_real_matrix(), octave_value::matrix_value(), Array< T >::rows(), octave_value::rows(), and warning().
int Vsave_precision = 16 [static] |
Definition at line 68 of file ls-oct-ascii.cc.