Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

data_parser Class Reference

#include <io.h>

List of all members.

Public Methods

 data_parser ()
 data_parser (istream &)
data_parser& input (istream &i)
unsigned parse ()
unsigned skip_parse ()
unsigned parse (const std::string &)
unsigned parse (const char *const)
const std::vector<double>& data ()
const std::vector<string>& tokens ()
int convert (real_vector &, double units=1.0)
int convert (complex_vector &, double units=1.0)
int convert (double &, real_vector &, double u1=1.0, double u2=1.0)
int convert (double &, complex_vector &, double u1=1.0, double u2=1.0)
const std::string& line ()
const std::string& comment ()
std::string& delim ()

Static Public Methods

std::string& default_delim ()

Private Attributes

istream* pin
std::string line_
std::string comment_
std::string delim_
std::vector<string> tokens_
std::vector<double> data_

Static Private Attributes

std::string def_delim_ = "#!"


Constructor & Destructor Documentation

data_parser::data_parser ( )
 

Definition at line 64 of file io.cc.

data_parser::data_parser ( istream & f )
 

Definition at line 65 of file io.cc.


Member Function Documentation

const std::string & data_parser::comment ( ) [inline]
 

Definition at line 120 of file io.h.

int data_parser::convert ( double & x,
complex_vector & v,
double u1 = 1.0,
double u2 = 1.0 )
 

Definition at line 192 of file io.cc.

int data_parser::convert ( double & x,
real_vector & v,
double u1 = 1.0,
double u2 = 1.0 )
 

Definition at line 181 of file io.cc.

int data_parser::convert ( complex_vector & v,
double u = 1.0 )
 

Definition at line 162 of file io.cc.

int data_parser::convert ( real_vector & v,
double u = 1.0 )
 

Definition at line 152 of file io.cc.

Referenced by real_interp::file(), complex_interp::file(), and touchstone_read::value().

const std::vector< double > & data_parser::data<double> ( ) [inline]
 

Definition at line 85 of file io.h.

Referenced by touchstone_read::get_noise(), touchstone_read::open(), touchstone_read::ports(), and touchstone_read::value().

std::string & data_parser::default_delim ( ) [inline, static]
 

Definition at line 131 of file io.h.

std::string & data_parser::delim ( ) [inline]
 

Definition at line 126 of file io.h.

Referenced by touchstone_read::touchstone_read().

data_parser & data_parser::input ( istream & i ) [inline]
 

Definition at line 61 of file io.h.

Referenced by touchstone_read::open().

const std::string & data_parser::line ( ) [inline]
 

Definition at line 116 of file io.h.

Referenced by touchstone_read::value().

unsigned data_parser::parse ( const char * const )
 

Definition at line 127 of file io.cc.

unsigned data_parser::parse ( const std::string & inp )
 

Definition at line 90 of file io.cc.

unsigned data_parser::parse ( )
 

Definition at line 67 of file io.cc.

Referenced by real_interp::file(), complex_interp::file(), touchstone_read::open(), parse(), and skip_parse().

unsigned data_parser::skip_parse ( )
 

Definition at line 83 of file io.cc.

Referenced by real_interp::file(), complex_interp::file(), touchstone_read::get_noise(), touchstone_read::open(), and touchstone_read::value().

const std::vector< string > & data_parser::tokens ( )
 

Definition at line 133 of file io.cc.

Referenced by touchstone_read::open().


Member Data Documentation

std::string data_parser::comment_ [private]
 

Definition at line 137 of file io.h.

std::vector< double > data_parser::data_<double> [private]
 

Definition at line 140 of file io.h.

std::string data_parser::def_delim_ = "#!" [static, private]
 

Definition at line 62 of file io.cc.

std::string data_parser::delim_ [private]
 

Definition at line 138 of file io.h.

std::string data_parser::line_ [private]
 

Definition at line 136 of file io.h.

istream * data_parser::pin [private]
 

Definition at line 135 of file io.h.

std::vector< string > data_parser::tokens_<string> [private]
 

Definition at line 139 of file io.h.


The documentation for this class was generated from the following files:

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7