GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
ls-oct-text.h File Reference
#include "octave-config.h"
#include <cfloat>
#include <sstream>
#include <string>
#include "str-vec.h"
#include "ls-ascii-helper.h"
Include dependency graph for ls-oct-text.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CELL_ELT_TAG   "<cell-element>"
 
#define OCT_RBV   (std::numeric_limits<double>::max () / 100.0)
 

Functions

OCTINTERP_API std::string extract_keyword (std::istream &is, const char *keyword, const bool next_only=false)
 
template<typename T >
bool extract_keyword (std::istream &is, const char *keyword, T &value, const bool next_only=false)
 
template<typename T >
bool extract_keyword (std::istream &is, const std::string &kw, T &value, const bool next_only=false)
 
template<typename T >
bool extract_keyword (std::istream &is, const string_vector &keywords, std::string &kw, T &value, const bool next_only=false)
 
OCTINTERP_API std::string read_text_data (std::istream &is, const std::string &filename, bool &global, octave_value &tc, octave_idx_type count)
 
OCTINTERP_API bool save_text_data (std::ostream &os, const octave_value &val_arg, const std::string &name, bool mark_as_global, int precision)
 
OCTINTERP_API bool save_text_data_for_plotting (std::ostream &os, const octave_value &t, const std::string &name)
 
OCTINTERP_API bool save_three_d (std::ostream &os, const octave_value &t, bool parametric=false)
 

Macro Definition Documentation

#define CELL_ELT_TAG   "<cell-element>"

Definition at line 38 of file ls-oct-text.h.

Referenced by read_text_data().

#define OCT_RBV   (std::numeric_limits<double>::max () / 100.0)

Definition at line 43 of file ls-oct-text.h.

Function Documentation

OCTINTERP_API std::string extract_keyword ( std::istream &  is,
const char *  keyword,
const bool  next_only = false 
)
template<typename T >
bool extract_keyword ( std::istream &  is,
const char *  keyword,
T &  value,
const bool  next_only = false 
)

Definition at line 75 of file ls-oct-text.h.

References c, skip_until_newline(), string, strlen(), tmp, and value().

template<typename T >
bool extract_keyword ( std::istream &  is,
const std::string kw,
T &  value,
const bool  next_only = false 
)

Definition at line 122 of file ls-oct-text.h.

References extract_keyword(), and value().

template<typename T >
bool extract_keyword ( std::istream &  is,
const string_vector keywords,
std::string kw,
T &  value,
const bool  next_only = false 
)

Definition at line 138 of file ls-oct-text.h.

References c, Array< T >::numel(), skip_until_newline(), string, tmp, and value().

OCTINTERP_API std::string read_text_data ( std::istream &  is,
const std::string filename,
bool global,
octave_value tc,
octave_idx_type  count 
)
OCTINTERP_API bool save_text_data ( std::ostream &  os,
const octave_value val_arg,
const std::string name,
bool  mark_as_global,
int  precision 
)
OCTINTERP_API bool save_text_data_for_plotting ( std::ostream &  os,
const octave_value t,
const std::string name 
)

Definition at line 336 of file ls-oct-text.cc.

References save_text_data().

OCTINTERP_API bool save_three_d ( std::ostream &  os,
const octave_value t,
bool  parametric = false 
)