📄 eventspacelauncheritem.h
字号:
//////////////////////////////////////////////////////////////////////////// Copyright (c) 2000, Yusuke Miyao/// You may distribute under the terms of the Artistic License.////// <id>$Id: EventSpaceLauncherItem.h,v 1.2 2003/05/11 18:12:09 yusuke Exp $/// <collection>Maximum Entropy Estimator</collection>/// <name>EventSpaceLauncherItem.h</name>/// <overview>EventSpace to be launched</overview>/////////////////////////////////////////////////////////////////////////#ifndef Amis_EventSpaceLauncherItem_h_#define Amis_EventSpaceLauncherItem_h_#include <amis/configure.h>#include <amis/LauncherItem.h>#include <amis/EventSpaceBase.h>#include <amis/EventSpaceLauncher.h>#include <amis/Utility.h>#include <amis/Property.h>AMIS_NAMESPACE_BEGINtemplate < class EventSpaceOnMemory, class EventSpaceOnFile >class EventSpaceLauncherItem : public LauncherItem< EventSpacePtr, Property*, StringPair > {public: EventSpaceLauncherItem( const std::string& name, const std::string& feature_type, const std::string& desc = "" ) : LauncherItem< EventSpacePtr, Property*, StringPair >( EventSpaceLauncher::queue, StringPair( name, feature_type ), desc ) {} virtual ~EventSpaceLauncherItem() {} EventSpacePtr launch( Property* property ) { if ( property->isEventOnFile() ) { objstream* os = property->eventOnFileStream(); return EventSpacePtr( new EventSpaceOnFile( os ) ); } else { return EventSpacePtr( new EventSpaceOnMemory() ); } }};AMIS_NAMESPACE_END#endif // Amis_EventSpaceLauncherItem_h_// end of EventSpaceLauncherItem.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -