gstlearn  1.0.0
CCC
GridIfpEn Class Reference

#include <GridIfpEn.hpp>

Inheritance diagram for GridIfpEn:
AOF

Public Member Functions

 GridIfpEn (const char *filename, const Db *db=nullptr)
 
 GridIfpEn (const GridIfpEn &r)
 
GridIfpEnoperator= (const GridIfpEn &r)
 
virtual ~GridIfpEn ()
 
bool mustBeGrid () const override
 
bool mustBeOneVariable () const override
 
bool mustBeForNDim (int) const override
 
bool mustBeForRotation (int mode) const override
 
int writeInFile () override
 
DbGridreadGridFromFile () override
 
- Public Member Functions inherited from AOF
 AOF (const String &filename, const Db *db=nullptr)
 
 AOF (const AOF &r)
 
AOFoperator= (const AOF &r)
 
virtual ~AOF ()
 
virtual bool isAuthorized () const
 
virtual DbreadFromFile ()
 
bool isValidForGrid () const
 
bool isValidForVariable () const
 
bool isValidForNDim () const
 
bool isValidForRotation () const
 
void setCols (const VectorInt &cols)
 
void setCols (int ncol, int *icols)
 
void setCol (int icol)
 
const StringgetFilename () const
 

Private Member Functions

void _writeLine (int mode, const char *comment, int valint, double valrel, const char *combis)
 
int _readLine (int mode, const char *comment, int *valint, double *valrel)
 

Additional Inherited Members

- Protected Member Functions inherited from AOF
int _fileWriteOpen ()
 
int _fileReadOpen ()
 
void _fileClose ()
 
- Protected Attributes inherited from AOF
String _filename
 
const Db_db
 
const DbGrid_dbgrid
 
VectorInt _cols
 
FILE * _file
 

Constructor & Destructor Documentation

◆ GridIfpEn() [1/2]

GridIfpEn::GridIfpEn ( const char *  filename,
const Db db = nullptr 
)

◆ GridIfpEn() [2/2]

GridIfpEn::GridIfpEn ( const GridIfpEn r)

◆ ~GridIfpEn()

GridIfpEn::~GridIfpEn ( )
virtual

Member Function Documentation

◆ _readLine()

int GridIfpEn::_readLine ( int  mode,
const char *  comment,
int *  valint,
double *  valrel 
)
private

Decode a line for IFPEN file

Parameters
[in]modeType of encoding
  • 0 : Comment
  • 1 : Integer value
  • 2 : Real value
[in]commentComment string (or NULL)
[out]valintInteger value
[out]valrelFloat value

◆ _writeLine()

void GridIfpEn::_writeLine ( int  mode,
const char *  comment,
int  valint,
double  valrel,
const char *  combis 
)
private

Encode a line for IFPEN file

Parameters
[in]modeType of encoding
  • 0 : Comment
  • 1 : Integer value
  • 2 : Real value
[in]commentComment string (or NULL)
[in]valintInteger value
[in]valrelFloat value
[in]combisSecond comment (or NULL)

◆ mustBeForNDim()

bool GridIfpEn::mustBeForNDim ( int  ) const
inlineoverridevirtual

Reimplemented from AOF.

◆ mustBeForRotation()

bool GridIfpEn::mustBeForRotation ( int  mode) const
inlineoverridevirtual

Reimplemented from AOF.

◆ mustBeGrid()

bool GridIfpEn::mustBeGrid ( ) const
inlineoverridevirtual

Reimplemented from AOF.

◆ mustBeOneVariable()

bool GridIfpEn::mustBeOneVariable ( ) const
inlineoverridevirtual

Reimplemented from AOF.

◆ operator=()

GridIfpEn & GridIfpEn::operator= ( const GridIfpEn r)

◆ readGridFromFile()

DbGrid * GridIfpEn::readGridFromFile ( )
overridevirtual

Reimplemented from AOF.

◆ writeInFile()

int GridIfpEn::writeInFile ( )
overridevirtual

Reimplemented from AOF.


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