WebLVC 1.7d API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtCsvFileEntry Class Reference

A generic class that represents the entries that are parsed out of a csv file by the csv file reader. More...

Public Member Functions

 DtCsvFileEntry (const DtString &name)
 CTOR. More...
 
 DtCsvFileEntry (const DtCsvFileEntry &orig)
 Copy CTOR. More...
 
virtual ~DtCsvFileEntry ()
 Virtual DTOR. More...
 
DtCsvFileEntryoperator= (const DtCsvFileEntry &orig)
 Assignment operator. More...
 
virtual DtCsvFileEntryclone ()
 Clone method. More...
 
virtual DtStringoperator[] (int idx)
 Reference access for indexing into the entry. More...
 
virtual const DtStringoperator[] (int idx) const
 
virtual void parseFrom (const DtString &sLine)
 Parses the given line into fields and stores them. More...
 
virtual const DtStringname () const
 Entry's name. More...
 
virtual void emptyList ()
 Deletes the string fields in the member list. More...
 
virtual int length () const
 Returns the number of fields available. More...
 

Static Public Member Functions

static DtCsvFileEntrycreator ()
 Static creator method. More...
 

Protected Member Functions

 DtCsvFileEntry ()
 Protected Default CTOR. More...
 

Protected Attributes

DtString myName
 
DtList myFields
 

Detailed Description

A generic class that represents the entries that are parsed out of a csv file by the csv file reader.

Children classes will derive their own entrie from this that their own derived readers know how to parse

Constructor & Destructor Documentation

DtCsvFileEntry::DtCsvFileEntry ( const DtString name)

CTOR.

DtCsvFileEntry::DtCsvFileEntry ( const DtCsvFileEntry orig)

Copy CTOR.

virtual DtCsvFileEntry::~DtCsvFileEntry ( )
virtual

Virtual DTOR.

DtCsvFileEntry::DtCsvFileEntry ( )
protected

Protected Default CTOR.

Only the create method can use the default CTOR.

Member Function Documentation

virtual DtCsvFileEntry* DtCsvFileEntry::clone ( )
virtual

Clone method.

static DtCsvFileEntry* DtCsvFileEntry::creator ( )
static

Static creator method.

virtual void DtCsvFileEntry::emptyList ( )
virtual

Deletes the string fields in the member list.

virtual int DtCsvFileEntry::length ( ) const
virtual

Returns the number of fields available.

virtual const DtString& DtCsvFileEntry::name ( ) const
virtual

Entry's name.

DtCsvFileEntry& DtCsvFileEntry::operator= ( const DtCsvFileEntry orig)

Assignment operator.

virtual DtString& DtCsvFileEntry::operator[] ( int  idx)
virtual

Reference access for indexing into the entry.

Returns DtString::nullString() for indices that are out of range.

virtual const DtString& DtCsvFileEntry::operator[] ( int  idx) const
virtual
virtual void DtCsvFileEntry::parseFrom ( const DtString sLine)
virtual

Parses the given line into fields and stores them.

Member Data Documentation

DtList DtCsvFileEntry::myFields
protected
DtString DtCsvFileEntry::myName
protected

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

Document ID: Generated on Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)