& GetValue(
const string& name)
const;
79 voidSetValue(
const string& name,
const string&
value);
81 void Clear(
void) { m_Data.clear(); }
127 intGetStyle(
void)
const;
128 voidSetStyle(
intstyle);
131 virtual CNCBINode* MapTag(
const string& name);
134 virtual voidAddTagMap(
const string& name,
BaseTagMapper* mapper);
135 virtual voidAddTagMap(
const string& name,
CNCBINode* node);
177 CHTMLPage(
const string& title,
const string& template_file);
179 const void* template_buffer,
size_t size);
180 CHTMLPage(
const string& title, istream& template_stream);
186 const string& template_file =
kEmptyStr);
191 virtual voidCreateSubNodes(
void);
203 void SetTitle(
const string& title);
209 voidSetTemplateFile (
const string& template_file);
210 voidSetTemplateString(
const char* template_string);
211 voidSetTemplateBuffer(
const void* template_buffer,
size_t size);
212 voidSetTemplateStream(istream& template_stream);
228 const string& attr_name,
229 const string& test_pattern) = 0;
232} TTemplateLibFilter;
237 voidLoadTemplateLibFile (
const string& template_file,
238TTemplateLibFilter* filter =
NULL);
239 voidLoadTemplateLibString(
const char* template_string,
240TTemplateLibFilter* filter =
NULL);
241 voidLoadTemplateLibBuffer(
const void* template_buffer,
size_t size,
242TTemplateLibFilter* filter =
NULL);
243 voidLoadTemplateLibStream(istream& template_stream,
244TTemplateLibFilter* filter =
NULL);
250eCTF_Default = eCTF_Disable
258 static voidCacheTemplateFiles(ECacheTemplateFiles caching);
261 virtual voidAddTagMap(
const string& name,
BaseTagMapper* mapper);
262 virtual voidAddTagMap(
const string& name,
CNCBINode* node);
284 boolx_ApplyFilters(TTemplateLibFilter* filter,
const char*
buffer);
310ETemplateIncludes includes
,
312TTemplateLibFilter* filter);
317 voidGeneratePageInternalName(
const string& template_src);
409istringstream is(template_string);
410 size_t size= strlen(template_string);
419istringstream is((
const char*)template_buffer);
434 if( !template_src.empty() ) {
435 m_Name+=
"("+ template_src +
")";
Interface for a filter, which must be passed to one the LoadTemplateLib methods to select relevant pa...
Include a standard set of the NCBI C++ Toolkit most basic headers.
std::ofstream out("events_result.xml")
main entry point for tests
static const char * str(char *buf, int n)
int TFlags
Binary AND of "EFlags".
class CHTMLPage::CTemplateLibFilter TTemplateLibFilter
Interface for a filter, which must be passed to one the LoadTemplateLib methods to select relevant pa...
virtual ~CTemplateLibFilter()
ECacheTemplateFiles
Template file caching state.
map< string, BaseTagMapper * > TTagMap
void LoadTemplateLibString(const char *template_string, TTemplateLibFilter *filter=NULL)
TMode m_PrintMode
Current print mode (used by RepeatHook).
size_t m_TemplateSize
Size of input, if known (0 otherwise)
void SetTitle(const string &title)
To set title or template outside(after) the constructor.
CCgiApplication * m_CgiApplication
Pointer to runtime information.
void Clear(void)
Remove all entries.
void x_LoadTemplateLib(CNcbiIstream &is, size_t size, ETemplateIncludes includes, const string &file_name, TTemplateLibFilter *filter)
Load template library.
CHTMLPage(const string &title=kEmptyStr)
Constructors.
void SetTemplateBuffer(const void *template_buffer, size_t size)
static CHTMLBasicPage * New(void)
CPageStat & SetPageStat(void)
Get editable CPageStat object.
void SetTemplateStream(istream &template_stream)
const TData & GetData(void) const
Return the whole internal string map (read-only).
const void * m_TemplateBuffer
Some buffer.
TTagMap m_TagMap
Tag resolvers (as registered by AddTagMap).
void SetTemplateString(const char *template_string)
void LoadTemplateLibBuffer(const void *template_buffer, size_t size, TTemplateLibFilter *filter=NULL)
void LoadTemplateLibStream(istream &template_stream, TTemplateLibFilter *filter=NULL)
CPageStat(const CPageStat &)
void GeneratePageInternalName(const string &template_src)
Generate page internal name on the base of template source.
const CPageStat & GetPageStat(void) const
Get CPageStat used to create meta-tags (design ID, hit ID etc.)
CHTMLPage(const string &title, const void *template_buffer, size_t size)
string m_Title
Page title.
virtual bool TestAttribute(const string &attr_name, const string &test_pattern)=0
This method is called by LoadTemplateLib methods to check whether a template within library should be...
virtual CCgiApplication * GetApplication(void) const
istream * m_TemplateStream
Stream.
CPageStat & operator=(const CPageStat &)
CHTMLBasicPage CParent
Parent class.
CNCBINode CParent
Parent class.
map< string, string > TData
static ECacheTemplateFiles sm_CacheTemplateFiles
string m_TemplateFile
Template sources.
@ eCTF_Enable
Enable caching.
@ eCTF_Disable
Disable caching.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
#define NCBI_XHTML_EXPORT
@ eHTML
HTML tag or, for example, HTML entity.
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
Various tag mappers classes.
static void SetTitle(CRef< CSeq_entry > entry, string title)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4