8 #include "SpectralDefinitionFactory.h"
10 #include "SpectralDefinition1D.h"
11 #include "SpectralDefinition2D.h"
14 SpectralDefinition* SpectralDefinitionFactory::NewSpectralDefinition(FileName smileDefFilename){
17 if (smileDefFilename.extension() ==
"csv"){
18 return new SpectralDefinition1D(smileDefFilename);
21 return new SpectralDefinition2D(smileDefFilename);