gstlearn  0.3.3
CCC
FileLAS Class Reference

#include <FileLAS.hpp>

Inheritance diagram for FileLAS:
AOF

Public Member Functions

 FileLAS (const char *filename, const Db *db=nullptr)
 
 FileLAS (const FileLAS &r)
 
FileLAS & operator= (const FileLAS &r)
 
virtual ~FileLAS ()
 
bool mustBeGrid () const override
 
bool mustBeOneVariable () const override
 
bool mustBeForNDim (int ndim) const override
 
bool mustBeForRotation (int mode) const override
 
Db * readFromFile () override
 
void setCwell (double cwell)
 
void setXwell (double xwell)
 
void setYwell (double ywell)
 
- Public Member Functions inherited from AOF
 AOF (const String &filename, const Db *db=nullptr)
 
 AOF (const AOF &r)
 
AOF & operator= (const AOF &r)
 
virtual ~AOF ()
 
virtual bool isAuthorized () const
 
virtual int writeInFile ()
 
virtual DbGrid * readGridFromFile ()
 
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 String & getFilename () const
 

Private Member Functions

int _readFind (int s_length, const char *target, int *numline, char *string)
 
int _readNext (int s_length, int flag_up, int *numline, char *string)
 
void _stringToUppercase (char *string) const
 

Private Attributes

double _xwell
 
double _ywell
 
double _cwell
 

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

◆ FileLAS() [1/2]

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

◆ FileLAS() [2/2]

FileLAS::FileLAS ( const FileLAS &  r)

◆ ~FileLAS()

FileLAS::~FileLAS ( )
virtual

Member Function Documentation

◆ _readFind()

int FileLAS::_readFind ( int  s_length,
const char *  target,
int *  numline,
char *  string 
)
private

Read the next lines from a LAS file until the search file is found

Returns
0 if the string is found; 1 for end-of-file
Parameters
[in]s_lengthLength of the string array
[in]targetTarget line to be found
[in,out]numlineRank of the line
[out]stringNew line

◆ _readNext()

int FileLAS::_readNext ( int  s_length,
int  flag_up,
int *  numline,
char *  string 
)
private

Read the next line from a LAS file

Returns
Error return code
Parameters
[in]s_lengthLength of the string array
[in]flag_upConvert to uppercase
[in,out]numlineRank of the line
[out]stringNew line

TODO : Replace char* by String

◆ _stringToUppercase()

void FileLAS::_stringToUppercase ( char *  string) const
private

◆ mustBeForNDim()

bool FileLAS::mustBeForNDim ( int  ndim) const
inlineoverridevirtual

Reimplemented from AOF.

◆ mustBeForRotation()

bool FileLAS::mustBeForRotation ( int  mode) const
inlineoverridevirtual

Reimplemented from AOF.

◆ mustBeGrid()

bool FileLAS::mustBeGrid ( ) const
inlineoverridevirtual

Reimplemented from AOF.

◆ mustBeOneVariable()

bool FileLAS::mustBeOneVariable ( ) const
inlineoverridevirtual

Reimplemented from AOF.

◆ operator=()

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

◆ readFromFile()

Db * FileLAS::readFromFile ( )
overridevirtual

Reimplemented from AOF.

◆ setCwell()

void FileLAS::setCwell ( double  cwell)
inline

◆ setXwell()

void FileLAS::setXwell ( double  xwell)
inline

◆ setYwell()

void FileLAS::setYwell ( double  ywell)
inline

Member Data Documentation

◆ _cwell

double FileLAS::_cwell
private

◆ _xwell

double FileLAS::_xwell
private

◆ _ywell

double FileLAS::_ywell
private

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