eventformatlauncher.h

来自「Amis - A maximum entropy estimator 一个最大」· C头文件 代码 · 共 42 行

H
42
字号
#ifndef Amis_EventFormatLauncher_h_#define Amis_EventFormatLauncher_h_#include <amis/configure.h>#include <amis/Launcher.h>#include <amis/LauncherItem.h>#include <amis/EventFormat.h>#include <amis/Utility.h>AMIS_NAMESPACE_BEGINclass Property;class EventFormatLauncher : public Launcher< EventFormatPtr, Property*, StringPair > {private:  static Initializer< Launcher< EventFormatPtr, Property*, StringPair >* >* queue;public:  EventFormatLauncher( void ) : Launcher< EventFormatPtr, Property*, StringPair >( "EventFormatLauncher", queue ) {}  virtual ~EventFormatLauncher() {}  template < class EventFormat >  friend class EventFormatLauncherItem;};template < class Format >class EventFormatLauncherItem : public LauncherItem< EventFormatPtr, Property*, StringPair > {public:  EventFormatLauncherItem( const std::string& name, const std::string& feature_type, const std::string& desc = "" )    : LauncherItem< EventFormatPtr, Property*, StringPair >( EventFormatLauncher::queue, StringPair( name, feature_type ), desc ) {}  virtual ~EventFormatLauncherItem() {}  EventFormatPtr launch( Property* property ) {    return EventFormatPtr( new Format() );  }};AMIS_NAMESPACE_END#endif // Amis_EventFormatLauncher_h_// end of EventFormatLauncher.h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?