Go to the SVN repository for this file.
57{
"Username 1",
"111-111-1111",
"name1@server"},
58{
"Username 2",
"222-222-2222",
"name2@server"},
59{
"Username 3",
"333-333-3333",
"name3@server"},
60{
"Username 4",
"444-444-4444",
"name4@server"},
61{
"Username 5",
"555-555-5555",
"name5@server"},
62{
"Username 6",
"666-666-6666",
"name6@server"},
63{
"Username 7",
"777-777-7777",
"name7@server"},
64{
"Username 8",
"888-888-8888",
"name8@server"},
65{
"Username 9",
"999-999-9999",
"name9@server"},
103person =
ctx->persons[
ctx->current];
106 if( !person.
name) {
135 stringcss_class =
"colored";
136 if(
ctx->current != 5) {
137css_class =
ctx->current %2 ?
"even":
"odd";
165{ srand((
unsigned int)time(0)); }
203 virtual int Run(
void);
224 if(
ctx->GetSum() >= 50 ) {
229 int n=
ctx->GetRandomNumber();
230 int i=
ctx->GetCounter();
235 intsum =
ctx->GetSum();
243 ctx->GetPage()->AddTagMap(
"num_sum",
259 CHTMLPagepage(
"HTML library template demo page");
279 new CHTMLText(
"Sample of usage the HTML library templates"));
315 int main(
intargc,
const char* argv[])
virtual int Run(void)
Run the application.
CNCBINode * NumAdderHook(CNumAdderCtx *ctx)
CNumAdderCtx(CHTMLPage *page)
static const SPerson s_Persons[]
int main(int argc, const char *argv[])
static CNCBINode * s_TableRowHook(CHTMLPage *page, STableRowHook_Ctx *ctx)
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
virtual void AddTagMap(const string &name, BaseTagMapper *mapper)
Tag mappers.
void RepeatTag(bool enable=true)
CNCBINode * AppendChild(CNCBINode *child)
void LoadTemplateLibFile(const string &template_file, TTemplateLibFilter *filter=NULL)
Load template library.
virtual CNcbiOstream & Print(CNcbiOstream &out, TMode mode=eHTML)
void SetRepeatCount(size_t count=0)
void SetTemplateFile(const string &template_file)
Set source which contains the template.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
BaseTagMapper * CreateTagMapper(CNCBINode *node)
@ eCurrent
Use current time. See also CCurrentTime.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines unified interface to application:
STableRowHook_Ctx(const SPerson *const x_persons)
const SPerson *const persons
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