deltaFlow
ReaderFactory Class Referencefinal

Creates Reader instances for a given InputFormat. More...

#include <ReaderFactory.H>

Static Public Member Functions

static std::unique_ptr< Readercreate (InputFormat format)
 Construct a concrete reader for the given input format.
 

Detailed Description

Creates Reader instances for a given InputFormat.

Definition at line 40 of file ReaderFactory.H.

Member Function Documentation

◆ create()

std::unique_ptr< Reader > ReaderFactory::create ( InputFormat  format)
static

Construct a concrete reader for the given input format.

Parameters
formatRequested input format.
Returns
Owning pointer to a new Reader instance.

Definition at line 27 of file ReaderFactory.C.

27 {
28 switch (format) {
30 return std::make_unique<IEEECommonDataFormat>();
32 return std::make_unique<PSSERawFormat>();
33 default:
34 return nullptr;
35 }
36}
@ IEEE
IEEE Common Data Format (.cdf, .txt)
@ PSSE
PSS/E Raw Data Format (.raw)

References IEEE, and PSSE.

Here is the caller graph for this function:

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