/////////////////////////////////////////////////////////////// // absFact.cpp -- creates Neural Network layers // // using services of concrete factories // // // // Jim Fawcett, CSE776 - Design Patterns, Summer 2004 // /////////////////////////////////////////////////////////////// #include "concFact.h" absNNfact* absNNfact::CreateFactory(LayerType lt) { switch(lt) { case input : return new inputLayerFact(); case hidden : return new hiddenLayerFact(); case output : return new outputLayerFact(); } return NULL; }