VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions
DtCSVReaderWriter Class Reference

File: csvReaderWriter.h. More...

Inheritance diagram for DtCSVReaderWriter:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::vector< std::string > DtCSVLineEntry
 Stores a parsed csv line.

Public Member Functions

 DtCSVReaderWriter ()
 default constructor
 DtCSVReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 real constructor Setting the readonly flag prevents object from writing itself to the stream.
 DtCSVReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 DtCSVReaderWriter (const DtString &name, const DtCSVReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor
 DtCSVReaderWriter (const DtSymbolString &name, const DtCSVReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
const DtCSVReaderWriteroperator= (const DtCSVReaderWriter &orig)
 assignment operator
virtual ~DtCSVReaderWriter ()
 destructor
virtual void putSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 Top level call to write itself to file.
virtual void getSelf (FILE *fp)
 Top level to read itself from an input stream.
virtual void writeSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 Called from putSelf to write out individual data items.
virtual const char * readerWriterType () const
 Used to supply a string type that this reader writer type is.

Protected Member Functions

virtual void putData (FILE *fp, int indentLevel=0)
 Deriving class overrides these to get/put class specific data.
virtual bool getData (FILE *fp)
bool readLine (FILE *fp, DtString &line)

Detailed Description

File: csvReaderWriter.h.

Class: DtCSVReaderWriter

Description:


Member Typedef Documentation

typedef std::vector<std::string> DtCSVReaderWriter::DtCSVLineEntry

Stores a parsed csv line.


Constructor & Destructor Documentation

default constructor

DtCSVReaderWriter::DtCSVReaderWriter ( const DtString name,
DtReaderWriterRegistry parentRegistry = NULL,
bool  readonly = false 
)

real constructor Setting the readonly flag prevents object from writing itself to the stream.

By default, DtReaderWriter objects are read/write.

DtCSVReaderWriter::DtCSVReaderWriter ( const DtSymbolString name,
DtReaderWriterRegistry parentRegistry = NULL,
bool  readonly = false 
)
DtCSVReaderWriter::DtCSVReaderWriter ( const DtString name,
const DtCSVReaderWriter orig,
DtReaderWriterRegistry parentRegistry = NULL 
)

copy constructor

DtCSVReaderWriter::DtCSVReaderWriter ( const DtSymbolString name,
const DtCSVReaderWriter orig,
DtReaderWriterRegistry parentRegistry = NULL 
)

destructor


Member Function Documentation

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

assignment operator

virtual void DtCSVReaderWriter::putSelf ( FILE *  fp,
int  indentLevel = 0,
bool  writeUnspecified = false,
const DtFilename &  path = DtFilename::nullFilename() 
) [virtual]

Top level call to write itself to file.

If write unspecified is true, will write entries that are unspecified. Path is passed down to all DtCSVReaderWriter members in its DtCSVReaderWriterRegistry (collection of child DtCSVReaderWriter nodes).

Reimplemented from DtReaderWriter.

Reimplemented in DtCombatIdentificationLevelTable.

virtual void DtCSVReaderWriter::getSelf ( FILE *  fp) [virtual]

Top level to read itself from an input stream.

searchPath is passed down to all DtCSVReaderWriter members in its DtCSVReaderWriterRegistry (collection of child DtCSVReaderWriter nodes).

virtual void DtCSVReaderWriter::writeSelf ( FILE *  fp,
int  indentLevel = 0,
bool  writeUnspecified = false,
const DtFilename &  path = DtFilename::nullFilename() 
) [virtual]

Called from putSelf to write out individual data items.

Reimplemented from DtReaderWriter.

virtual const char* DtCSVReaderWriter::readerWriterType ( ) const [virtual]

Used to supply a string type that this reader writer type is.

This can be used in place of dynamic-casting. Also used by the opd editor to determine which type of control to create

Reimplemented from DtReaderWriter.

Reimplemented in DtCombatIdentificationLevelTable, DtCombatIdentificationLevelTableEntry, and DtCombatIdentificationDetectionIntervalEntry.

virtual void DtCSVReaderWriter::putData ( FILE *  fp,
int  indentLevel = 0 
) [protected, virtual]

Deriving class overrides these to get/put class specific data.

Reimplemented from DtReaderWriter.

virtual bool DtCSVReaderWriter::getData ( FILE *  fp) [protected, virtual]
bool DtCSVReaderWriter::readLine ( FILE *  fp,
DtString line 
) [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)