⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readerfactory.h

📁 把html转成txt 把html转成txt
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef ReaderFactoryH
#define ReaderFactoryH
#include <map>
#include <istream>
#include "ReaderInterface.h"
#include "WriterInterface.h"
#include "FileFormat.h"
#include "shared_ptr.h"
#include "DebugLog.h"
// This class uses an abstract factory to hide the details of
// the writer instantiation

//---------------------------------------------------------------------------
namespace DoxEngine
{

	class ReaderFactory
	{
		public:
			virtual ReadInterface* Create(std::istream &stream, WriterInterface &writer, DebugLog& newLog) = 0;
	};


  typedef shared_ptr<ReaderFactory> ReaderFactoryPtr;
	typedef std::map<const FileFormat, ReaderFactoryPtr> ReaderFactories;

	class ReaderFactoriesSingleton
	{
		public:
			// This function should only be called from the main thread
			static ReaderFactories& GetReaderFactories();
      
	};
}

#endif

⌨️ 快捷键说明

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