Defines | Functions

ls-oct-ascii.h File Reference

#include <cfloat>
#include <sstream>
#include <string>
#include "str-vec.h"
#include "ls-ascii-helper.h"
Include dependency graph for ls-oct-ascii.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CELL_ELT_TAG   "<cell-element>"
#define OCT_RBV   DBL_MAX / 100.0

Functions

OCTINTERP_API std::string extract_keyword (std::istream &is, const char *keyword, const bool next_only=false)
template<class T >
bool extract_keyword (std::istream &is, const string_vector &keywords, std::string &kw, T &value, const bool next_only=false)
template<class T >
bool extract_keyword (std::istream &is, const std::string &kw, T &value, const bool next_only=false)
template<class T >
bool extract_keyword (std::istream &is, const char *keyword, T &value, const bool next_only=false)
OCTINTERP_API std::string read_ascii_data (std::istream &is, const std::string &filename, bool &global, octave_value &tc, octave_idx_type count)
OCTINTERP_API bool save_ascii_data (std::ostream &os, const octave_value &val_arg, const std::string &name, bool mark_as_global, int precision)
OCTINTERP_API bool save_ascii_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)

Define Documentation

#define CELL_ELT_TAG   "<cell-element>"

Definition at line 36 of file ls-oct-ascii.h.

Referenced by read_ascii_data().

#define OCT_RBV   DBL_MAX / 100.0

Definition at line 41 of file ls-oct-ascii.h.


Function Documentation

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

Definition at line 136 of file ls-oct-ascii.h.

References Array< T >::length(), match(), and skip_until_newline().

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

Definition at line 120 of file ls-oct-ascii.h.

References extract_keyword().

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

Definition at line 73 of file ls-oct-ascii.h.

References match(), and skip_until_newline().

OCTINTERP_API std::string read_ascii_data ( std::istream &  is,
const std::string &  filename,
bool global,
octave_value tc,
octave_idx_type  count 
)
OCTINTERP_API bool save_ascii_data ( std::ostream &  os,
const octave_value val_arg,
const std::string &  name,
bool  mark_as_global,
int  precision 
)
OCTINTERP_API 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().

OCTINTERP_API bool save_three_d ( std::ostream &  os,
const octave_value t,
bool  parametric = false 
)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines