#include <map>
#include <iostream>
#include "Taglib.h"
Go to the source code of this file.
Classes | |
class | servlet::taglib::CompileTimeTaglib |
class | servlet::taglib::CompileTimeTaglib::CompileTimeTaglib::TagFactoryBase |
class | servlet::taglib::CompileTimeTaglib::CompileTimeTaglib::TagFactory< T > |
Namespaces | |
namespace | servlet |
namespace | servlet::taglib |
Defines | |
#define | DECLARE_COMPILE_TIME_TAGLIB(prefix) extern "C" servlet::taglib::CompileTimeTaglib* get_taglib_##prefix(); |
#define | COMPILE_TIME_TAGLIB(prefix) |
#define | EXPORT_COMPILE_TIME_TAG(prefix, name, class) |
#define COMPILE_TIME_TAGLIB | ( | prefix | ) |
Value:
extern "C" { \ servlet::taglib::CompileTimeTaglib* get_taglib_##prefix() \ { \ static servlet::taglib::CompileTimeTaglib taglib(#prefix); \ return &taglib; \ } \ servlet::taglib::Taglib* create_taglib_##prefix(const servlet::taglib::attribs_t&) \ { \ return get_taglib_##prefix(); \ } \ }
Definition at line 49 of file CompileTimeTaglib.h.
#define DECLARE_COMPILE_TIME_TAGLIB | ( | prefix | ) | extern "C" servlet::taglib::CompileTimeTaglib* get_taglib_##prefix(); |
Definition at line 47 of file CompileTimeTaglib.h.
#define EXPORT_COMPILE_TIME_TAG | ( | prefix, | |||
name, | |||||
class | ) |
Value:
struct register_compile_time_tag_##prefix##_##name##_t \ { \ register_compile_time_tag_##prefix##_##name##_t() \ { \ static servlet::taglib::CompileTimeTaglib::TagFactory<class> factory; \ get_taglib_##prefix()->registerTag(#name, &factory); \ } \ } register_compile_time_tag_##prefix##_##name;
name | Name of the tag | |
class | Name of the class (derived from Generator) to instantiate as tag handler This macro should appear exactly once for each tag. |
Definition at line 69 of file CompileTimeTaglib.h.