mirror of
https://github.com/boostorg/quickbook.git
synced 2026-01-28 07:22:32 +00:00
Basic html generator.
[SVN r59570]
This commit is contained in:
17
encoder_impl.cpp
Normal file
17
encoder_impl.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "encoder_impl.hpp"
|
||||
|
||||
namespace quickbook
|
||||
{
|
||||
encoder_ptr create_encoder(std::string const& name)
|
||||
{
|
||||
if(name == "html") {
|
||||
return boost::shared_ptr<encoder>(new html_encoder());
|
||||
}
|
||||
else if(name == "boostbook") {
|
||||
return boost::shared_ptr<encoder>(new boostbook_encoder());
|
||||
}
|
||||
else {
|
||||
BOOST_ASSERT(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user