code::SingleFileWriter Class Reference

Inheritance diagram for code::SingleFileWriter:

code::LevelIIWriter code::RapicWriter List of all members.

Detailed Description

Subclasses will take elevation scans of reflectivity, velocity and spectrum width and write them out into a single volume file.

It can be attached to an index in which case it will listen for the the appropriate products to write out.

Author:
Lakshman
Version:
Id
code_SingleFileWriter.h,v 1.4 2009/06/02 20:17:51 lakshman Exp


Public Member Functions

 SingleFileWriter (const std::string &outputDir)
void listenFor (const std::string &refproductname, const std::string &velproductname, const std::string &spwproductname)
 listen for these types of data from the index to which to this writer is attached.
virtual void actionPerformed (const ActionEvent *e)
 the listening event for attaching to an index.
virtual ~SingleFileWriter ()
void setReflectivity (const RadialSet &rs)
 set the latest reflectivity scan.
void setVelocity (const RadialSet &rs)
 set the latest scan.
void setSpectrumWidth (const RadialSet &rs)
 set the latest scan.
void setPolarGridAngularResolution (double res)
 If you set the resolution to be a number greater than zero (in degrees), then the input radial sets will be made into regular polar grids with that angular resolution.
void write ()
 The work-horse function -- you can call this function to force the write.

Protected Types

 Reflectivity
 Velocity
 SpectrumWidth
 NumDataTypes
enum  { Reflectivity, Velocity, SpectrumWidth, NumDataTypes }

Protected Attributes

enum code::SingleFileWriter:: { ... }  DataTypes
SmartPtr< RadialSet > data [NumDataTypes]
std::string dataName [NumDataTypes]
std::string outputDir
Angle currAngle
Time currTime
int swp
float polarGridAngularResolution


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
Reflectivity 
Velocity 
SpectrumWidth 
NumDataTypes 


Constructor & Destructor Documentation

code::SingleFileWriter::SingleFileWriter ( const std::string &  outputDir  ) 

virtual code::SingleFileWriter::~SingleFileWriter (  )  [inline, virtual]


Member Function Documentation

virtual void code::SingleFileWriter::actionPerformed ( const ActionEvent *  e  )  [virtual]

the listening event for attaching to an index.

void code::SingleFileWriter::listenFor ( const std::string &  refproductname,
const std::string &  velproductname,
const std::string &  spwproductname 
)

listen for these types of data from the index to which to this writer is attached.

If any of these strings is empty, that product will not be waited for.

void code::SingleFileWriter::setPolarGridAngularResolution ( double  res  )  [inline]

If you set the resolution to be a number greater than zero (in degrees), then the input radial sets will be made into regular polar grids with that angular resolution.

See also:
PolarGrid

void code::SingleFileWriter::setReflectivity ( const RadialSet &  rs  )  [inline]

set the latest reflectivity scan.

This function will call write to write out if necessary.

void code::SingleFileWriter::setSpectrumWidth ( const RadialSet &  rs  )  [inline]

set the latest scan.

This function will call write to write out if necessary.

void code::SingleFileWriter::setVelocity ( const RadialSet &  rs  )  [inline]

set the latest scan.

This function will call write to write outif necessary.

void code::SingleFileWriter::write (  ) 

The work-horse function -- you can call this function to force the write.


Member Data Documentation

Angle code::SingleFileWriter::currAngle [protected]

Time code::SingleFileWriter::currTime [protected]

SmartPtr<RadialSet> code::SingleFileWriter::data[NumDataTypes] [protected]

std::string code::SingleFileWriter::dataName[NumDataTypes] [protected]

enum { ... } code::SingleFileWriter::DataTypes [protected]

std::string code::SingleFileWriter::outputDir [protected]

float code::SingleFileWriter::polarGridAngularResolution [protected]

int code::SingleFileWriter::swp [protected]


Generated on Fri May 4 13:40:22 2012 for WDSS-IIw2algs by  doxygen 1.4.7