123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
-
-
-
-
-
-
-
- #pragma once
- #include "LemmaObject.h"
-
- #include "FHTAnderson801.h"
- #include "FHT.h"
-
- #include "FHTKey201.h"
- #include "FHTKey101.h"
- #include "FHTKey51.h"
- #include "QWEKey.h"
- #include "GQChave.h"
-
- namespace Lemma {
-
-
-
- class HankelTransformFactory : public LemmaObject {
-
- friend std::ostream &operator<<(std::ostream &stream, const HankelTransformFactory &ob);
-
- protected:
-
-
- struct ctor_key {};
-
- public:
-
-
-
-
-
- explicit HankelTransformFactory ( const ctor_key& );
-
-
-
- HankelTransformFactory ( const YAML::Node& node, const ctor_key& );
-
-
-
- virtual ~HankelTransformFactory ();
-
-
-
- virtual YAML::Node Serialize() const;
-
-
-
-
- static std::shared_ptr< HankelTransform > NewSP( const HANKELTRANSFORMTYPE Type) {
- switch (Type) {
- case ANDERSON801:
- return FHTAnderson801::NewSP();
- case FHTKEY201:
-
- return FHT<FHTKEY201>::NewSP();
- case FHTKEY101:
- return FHT<FHTKEY101>::NewSP();
-
- case FHTKEY51:
- return FHT<FHTKEY51>::NewSP();
- case FHTKONG61:
- return FHT<FHTKONG61>::NewSP();
- case FHTKONG121:
- return FHT<FHTKONG121>::NewSP();
- case FHTKONG241:
- return FHT<FHTKONG241>::NewSP();
- case CHAVE:
- return GQChave::NewSP();
- case QWEKEY:
- return QWEKey::NewSP();
- case IRONS:
- return FHT<IRONS>::NewSP();
- default:
- std::cerr << "HankelTransformFactory only works with defined types\n";
- return FHTAnderson801::NewSP();
- }
- }
-
-
-
- static std::shared_ptr<HankelTransformFactory> DeSerialize(const YAML::Node& node);
-
-
-
-
-
-
-
-
-
-
- virtual inline std::string GetName() const {
- return CName;
- }
-
- protected:
-
-
-
-
- HankelTransformFactory( const HankelTransformFactory& ) = delete;
-
-
-
- private:
-
-
- static constexpr auto CName = "HankelTransformFactory";
-
- };
- }
-
-
-
-
|