Public Member Functions | Private Attributes | List of all members
SmiSmpsCardReader Class Reference

#include <SmiSmpsIO.hpp>

Inheritance diagram for SmiSmpsCardReader:
Inheritance graph
[legend]
Collaboration diagram for SmiSmpsCardReader:
Collaboration graph
[legend]

Public Member Functions

SmiSectionType nextSmpsField ()
 
SmiSectionType whichSmpsSection ()
 
SmiSmpsType whichSmpsType ()
 
const char * periodName () const
 
const char * scenarioNew () const
 
const char * scenarioAnc () const
 
double getProb ()
 
void setCoreCombineRule (SmiCoreCombineRule *r)
 
SmiCoreCombineRulegetCoreCombineRule ()
 
 SmiSmpsCardReader (CoinFileInput *input, CoinMpsIO *reader)
 Constructor expects file to be open This one takes gzFile if fp null. More...
 
 ~SmiSmpsCardReader ()
 
- Public Member Functions inherited from CoinMpsCardReader
 CoinMpsCardReader (CoinFileInput *input, CoinMpsIO *reader)
 Constructor expects file to be open This one takes gzFile if fp null. More...
 
 ~CoinMpsCardReader ()
 Destructor. More...
 
COINSectionType readToNextSection ()
 Read to next section. More...
 
COINSectionType nextField ()
 Gets next field and returns section type e.g. COIN_COLUMN_SECTION. More...
 
int nextGmsField (int expectedType)
 Gets next field for .gms file and returns type. More...
 
COINSectionType whichSection () const
 Returns current section type. More...
 
void setWhichSection (COINSectionType section)
 Sets current section type. More...
 
bool freeFormat () const
 Sees if free format. More...
 
void setFreeFormat (bool yesNo)
 Sets whether free format. Mainly for blank RHS etc. More...
 
COINMpsType mpsType () const
 Only for first field on card otherwise BLANK_COLUMN e.g. More...
 
int cleanCard ()
 Reads and cleans card - taking out trailing blanks - return 1 if EOF. More...
 
const char * rowName () const
 Returns row name of current field. More...
 
const char * columnName () const
 Returns column name of current field. More...
 
double value () const
 Returns value in current field. More...
 
const char * valueString () const
 Returns value as string in current field. More...
 
const char * card () const
 Whole card (for printing) More...
 
char * mutableCard ()
 Whole card - so we look at it (not const so nextBlankOr will work for gms reader) More...
 
void setPosition (char *position)
 set position (again so gms reader will work) More...
 
char * getPosition () const
 get position (again so gms reader will work) More...
 
CoinBigIndex cardNumber () const
 Returns card number. More...
 
CoinFileInputfileInput () const
 Returns file input. More...
 
void setStringsAllowed ()
 Sets whether strings allowed. More...
 
double osi_strtod (char *ptr, char **output, int type)
 type - 0 normal, 1 INTEL IEEE, 2 other IEEE More...
 
double osi_strtod (char *ptr, char **output)
 For strings. More...
 

Private Attributes

char periodName_ [COIN_MAX_FIELD_LENGTH]
 Current third name (for SmpsIO) More...
 
float fvalue_
 
SmiSectionType smiSection_
 
SmiSmpsType smiSmpsType_
 
SmiCoreCombineRulecombineRule_
 
bool combineRuleSet
 
double prob_
 

Additional Inherited Members

- Static Public Member Functions inherited from CoinMpsCardReader
static void strcpyAndCompress (char *to, const char *from)
 remove blanks More...
 
static char * nextBlankOr (char *image)
 type - 0 normal, 1 INTEL IEEE, 2 other IEEE More...
 
- Protected Attributes inherited from CoinMpsCardReader
double value_
 Current value. More...
 
char card_ [MAX_CARD_LENGTH]
 Current card image. More...
 
char * position_
 Current position within card image. More...
 
