X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2FXMLToolingConfig.h;h=f77597f09f0ce60ae1b4ed6aa3e126eca4ec0838;hp=f29f7067a4dc140b10f0eafa41a5660bc77bf89d;hb=fb770e37f24d038a9b082b8f780edd654501dbd4;hpb=e7a65d784215bc04355f014141219b3e7ab4559a diff --git a/xmltooling/XMLToolingConfig.h b/xmltooling/XMLToolingConfig.h index f29f706..f77597f 100644 --- a/xmltooling/XMLToolingConfig.h +++ b/xmltooling/XMLToolingConfig.h @@ -43,6 +43,7 @@ namespace xmltooling { class XMLTOOL_API ReplayCache; class XMLTOOL_API StorageService; + class XMLTOOL_API TemplateEngine; class XMLTOOL_API TrustEngine; class XMLTOOL_API XSECCryptoX509CRL; @@ -61,6 +62,9 @@ namespace xmltooling { /** Global ReplayCache instance. */ ReplayCache* m_replayCache; + + /** Global TemplateEngine instance. */ + TemplateEngine* m_templateEngine; public: virtual ~XMLToolingConfig() {} @@ -150,6 +154,24 @@ namespace xmltooling { ReplayCache* getReplayCache() const { return m_replayCache; } + + /** + * Sets the global TemplateEngine instance. + * This method must be externally synchronized with any code that uses the object. + * Any previously set object is destroyed. + * + * @param templateEngine new TemplateEngine instance to store + */ + void setTemplateEngine(TemplateEngine* templateEngine); + + /** + * Returns the global TemplateEngine instance. + * + * @return global TemplateEngine or NULL + */ + TemplateEngine* getTemplateEngine() const { + return m_templateEngine; + } /** * List of catalog files to load into validating parser pool at initialization time.