writerfactory.h
来自「把html转成txt 把html转成txt」· C头文件 代码 · 共 35 行
H
35 行
//---------------------------------------------------------------------------
#ifndef WriterFactoryH
#define WriterFactoryH
#include <map>
#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 WriterFactory
{
public:
virtual WriterInterface* Create(std::ostream &stream, DebugLog &log) = 0;
};
typedef shared_ptr<WriterFactory> WriterFactoryPtr;
typedef std::map<const FileFormat, WriterFactoryPtr> WriterFactories;
class WriterFactoriesSingleton
{
public:
// This function should only be called from the main thread
static WriterFactories& GetWriterFactories();
};
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?