ZenLib

Html_Handler.h
Go to the documentation of this file.
1/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
2 *
3 * Use of this source code is governed by a zlib-style license that can
4 * be found in the License.txt file in the root of the source tree.
5 */
6
7//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8//
9// A HTML Handler
10//
11//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12
13//---------------------------------------------------------------------------
14#ifndef ZenLib_Server_Html_HandlerH
15#define ZenLib_Server_Html_HandlerH
16//---------------------------------------------------------------------------
17
18//---------------------------------------------------------------------------
19#include <ctime>
20#include <map>
21#include <vector>
22#include "ZenLib/Ztring.h"
23//---------------------------------------------------------------------------
24
25 namespace ZenLib
26{
27
28 namespace Format
29{
30
31 namespace Html
32{
33
34//***************************************************************************
35/// @brief
36//***************************************************************************
37
38 struct header
39{
40 //In
41 Ztring Title;
42 Ztring Language;
43
44 //Init
45 header()
46 {
47 }
48};
49
50 class Handler
51{
52 public:
53 //Constructor/Destructor
54 Handler();
55
56 //Maintenance
57 void CleanUp();
58
59 //The data
60 header Header;
61};
62
63} //Namespace
64
65} //Namespace
66
67} //Namespace
68
69#define ENDL "\r\n"
70#define HTML_ENDL "<br />\r\n"
71
72#endif
Ztring.h
ZenLib::Format::Html::Handler
Definition: Html_Handler.h:51
ZenLib::Format::Html::Handler::CleanUp
void CleanUp()
ZenLib::Format::Html::Handler::Handler
Handler()
ZenLib::Format::Html::Handler::Header
header Header
Definition: Html_Handler.h:60
ZenLib::Ztring
String manipulation (based on std::(w)string)
Definition: Ztring.h:50
ZenLib
Definition: BitStream.h:24
ZenLib::Format::Html::header
Definition: Html_Handler.h:39
ZenLib::Format::Html::header::header
header()
Definition: Html_Handler.h:45
ZenLib::Format::Html::header::Language
Ztring Language
Definition: Html_Handler.h:42
ZenLib::Format::Html::header::Title
Ztring Title
Definition: Html_Handler.h:41