char * eol_
 End of card. More...
 
COINMpsType mpsType_
 Current COINMpsType. More...
 
char rowName_ [COIN_MAX_FIELD_LENGTH]
 Current row name. More...
 
char columnName_ [COIN_MAX_FIELD_LENGTH]
 Current column name. More...
 
CoinFileInputinput_
 File input. More...
 
COINSectionType section_
 Which section we think we are in. More...
 
CoinBigIndex cardNumber_
 Card number. More...
 
bool freeFormat_
 Whether free format. Just for blank RHS etc. More...
 
int ieeeFormat_
 Whether IEEE - 0 no, 1 INTEL, 2 not INTEL. More...
 
bool eightChar_
 If all names <= 8 characters then allow embedded blanks. More...
 
CoinMpsIOreader_
 MpsIO. More...
 
CoinMessageHandlerhandler_
 Message handler. More...
 
CoinMessages messages_
 Messages. More...
 
char valueString_ [COIN_MAX_FIELD_LENGTH]
 Current element as characters (only if strings allowed) More...
 
bool stringsAllowed_
 Whether strings allowed. More...
 

Detailed Description

Definition at line 41 of file SmiSmpsIO.hpp.

Constructor & Destructor Documentation

SmiSmpsCardReader::SmiSmpsCardReader ( CoinFileInput input,
CoinMpsIO reader 
)
inline

Constructor expects file to be open This one takes gzFile if fp null.

Definition at line 61 of file SmiSmpsIO.hpp.

SmiSmpsCardReader::~SmiSmpsCardReader ( )
inline

Definition at line 64 of file SmiSmpsIO.hpp.

Member Function Documentation

SmiSectionType SmiSmpsCardReader::nextSmpsField ( )
SmiSectionType SmiSmpsCardReader::whichSmpsSection ( )
inline

Definition at line 46 of file SmiSmpsIO.hpp.

SmiSmpsType SmiSmpsCardReader::whichSmpsType ( )
inline

Definition at line 48 of file SmiSmpsIO.hpp.

const char* SmiSmpsCardReader::periodName ( ) const
inline

Definition at line 50 of file SmiSmpsIO.hpp.

const char* SmiSmpsCardReader::scenarioNew ( ) const
inline

Definition at line 51 of file SmiSmpsIO.hpp.

const char* SmiSmpsCardReader::scenarioAnc ( ) const
inline

Definition at line 52 of file SmiSmpsIO.hpp.

double SmiSmpsCardReader::getProb ( )
inline

Definition at line 54 of file SmiSmpsIO.hpp.

void SmiSmpsCardReader::setCoreCombineRule ( SmiCoreCombineRule r)
inline

Definition at line 56 of file SmiSmpsIO.hpp.

SmiCoreCombineRule* SmiSmpsCardReader::getCoreCombineRule ( )
inline

Definition at line 57 of file SmiSmpsIO.hpp.

Member Data Documentation

char SmiSmpsCardReader::periodName_[COIN_MAX_FIELD_LENGTH]
private

Current third name (for SmpsIO)

Definition at line 67 of file SmiSmpsIO.hpp.

float SmiSmpsCardReader::fvalue_
private

Definition at line 68 of file SmiSmpsIO.hpp.

SmiSectionType SmiSmpsCardReader::smiSection_
private

Definition at line 69 of file SmiSmpsIO.hpp.

SmiSmpsType SmiSmpsCardReader::smiSmpsType_
private

Definition at line 70 of file SmiSmpsIO.hpp.

SmiCoreCombineRule* SmiSmpsCardReader::combineRule_
private

Definition at line 71 of file SmiSmpsIO.hpp.

bool SmiSmpsCardReader::combineRuleSet
private

Definition at line 72 of file SmiSmpsIO.hpp.

double SmiSmpsCardReader::prob_
private

Definition at line 73 of file SmiSmpsIO.hpp.


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