mirror of
https://github.com/boostorg/quickbook.git
synced 2026-01-27 07:02:15 +00:00
17 lines
405 B
C++
17 lines
405 B
C++
#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);
|
|
}
|
|
}
|
|
} |