gstlearn  1.0.0
CCC
CSVformat Class Reference

#include <CSVformat.hpp>

Inheritance diagram for CSVformat:
AStringable

Public Member Functions

 CSVformat (bool flagHeader=true, int nSkip=0, char charSep=',', char charDec='.', const String &naString=STRING_NA)
 
 CSVformat (const CSVformat &r)
 
CSVformatoperator= (const CSVformat &r)
 
virtual ~CSVformat ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface to AStringable. More...
 
char getCharDec () const
 
char getCharSep () const
 
bool getFlagHeader () const
 
const String getNaString () const
 
int getNSkip () const
 
void setFlagHeader (bool flagHeader)
 
void setCharDec (char charDec)
 
void setCharSep (char charSep)
 
void setNaString (const String &naString)
 
void setNSkip (int nskip)
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Static Public Member Functions

static CSVformatcreate (bool flagHeader=true, int nSkip=0, char charSep=',', char charDec='.', const String &naString=STRING_NA)
 

Private Attributes

bool _flagHeader
 
int _nSkip
 
char _charSep
 
char _charDec
 
String _naString
 

Constructor & Destructor Documentation

◆ CSVformat() [1/2]

CSVformat::CSVformat ( bool  flagHeader = true,
int  nSkip = 0,
char  charSep = ',',
char  charDec = '.',
const String naString = STRING_NA 
)

◆ CSVformat() [2/2]

CSVformat::CSVformat ( const CSVformat r)

◆ ~CSVformat()

CSVformat::~CSVformat ( )
virtual

Member Function Documentation

◆ create()

CSVformat * CSVformat::create ( bool  flagHeader = true,
int  nSkip = 0,
char  charSep = ',',
char  charDec = '.',
const String naString = STRING_NA 
)
static

◆ getCharDec()

char CSVformat::getCharDec ( ) const
inline

◆ getCharSep()

char CSVformat::getCharSep ( ) const
inline

◆ getFlagHeader()

bool CSVformat::getFlagHeader ( ) const
inline

◆ getNaString()

const String CSVformat::getNaString ( ) const
inline

◆ getNSkip()

int CSVformat::getNSkip ( ) const
inline

◆ operator=()

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

◆ setCharDec()

void CSVformat::setCharDec ( char  charDec)
inline

◆ setCharSep()

void CSVformat::setCharSep ( char  charSep)
inline

◆ setFlagHeader()

void CSVformat::setFlagHeader ( bool  flagHeader)
inline

◆ setNaString()

void CSVformat::setNaString ( const String naString)
inline

◆ setNSkip()

void CSVformat::setNSkip ( int  nskip)
inline

◆ toString()

String CSVformat::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface to AStringable.

Reimplemented from AStringable.

Member Data Documentation

◆ _charDec

char CSVformat::_charDec
private

◆ _charSep

char CSVformat::_charSep
private

◆ _flagHeader

bool CSVformat::_flagHeader
private

◆ _naString

String CSVformat::_naString
private

◆ _nSkip

int CSVformat::_nSkip
private

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