code::Builder Class Reference

Inheritance diagram for code::Builder:

code::GeneralBuilder code::NetcdfBuilder code::NmqBuilder code::SdtsBuilder code::W2algsBuilder List of all members.

Detailed Description

A framework for creating objects whose constructors require arguments.

The number and meaning of arguments can vary by object type.

Author:
: Lakshman
Version:
:
Id
code_Builder.h,v 1.20 2009/06/02 20:17:39 lakshman Exp


Public Member Functions

virtual SmartPtr< DataTypecreateObject (const std::vector< std::string > &params, const Index *index=0)=0
 Create a data object.
SmartPtr< DataTypecreateObject (const Index *index)
 Convenience function that passes empty vector to createObject.
virtual ~Builder ()

Static Public Member Functions

static SmartPtr< BuildergetBuilder (const std::string &sourceType)
 Convenience function to get the builder for a sourceType, eg.

Protected Member Functions

 Builder ()


Constructor & Destructor Documentation

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

code::Builder::Builder (  )  [inline, protected]


Member Function Documentation

SmartPtr<DataType> code::Builder::createObject ( const Index index  ) 

Convenience function that passes empty vector to createObject.

virtual SmartPtr<DataType> code::Builder::createObject ( const std::vector< std::string > &  params,
const Index index = 0 
) [pure virtual]

Create a data object.

Parameters:
params The parameters needed to create the object. Their number and meaning vary by sourceType.

Implemented in code::SdtsBuilder, code::NetcdfBuilder, code::GeneralBuilder, code::NmqBuilder, and code::W2algsBuilder.

static SmartPtr< Builder > code::Builder::getBuilder ( const std::string &  sourceType  )  [static]

Convenience function to get the builder for a sourceType, eg.

hires.

Parameters:
sourceType The sourceType name, such as "AWIPS" or "hires"


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7