Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a76b1c4915
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (20 sloc) 0.793 kb
#ifndef _XSCRIPT_STYLESHEET_CACHE_H_
#define _XSCRIPT_STYLESHEET_CACHE_H_
#include <string>
#include <boost/shared_ptr.hpp>
#include <xscript/component.h>
#include <xscript/stat_builder.h>
namespace xscript {
class Stylesheet;
class StylesheetCache : public Component<StylesheetCache>, public StatBuilderHolder {
public:
StylesheetCache() : StatBuilderHolder("stylesheet-cache") {
}
virtual void clear() = 0;
virtual void erase(const std::string &name) = 0;
virtual boost::shared_ptr<Stylesheet> fetch(const std::string &name) = 0;
virtual void store(const std::string &name, const boost::shared_ptr<Stylesheet> &stylesheet) = 0;
virtual boost::mutex* getMutex(const std::string &name) = 0;
};
} // namespace xscript
#endif // _XSCRIPT_STYLESHEET_CACHE_H_
Jump to Line
Something went wrong with that request. Please try again.