typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
typeset::obj::ObjectRegistry クラス

#include <typeset/obj/object.hpp>

公開メンバ関数

 ObjectRegistry ()
 
 ~ObjectRegistry ()
 
void add (const std::string &name, ObjectHandler handler)
 関数ハンドラを登録する
 
void addCommand (const std::string &name, const std::string &commandLine, const std::string &workDir=std::string())
 外部コマンドを登録する。commandLine <request.json> を実行し、標準出力の SVG を読む
 
bool has (const std::string &name) const
 
std::shared_ptr< const ObjectResultrender (const ObjectRequest &req)
 ハンドラを呼ぶ(キャッシュあり)。未登録なら error 付きの結果
 
void clearCache ()
 
size_t cacheSize () const
 
const std::vector< std::string > & errors () const
 直近のエラー(未登録・失敗)
 

詳解

object.hpp57 行目に定義があります。

構築子と解体子

◆ ObjectRegistry()

typeset::obj::ObjectRegistry::ObjectRegistry ( )

◆ ~ObjectRegistry()

typeset::obj::ObjectRegistry::~ObjectRegistry ( )

関数詳解

◆ add()

void typeset::obj::ObjectRegistry::add ( const std::string &  name,
ObjectHandler  handler 
)

関数ハンドラを登録する

◆ addCommand()

void typeset::obj::ObjectRegistry::addCommand ( const std::string &  name,
const std::string &  commandLine,
const std::string &  workDir = std::string() 
)

外部コマンドを登録する。commandLine <request.json> を実行し、標準出力の SVG を読む

引数
workDir作業ディレクトリ(空なら現在地)

◆ has()

bool typeset::obj::ObjectRegistry::has ( const std::string &  name) const

◆ render()

std::shared_ptr< const ObjectResult > typeset::obj::ObjectRegistry::render ( const ObjectRequest req)

ハンドラを呼ぶ(キャッシュあり)。未登録なら error 付きの結果

◆ clearCache()

void typeset::obj::ObjectRegistry::clearCache ( )

◆ cacheSize()

size_t typeset::obj::ObjectRegistry::cacheSize ( ) const

◆ errors()

const std::vector< std::string > & typeset::obj::ObjectRegistry::errors ( ) const
inline

直近のエラー(未登録・失敗)

object.hpp81 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: