#include <cstring>#include <cctype>#include <fstream>#include <iomanip>#include <istream>#include <ostream>#include <sstream>#include <string>#include "byte-swap.h"#include "data-conv.h"#include "file-ops.h"#include "glob-match.h"#include "mach-info.h"#include "mappers.h"#include "oct-env.h"#include "oct-time.h"#include "quit.h"#include "str-vec.h"#include "cdef-utils.h"#include "Cell.h"#include "defun.h"#include "error.h"#include "errwarn.h"#include "interpreter.h"#include "interpreter-private.h"#include "load-save.h"#include "ls-ascii-helper.h"#include "ls-oct-text.h"#include "ovl.h"#include "oct-map.h"#include "ov-cell.h"#include "ov-classdef.h"#include "pager.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.
Macros | |
| #define | SUBSTRING_COMPARE_EQ(s, pos, n, t) (s.substr (pos, n) == (t)) |
Functions | |
| std::string | extract_keyword (std::istream &is, const char *keyword, const bool next_only) |
| octave_value_list | Fsave_precision (const octave_value_list &args, int nargout) |
| std::string | read_text_data (std::istream &is, const std::string &filename, bool &global, octave_value &tc, octave_idx_type count, const bool do_name_validation) |
| bool | save_text_data (std::ostream &os, const octave_value &val_arg, const std::string &name, bool mark_global, int precision) |
| bool | save_text_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) |
| #define SUBSTRING_COMPARE_EQ | ( | s, | |
| pos, | |||
| n, | |||
| t | |||
| ) | (s.substr (pos, n) == (t)) |
Definition at line 239 of file ls-oct-text.cc.
| std::string extract_keyword | ( | std::istream & | is, |
| const char * | keyword, | ||
| const bool | next_only | ||
| ) |
Definition at line 86 of file ls-oct-text.cc.
Referenced by extract_keyword(), octave_base_diag< DMT, MT >::load_ascii(), octave_base_int_matrix< T >::load_ascii(), octave_base_sparse< T >::load_ascii(), octave_bool_matrix::load_ascii(), octave_cell::load_ascii(), octave_class::load_ascii(), octave_classdef::load_ascii(), octave_complex_matrix::load_ascii(), octave_fcn_handle::load_ascii(), octave_float_complex_matrix::load_ascii(), octave_float_matrix::load_ascii(), octave_perm_matrix::load_ascii(), octave_matrix::load_ascii(), octave_char_matrix_str::load_ascii(), octave_struct::load_ascii(), octave_scalar_struct::load_ascii(), and read_text_data().
| octave_value_list Fsave_precision | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 510 of file ls-oct-text.cc.
References set_internal_variable().
| std::string read_text_data | ( | std::istream & | is, |
| const std::string & | filename, | ||
| bool & | global, | ||
| octave_value & | tc, | ||
| octave_idx_type | count, | ||
| const bool | do_name_validation | ||
| ) |
Definition at line 288 of file ls-oct-text.cc.
References CELL_ELT_TAG, error(), extract_keyword(), octave_value::load_ascii(), type_info::lookup_type(), and SUBSTRING_COMPARE_EQ.
Referenced by octave_cell::load_ascii(), octave_class::load_ascii(), octave_classdef::load_ascii(), octave_lazy_index::load_ascii(), octave_struct::load_ascii(), octave_scalar_struct::load_ascii(), and load_save_system::load_vars().
| bool save_text_data | ( | std::ostream & | os, |
| const octave_value & | val_arg, | ||
| const std::string & | name, | ||
| bool | mark_global, | ||
| int | precision | ||
| ) |
Definition at line 380 of file ls-oct-text.cc.
References octave_value::classdef_object_value(), octave_value::is_classdef_object(), octave_classdef::map_value(), octave_value::save_ascii(), octave_value::type_name(), and warning_with_id().
Referenced by octave_cell::save_ascii(), octave_class::save_ascii(), octave_classdef::save_ascii(), octave_lazy_index::save_ascii(), octave_struct::save_ascii(), octave_scalar_struct::save_ascii(), and save_text_data_for_plotting().
| bool save_text_data_for_plotting | ( | std::ostream & | os, |
| const octave_value & | t, | ||
| const std::string & | name | ||
| ) |
Definition at line 426 of file ls-oct-text.cc.
References save_text_data().
| bool save_three_d | ( | std::ostream & | os, |
| const octave_value & | tc, | ||
| bool | parametric | ||
| ) |
Definition at line 439 of file ls-oct-text.cc.
References octave_value::columns(), error(), Matrix::extract(), octave_value::is_real_matrix(), octave_value::matrix_value(), octave_value::rows(), Array< T, Alloc >::rows(), and warning().