ADMB Documentation  11.1.2364
 All Classes Files Functions Variables Typedefs Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
cifstream Class Reference

#include <cifstrem.h>

Public Member Functions

 cifstream (const char *, int=ios::nocreate, char cc= '#')
 ~cifstream ()
char * comment ()
adstring get_file_name (void)
cifstreamgetline (char *, int, char= '\n')
void open (const char *, int=ios::nocreate)
cifstreamoperator>> (const dvariable &z)
cifstreamoperator>> (long long &i)
cifstreamoperator>> (const long &i)
cifstreamoperator>> (const int &i)
cifstreamoperator>> (const double &x)
cifstreamoperator>> (const float &x)
cifstreamoperator>> (char *x)
cifstreamoperator>> (const char *x)
cifstreamoperator>> (const adstring &x)
cifstreamoperator>> (adstring &x)
cifstreamoperator>> (const line_adstring &x)
cifstreamoperator>> (const dvar_vector &z)
cifstreamoperator>> (const dvector &z)
cifstreamoperator>> (const lvector &z)
cifstreamoperator>> (const ivector &z)
void set_ignore_eof ()
void set_use_eof ()
char * signature ()

Private Member Functions

void filter (void)
void get_field (char *s, int space_flag=0)
void report_error (const char *s=NULL)
void set_eof_bit (void)

Private Attributes

streambuf * bp
char COMMENT_CHAR
char comment_line [SIGNATURE_LENGTH+1]
int field
adstring file_name
int ignore_eof
int line
char signature_line [SIGNATURE_LENGTH+1]

Detailed Description

Definition at line 117 of file cifstrem.h.


Constructor & Destructor Documentation

cifstream::~cifstream ( ) [inline]

Definition at line 135 of file cifstrem.h.

cifstream::cifstream ( const char *  fn,
int  open_m = ios::nocreate,
char  cc = '#' 
)

Definition at line 72 of file cifstrem.cpp.


Member Function Documentation

char* cifstream::comment ( ) [inline]

Definition at line 187 of file cifstrem.h.

void cifstream::filter ( void  ) [private]

Definition at line 102 of file cifstrem.cpp.

Referenced by get_field(), and getline().

void cifstream::get_field ( char *  s,
int  space_flag = 0 
) [private]

Definition at line 149 of file cifstrem.cpp.

Referenced by operator>>().

cifstream & cifstream::getline ( char *  s,
int  k,
char  d = '\n' 
)
Todo:
Need Test case

Definition at line 369 of file cifstrem.cpp.

void cifstream::open ( const char *  ,
int  = ios::nocreate 
)
cifstream & cifstream::operator>> ( const dvariable z)

Definition at line 10 of file dfadcif.cpp.

cifstream & cifstream::operator>> ( long long &  i)

Definition at line 260 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( const long &  i)

Definition at line 233 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( const int &  i)

Definition at line 291 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( const double &  x)

Definition at line 312 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( const float &  x)

Definition at line 348 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( char *  x)

Definition at line 221 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( const char *  x)

Definition at line 227 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( const adstring x)

Definition at line 204 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( adstring x)

Definition at line 194 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( const line_adstring x)

Definition at line 214 of file cifstrem.cpp.

cifstream & cifstream::operator>> ( const dvar_vector z)

Definition at line 25 of file dfadcif.cpp.

cifstream & cifstream::operator>> ( const dvector z)

Definition at line 57 of file ad_cif.cpp.

cifstream & cifstream::operator>> ( const lvector z)

Definition at line 37 of file ad_cif.cpp.

cifstream & cifstream::operator>> ( const ivector z)

Definition at line 21 of file ad_cif.cpp.

void cifstream::report_error ( const char *  s = NULL) [private]

Definition at line 415 of file cifstrem.cpp.

Referenced by filter(), get_field(), and operator>>().

void cifstream::set_eof_bit ( void  ) [private]

Definition at line 22 of file cifstrem.cpp.

Referenced by filter(), and get_field().

void cifstream::set_ignore_eof ( ) [inline]

Definition at line 210 of file cifstrem.h.

void cifstream::set_use_eof ( ) [inline]

Definition at line 211 of file cifstrem.h.

Todo:
Need Test case

Definition at line 37 of file cifstrem.cpp.


Member Data Documentation

streambuf* cifstream::bp [private]

Definition at line 119 of file cifstrem.h.

Referenced by filter(), get_field(), getline(), and signature().

char cifstream::COMMENT_CHAR [private]

Definition at line 120 of file cifstrem.h.

Referenced by filter().

Definition at line 121 of file cifstrem.h.

Referenced by comment(), filter(), and signature().

int cifstream::field [private]

Definition at line 125 of file cifstrem.h.

Referenced by filter(), and get_field().

Definition at line 123 of file cifstrem.h.

Referenced by get_file_name().

int cifstream::ignore_eof [private]

Definition at line 126 of file cifstrem.h.

Referenced by set_ignore_eof(), and set_use_eof().

int cifstream::line [private]

Definition at line 124 of file cifstrem.h.

Referenced by filter(), and signature().

Definition at line 122 of file cifstrem.h.

Referenced by filter(), and signature().

List of all members.


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